Google Directions API - Multiple Legs -


i wondering if knows how multiple legs?

i.e if try , directions google directions 2 different addresses gives me 1 leg when exact same request on google maps gives me 4 routes. ideas how can 4 routes?

my request: https://maps.googleapis.com/maps/api/directions/json?origin=48%20yonge%20street,%20toronto,%20ontario&destination=184%20longhouse%20street,%20woodbridge,%20ontario&key=x&departure_time=1343641500&mode=transit

you want route alternatives, not legs.

use alternatives=true parameter in request


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -