UNPKG

@iwpnd/valhalla-ts

Version:

A nodejs client and helper utilities for valhalla routing engine

22 lines 755 B
import type * as GeoJSON from 'geojson'; /** * Decode a valhalla polyline to an array of {@link GeoJSON.Position} * * @param {String} polyline * @param {Number} precision = 6 * @returns {@link GeoJSON.Position[]} * * @see https://github.com/DennisOSRM/Project-OSRM-Web/blob/master/WebContent/routing/OSRM.RoutingGeometry.js */ export declare const decodePolyline: (polyline: string, precision?: number) => GeoJSON.Position[]; /** * Decode valhalla polyline shape to {@link GeoJSON.LineString} * * @param {String} polyline * @param {Number} precision * * @returns {GeoJSON.LineString} * */ export declare const polylineToLineString: (polyline: string, precision?: number) => GeoJSON.LineString; //# sourceMappingURL=decode-polyline.d.ts.map