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.


From migurski’s github:


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

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

GeoJSON Viewer

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