@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.
23 lines (22 loc) • 419 B
JavaScript
export class RouteActionInfo {
constructor(raw) {
if (raw) {
this.raw = raw;
}
else {
throw new Error("RouteActionInfo is undefined");
}
}
getRaw() {
return this.raw;
}
getAgentId() {
return this.raw.agentId;
}
getAction() {
return this.raw.action;
}
getAgent() {
return this.raw.agent;
}
}