npm.io
1.0.5 • Published 2 years ago

@types/mapbox__polyline

Licence
MIT
Version
1.0.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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 0939 GMT
  • Dependencies: @types/geojson

Credits

These definitions were written by Arseniy Maximov, and Marko Klopets.