@geoapify/route-planner-sdk
Version:
TypeScript SDK for the Geoapify Route Planner API. Supports route optimization, delivery planning, and timeline visualization in browser and Node.js
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;
}
}