Installation
npm install --save @types/mapbox__polyline
Summary
This package contains type definitions for @mapbox/polyline (https://github.com/mapbox/polyline).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline.
export function decode(string: string, precision?: number): Array<[number, number]>;
export function encode(coordinates: Array<[number, number]>, precision?: number): string;
export function fromGeoJSON(
geojson: GeoJSON.LineString | GeoJSON.Feature<GeoJSON.LineString>,
precision?: number,
): string;
export function toGeoJSON(string: string, precision?: number): GeoJSON.LineString;
export as namespace polyline;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/geojson
Credits
These definitions were written by Arseniy Maximov, and Marko Klopets.