Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java - Google maps API - distance between two addresses

Using Google Maps API how to determine the driving distance between two locations ? Platform -Java

like image 218
CrazyCoder Avatar asked Nov 10 '10 08:11

CrazyCoder


1 Answers

You will need to use the Google Directions Web Service. You can make an HTTP request, specifying your two locations as parameters, and get back JSON (or XML) describing the directions between the two points.

N.B. The Google Maps terms of service explicitly states that using the Google Maps Web Services without putting the results on a Google Map is prohibited.

like image 82
RedBlueThing Avatar answered Oct 06 '22 01:10

RedBlueThing