Reputation: 439
I am developing an Android app and want to get the road distance between 2 locations. If I understand correctly, the options are:
Are there any other options available? If so, an example would be appreciated.
Upvotes: 2
Views: 1954
Reputation: 327
You can get that response in JSON or XML from Maps API Web Services: http://code.google.com/intl/lv/apis/maps/documentation/directions/
The response will contain Legs (further divided in Steps) of calculated route and each leg will contain a distance
field with value in meters. If there are multiple legs, You will need to add them together. If you do not have waypoints, there will be only one Leg.
Upvotes: 3