@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
19 lines (18 loc) • 826 B
TypeScript
import { RoutePlannerCallOptions } from "../../../../../models/interfaces/route-planner-call-options";
import { RoutingOptions } from '../../../../../models/interfaces/route-planner-input-data';
/**
* Helper class for Routing API calls to calculate consecutive travel times.
*/
export declare class RoutingHelper {
private readonly baseUrl;
private readonly apiKey;
private readonly routingOptions;
constructor(options: RoutePlannerCallOptions, routingOptions: RoutingOptions);
calculateConsecutiveTravelTimes(locations: [number, number][]): Promise<number[]>;
calculateLegData(locations: [number, number][]): Promise<any[]>;
calculateRouteData(locations: [number, number][]): Promise<{
legs: any[];
waypoints: any[];
}>;
constructRoutingUrl(waypoints: string): string;
}