Installation
npm install --save @types/polyline
Summary
This package contains type definitions for polyline (https://github.com/mapbox/polyline).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/polyline.
index.d.ts
/// <reference types="geojson" />
interface Polyline {
decode(string: string, precision?: number): number[][];
encode(coordinate: number[][], precision?: number): string;
fromGeoJSON(geojson: GeoJSON.LineString | GeoJSON.Feature<GeoJSON.LineString>, precision?: number): string;
}
declare var polyline: Polyline;
declare module "polyline" {
export = polyline;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/geojson
Credits
These definitions were written by Arseniy Maximov.