Leaflet GeoJSON Encoded
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist added encoder Mar 20, 2015
encoder roads example Mar 18, 2015
examples algorithm hardcoded Mar 19, 2015
src added encoder Mar 20, 2015
.gitignore ignore Mar 18, 2015
Gruntfile.js added encoder Mar 20, 2015
LICENSE Initial commit Feb 13, 2015
README.md Update README.md Jul 31, 2015
index.html update readme Mar 24, 2015
package.json fix Mar 30, 2015



This Leaflet plugin extends the L.GeoJSON layer using Google polyline encoding algorithm, allowing an optimized data transfer. The algorithm is documented in Google Maps API Docs.


#Encoder (server)



To install pip package

$ cd encoder
$ sudo pip install -r requirements.txt
$ python ./encoder/geojson_encoder_rest.py

To encode a GeoJSON (contained in geojson_files)


The service returns an encoded GeoJSON