changemaker.lite/api/dist/modules/map/canvass/canvass-route.service.d.ts

16 lines
545 B
TypeScript

export interface RouteLocation {
id: string;
latitude: number;
longitude: number;
}
export interface RouteResult {
orderedLocations: RouteLocation[];
totalDistanceMeters: number;
estimatedMinutes: number;
}
/**
* Nearest-neighbor walking route algorithm.
* Starts from volunteer GPS position or cut polygon centroid.
*/
export declare function calculateWalkingRoute(locations: RouteLocation[], startLat?: number, startLng?: number, cutGeojson?: string): RouteResult;
//# sourceMappingURL=canvass-route.service.d.ts.map