@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) • 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;
}
}