Im trying to get some transit suggestions using google maps API directions:
but google returns me only one closest bus/train. Is there any way that I get at least 3 closest suggestions about how to get to defined point?
My response looks so: Only one train
"start_location" : {
"lat" : 48.12606599999999,
"lng" : 11.663375
},
"transit_details" : {
"arrival_stop" : {
"location" : {
"lat" : 48.149852,
"lng" : 11.461872
},
"name" : "München-Pasing"
},
"arrival_time" : {
"text" : "20:31",
"time_zone" : "Europe/Berlin",
"value" : 1511033460
},
"departure_stop" : {
"location" : {
"lat" : 48.12606599999999,
"lng" : 11.663375
},
"name" : "München-Trudering"
},
"departure_time" : {
"text" : "20:03",
"time_zone" : "Europe/Berlin",
"value" : 1511031780
},
"headsign" : "Geltendorf",
"line" : {
"agencies" : [
{
"name" : "Deutsche Bahn AG",
"url" : "http://www.bahn.de/"
}
],
"short_name" : "S4",
"vehicle" : {
"icon" : "//maps.gstatic.com/mapfiles/transit/iw2/6/rail2.png",
"local_icon" : "//maps.gstatic.com/mapfiles/transit/iw2/6/de-sbahn.png",
"name" : "S-Bahn",
"type" : "COMMUTER_TRAIN"
}
},
"num_stops" : 13
},
"travel_mode" : "TRANSIT"
I also getting walking instruction. Honestly I would like to get only bus|subway|train directions ;)
I would be very appreciate if someone smart could give me a clue :)