@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) • 432 B
JavaScript
export class Coordinates {
constructor(raw) {
if (raw) {
this.raw = raw;
}
else {
this.raw = {};
}
}
getRaw() {
return this.raw;
}
setRaw(value) {
this.raw = value;
return this;
}
setLat(lat) {
this.raw.lat = lat;
return this;
}
setLon(lon) {
this.raw.lon = lon;
return this;
}
}