Leaflet GeoJSON Encoded
HTML JavaScript Python
Latest commit 24352c3 Jul 31, 2015 @stefanocudini stefanocudini Update README.md
Permalink
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

README.md

Leaflet.GeoJSON.Encoded

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.

Demo

Encoder (server)

Requirements

Setup

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)

http://localhost:8000/encode/italy_simplify.json

The service returns an encoded GeoJSON