@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
23 lines (22 loc) • 421 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;
}
getActions() {
return this.raw.actions;
}
getAgent() {
return this.raw.agent;
}
}