Many thanks - I knew it must be something very basic.

It was very confusing that it was working when called from another point in 
the code - some piece of code, perhaps reverse geocoding, must have been 
 loading the library under the covers since I certainly didn't!

BTW The reason for using DistanceBetween is that the 'equals' function of 
the LatLng object is too precise, for my purposes within 100m is the same 
place and for some applications within a few miles is close enough.  It 
would be nice if the the equals function took an optional 2nd parameter to 
indicate the acceptable accuracy for the comparison.  e.g. if 
(a.equals(b,100)) ...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/XnMCyuNq_VQJ.
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