S
S
slookin2012-03-12 11:03:49
JavaScript
slookin, 2012-03-12 11:03:49

Coordinate accuracy in Javascript Google Map API (v3)?

I would like to know with what accuracy it makes sense to transfer coordinates to GMap (for example, to create markers).

I didn’t find a clear indication on the API pages, there is only a link that toUrlValue - by default returns with an accuracy of 6 decimal places.

And the static API states that "Geographic coordinates are defined as comma-separated numeric values ​​in a text string, to 6 decimal places. For example, "40.714728,-73.998672" is a valid geographic coordinate value. Precision over 6 decimal places is ignored."

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Ogra, 2012-03-12
@Ogra

6 decimal places is accurate to 11 centimeters at the equator. Those. 5 digits can be taken as "accuracy to the meter". Then see for yourself - if you have markers marking the location of individual houses, then you need at least 5 digits, if cities - then 3 digits is enough.

A
Arsen, 2012-03-12
@mekegi

And what prevents you from taking and testing with different accuracy of the input data?
Set it to maximum magnification and compare the position of the marker (if it is difficult for the eye, then a screenshot and a diff in a graphics editor).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question