sqrt((lon1-long2)^2+(lat1-lat2)^2) only works correctly if you're at the 
equator. Degrees of longitude get narrower as you move closer to the 
poles.

A better distance algorithm is described in the "Store Locator" article 
of the official Documentation:

  http://code.google.com/apis/maps/articles/phpsqlsearch.html#findnearsql

It's worth reading the whole of that article, because much of it will be 
relevant for what you're doing.

-- 
Mike Williams
http://econym.org.uk/gmap


--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.


Reply via email to