@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
20 lines (19 loc) • 715 B
TypeScript
import { Break } from "./break";
import { AgentData } from "../../../interfaces";
export declare class Agent {
private raw;
constructor(raw?: AgentData);
getRaw(): AgentData;
setRaw(value: AgentData): this;
setStartLocation(lon: number, lat: number): this;
setStartLocationIndex(value: number): this;
setEndLocation(lon: number, lat: number): this;
setEndLocationIndex(value: number): this;
setPickupCapacity(value: number): this;
setDeliveryCapacity(value: number): this;
addCapability(value: string): this;
addTimeWindow(start: number, end: number): this;
addBreak(value: Break): this;
setId(value: string): this;
setDescription(value: string): this;
}