This formula is pretty accurate for calculating distance between two
points. Accuracy will vary by region so do some research to fine tune
it for your target area.

distance = Math.sqrt((69.1*(cy-lat))*(69.1*(cy-lat))+(53.0*(cx-lng))*
(53.0*(cx-lng)));

On Dec 29, 10:35 am, Mikoto <[email protected]> wrote:
> Hello, i can't find any method in documentation for calculating the
> distance between 2 points (with latlng).
> Is such method exists in v3 or I should use v2 api?

--

You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.


Reply via email to