simonw / datasette-leaflet-geojson

Datasette plugin that replaces any GeoJSON column values with a Leaflet map.
20 stars 8 forks source link

Use reduced floating point accuracy for smaller page sizes #11

Closed simonw closed 4 years ago

simonw commented 4 years ago

Right now the GeoJSON output in the HTML on the page can look like this:

{
  "type":"MultiPolygon",
  "coordinates":[[[[-122.4457678900319,37.77292891669105],[-122.441075063058,37.77352490695095]...

https://en.wikipedia.org/wiki/Decimal_degrees#Precision says that 0.00001 should be accurate to within around a meter.