niryariv / opentaba-client

BSD 3-Clause "New" or "Revised" License
8 stars 15 forks source link

reduce geoJSON coordinate accuracy #41

Closed niryariv closed 10 years ago

niryariv commented 10 years ago

Right now our geoJSON data stores coordinates within 15 digits after the decimal point. This makes for fairly large files.

Google Maps API works with up to 6 decimals' accuracy.

Interesting: "At the equator, 1 degree is 111320m, which means that 0.000001deg is around 11cm. Seven decimal places allows you to place a marker to an accuracy of around a centimetre, which can't be shown on a map. At higher latitudes, six decimals will be an accuracy of less than 10cm."

I reckon we could suffice with 6 digits after the decimal point as well..

alonisser commented 10 years ago

+1

Twitter:@alonisser https://twitter.com/alonisser LinkedIn Profile http://www.linkedin.com/in/alonisser Facebook https://www.facebook.com/alonisser _Tech blog:_4p-tech.co.il/blog _Personal Blog:_degeladom.wordpress.com Tel:972-54-6734469

On Thu, Nov 21, 2013 at 3:34 PM, Nir Yariv notifications@github.com wrote:

Right now our geoJSON data stores coordinates within 15 digits after the decimal point. This makes for fairly large files.

Google Maps API works with up to 6 decimals' accuracy.

Interestinghttps://groups.google.com/d/msg/google-maps-api/uSi1-8U1GCE/X8fTe5g96lwJ: "At the equator, 1 degree is 111320m, which means that 0.000001deg is around 11cm. Seven decimal places allows you to place a marker to an accuracy of around a centimetre, which can't be shown on a map. At higher latitudes, six decimals will be an accuracy of less than 10cm."

I reckon we could suffice with 6 digits after the decimal point as well..

— Reply to this email directly or view it on GitHubhttps://github.com/niryariv/opentaba-client/issues/41 .

florpor commented 10 years ago

hmm interesting.. vwalla: https://github.com/florpor/opentaba-client/commit/d8fdef86c310fade853cfb43a79cf71323133c5a

florpor commented 10 years ago

fixed: https://github.com/niryariv/opentaba-client/commit/9fce41c7a9efdb59d605dc8cf2e081344f7ab217