@geoapify/route-planner-sdk
Version:
A TypeScript SDK for the Geoapify Route Planner API that simplifies route optimization requests, and helps visualize and edit resulting routes.
26 lines (25 loc) • 447 B
JavaScript
export class Location {
constructor(raw) {
if (raw) {
this.raw = raw;
}
else {
this.raw = {};
}
}
getRaw() {
return this.raw;
}
setRaw(value) {
this.raw = value;
return this;
}
setId(id) {
this.raw.id = id;
return this;
}
setLocation(lon, lat) {
this.raw.location = [lon, lat];
return this;
}
}