Search code examples
javaandroidgoogle-mapsgoogle-directory-api

Android Google Directions API multiple routes


With google directions API v3 can you can multiple routes for the same location? if yes can someone please explain how can I do it, or any tutorials please? Right now I have only 1 route.


Solution

  • yes you can get multiple routes to a destination you just need to supply if you want alternatives in your url you send

    &alternatives=true
    

    If you are trying to use this with google maps v2 I created a simple library that can do this

    https://github.com/tyczj/MapNavigator