Alex Rivera | Logout

Is it possible to get suggested routes from google maps in android2.2 application?

Asked 2011-12-14T14:36:57.903
8

I am using the following url to get driving directions from google maps.

http://maps.google.com/maps?f=d&hl=en&saddr=location1&daddr=location2&ie=UTF8&0&om=0&output=kml

I am getting only one route in my KML file. But when we searched same locations in web-browser it will show suggested routes.

In order to get all routes available as output, is there any other parameter to add in URL.

I found some answers as use google directions API for JavaScript with &alternatives=true Is it suitable for android ?? or any other solutions ??

Don't comment if URL have any mistakes, i used correct one in my application.

Thanks

Edit
Report

1 Answer

1

You can combine these 2 urls: URL1 URL2 to get your best result

  1. Request URL1 to get all paths you need
  2. Request URL2 for each of your start_locations and end_locations from the URL1 above

But, this would make your program slow.:).

answered 2012-03-31T19:00:48.230

Your Answer