It is possible to count latitude delta (and longitude delta) from
given distance in meters in Google Maps API?
I've done it with approximate function given below:
function translateDistanceToDeltaLatLng(distance: Number): Object {
var deltaLat: Number = (distance * 180) / 20000; //20000 - half of
Earth circumference
var deltaLng: Number = (distance * 360) / 20000;
return {lat: deltaLat, lng: deltaLng};
}
Is there a Google API function which can do better without
approximation?
Tomek
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---