npm.io
0.1.32 • Published 2 years ago

@types/polyline

Licence
MIT
Version
0.1.32
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

Credits

These definitions were written by Arseniy Maximov.