Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-maps-polyutil

Build Status

Google Maps PolyUtil utils, and its tests, ported from Java.

Installation

npm install --save google-maps-polyutil

Usage

var polyutil = require('google-maps-polyutil')
var locations = [{latitude: 51, longitude: 0}, {latitude: 51, longitude: 0}, {latitude: 52, longitude: 0}, {latitude: 52, longitude: 0}]

// Simplification
var simplifiedLocations = polyutil.simplify(locations)

// Encode to string
var polyline = polyline.encode(simplifiedLocations)

// Decode from string
var decodedLocations = polyutil.decode(polyline)

About

Polyline simplification utitily ported from Google Android Map utils

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages