Skip to content Skip to sidebar Skip to footer

Get Walking Route - Android

I used the method used on that link to show a route between two GeoPoints : Why retrieving Google Directions for Android using KML data is not working anymore? I would like to know

Solution 1:

You require mode parameter value in your URL.

Check out here, different parameters which can be append to URL.

For providing Mode value in URL your have only 4 mode supported.

  1. driving (by default)
  2. walking
  3. bicycling
  4. transit

Supported mode value documented here.

Sample URL :

http://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false&mode=walking

Post a Comment for "Get Walking Route - Android"