Skip to content
glenrobertson edited this page Apr 2, 2012 · 5 revisions

When showing maps at the USA national or even state views, we only need coordinate pairs like ##.ddd but the default GeoJSON latitude and longitude values are more like ##.ddddddddddddddddddd. By removing the extra precision, we can more than 1/2 the file size and make snappier web maps.

GeoJSON

From migurski’s github:

https://github.com/migurski/LilJSON

Usage:

python liljson.py --precision 3 z4-labels.json > usa.json

Note: this pipes (the ">" symbol) the output of the liljson.py script into a new file (usa.json).

GeoJSON Viewer

Sha Hwang has written a web application for viewing GeoJSON feeds on a map: here

Clone this wiki locally