polyline-decode
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

npm version code style: prettier

polyline-decode

Encode and decode geo mapping polyline geometry compressed strings, use typescript validation

Install

$ npm i polyline-decode

Use

import PolylineConvert from 'polyline-decode';

const polylineConvert = new PolylineConvert();

polylineConvert.decode('gflbEcsdtEUXa@f@QZc@`@m@bCYzDOfIEjCEpDMnBCn@E^yBxRGl@Ef@Q`D@hDZ~GZxIp@fPj@`P');
// tuple<number>[]

polylineConvert.encode([35.123456,31.654321]);
// string

Credits

Typescript transpile from of https://github.com/jieter/Leaflet.encoded

Package Sidebar

Install

npm i polyline-decode

Weekly Downloads

18

Version

0.2.0

License

ISC

Unpacked Size

16.3 kB

Total Files

8

Last publish

Collaborators

  • xisra