UNPKG

@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

24 lines (23 loc) 1.02 kB
import { Agent, RoutePlannerInputData, TravelMode, Job, Shipment, Location, Avoid, TrafficType, DistanceUnitType, RouteType } from "./models"; import { RoutePlannerCallOptions } from "./models/interfaces/route-planner-call-options"; import { RoutePlannerResult } from "./models/entities/route-planner-result"; export declare class RoutePlanner { private raw; private options; private baseUrl; constructor(options: RoutePlannerCallOptions, raw?: RoutePlannerInputData); getRaw(): RoutePlannerInputData; setRaw(value: RoutePlannerInputData): this; setMode(mode: TravelMode): this; addAgent(agent: Agent): this; addJob(job: Job): this; addLocation(location: Location): this; addShipment(shipment: Shipment): this; addAvoid(avoid: Avoid): this; setTraffic(traffic: TrafficType): this; setType(type: RouteType): this; setMaxSpeed(max_speed: number): this; setUnits(units: DistanceUnitType): this; plan(): Promise<RoutePlannerResult>; private callPlan; }