# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mapbox__polyline/index.d.ts)
````ts
/// <reference types="geojson" />

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](https://npmjs.com/package/@types/geojson)

# Credits
These definitions were written by [Arseniy Maximov](https://github.com/Kern0), and [Marko Klopets](https://github.com/mklopets).
