All Projects → jhermsmeier → node-google-polyline

jhermsmeier / node-google-polyline

Licence: MIT License
Encode / decode Google's polyline format

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-google-polyline

geofiddle
Geometric conversions between different formats and projections
Stars: ✭ 15 (-57.14%)
Mutual labels:  maps, polyline
Dual-color-Polyline-Animation
This library will help to show the polyline in dual color similar as Uber.
Stars: ✭ 73 (+108.57%)
Mutual labels:  maps, polyline
LocationMapViewer
Android App to view Locations in a map with support for gpx, kml and kmz data
Stars: ✭ 31 (-11.43%)
Mutual labels:  geodata
SVT-AV1-GUI
GUI for SVT-AV1
Stars: ✭ 32 (-8.57%)
Mutual labels:  encoder
mapus
A map tool with real-time collaboration 🗺️
Stars: ✭ 2,687 (+7577.14%)
Mutual labels:  maps
audio
Audio support for Go language.
Stars: ✭ 62 (+77.14%)
Mutual labels:  encoder
carto-print
A Python module to export images at any resolution, size and bounding box from a CARTO named map:
Stars: ✭ 18 (-48.57%)
Mutual labels:  maps
HealthCare-Scan-Nearby-Hospital-Locations
I developed this android application to help beginner developers to know how to use Google Maps API and how to convert JSON data into Java Object.
Stars: ✭ 23 (-34.29%)
Mutual labels:  maps
geo.data.gouv.fr
Trouvez facilement les données géographiques dont vous avez besoin
Stars: ✭ 68 (+94.29%)
Mutual labels:  geodata
maps4cim
maps4cim - a real world map generator for CiM 2
Stars: ✭ 21 (-40%)
Mutual labels:  maps
optimized-route
Website that uses the Google Maps API to create an optimized route between waypoints. (My first website, from 2016).
Stars: ✭ 17 (-51.43%)
Mutual labels:  maps
KY-040-Encoder-Library---Arduino
Arduino library for the KY-040 Encoder
Stars: ✭ 37 (+5.71%)
Mutual labels:  encoder
OL3-AnimatedCluster
OL3-AnimatedCluster is now part of the ol-ext project
Stars: ✭ 65 (+85.71%)
Mutual labels:  maps
whereIsMyBusAndroidClient
No description or website provided.
Stars: ✭ 16 (-54.29%)
Mutual labels:  maps
Site
Israel Hiking Map has maps, route planning, and travel information for Israel. This repository holds the files needed for running the Israel Hiking Map site and apps.
Stars: ✭ 52 (+48.57%)
Mutual labels:  maps
leaflet-routeboxer
Google RouteBoxer implementation for Leaflet
Stars: ✭ 39 (+11.43%)
Mutual labels:  polyline
pylandtemp
Algorithms for computing global land surface temperature and emissivity from NASA's Landsat satellite images with Python.
Stars: ✭ 110 (+214.29%)
Mutual labels:  geodata
spider
A powful outdoor GPS track editor
Stars: ✭ 15 (-57.14%)
Mutual labels:  maps
google-streetview-images
Pull google streetview panoramic images along a route.
Stars: ✭ 45 (+28.57%)
Mutual labels:  maps
OpenHarmony
华为鸿蒙分布式操作系统(Huawei OpenHarmony)开发技术交流,鸿蒙技术资料,手册,指南,共建国产操作系统万物互联新生态。
Stars: ✭ 373 (+965.71%)
Mutual labels:  maps

google-polyline

npm npm license npm downloads build status

Encodes and decodes Google's polyline format

Install via npm

$ npm install --save google-polyline

Usage

var polyline = require( 'google-polyline' )
polyline.encode([
  [ 38.5, -120.2 ],
  [ 40.7, -120.95 ],
  [ 43.252, -126.453 ]
])

> '_p~iF~ps|U_ulLnnqC_mqNvxq`@'
polyline.decode( '_p~iF~ps|U_ulLnnqC_mqNvxq`@' )

> [
  [ 38.5, -120.2 ],
  [ 40.7, -120.95 ],
  [ 43.252, -126.453 ]
]

Benchmarks

$ npm run benchmark
# decode: 3 points ⨉ 100000
ok ~21 ms (0 s + 21199187 ns)

# decode: ~350 points ⨉ 100000
ok ~741 ms (0 s + 740819246 ns)

# encode: 3 points ⨉ 100000
ok ~221 ms (0 s + 221480259 ns)

# encode: ~350 points ⨉ 100000
ok ~2.4 s (2 s + 403294668 ns)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].