1

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 if there's a way to get a walking route instead of the driving route.

Community
  • 1
  • 1
Matan Kadosh
  • 187
  • 2
  • 2
  • 12

1 Answers1

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

rajpara
  • 5,203
  • 1
  • 29
  • 46