AnsweredAssumed Answered

Distance Between 2 Addresses

Question asked by rmittelman on Apr 10, 2014
Latest reply on Apr 10, 2014 by rmittelman

I am using the Invoices starter solution, which automatically maps the address you've typed in. This functionality also is in the Contacts starter solution. Both solutions use the custom GetMap function.

 

My customer has asked if the driving distance between their address and their customer's address could be also included.

I know this is possible, as I found http://webdesignandseo.net/scripts/distance/ which lets you type in 2 addresses and calculate the mileage between them.

 

Could anybody suggest how I would do this? Presumably it should be done in a separate control than the default one, because they ship all across the country, and the map would probably not scale well if it had to show the entire US. The site above shows the google map with the purple line showing the route, but it also shows the driving mileage above the map. This is the one I'm interested in, not necessarily the map itself.

 

Is there a way to leverage the Google Maps API to just get that distance?

 

Thanks...

Outcomes