Im working on a simple "as the crow flies" distance calculator in Google Maps and im stuck trying to convert the returned distance between two points into miles. Is there an easy way to this?
I am fairly new at this and appreciate any and all help.
Here is where i am at currently:
http://www.public.asu.edu/~tpeiffer/
The Distance Matrix API uses a pay-as-you-go pricing model.
It appears that the computeDistanceBetween
function returns distances in meters – to convert to miles, just multiply by the number of miles in a meter:
result *= 0.000621371192;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With