I want to use Google Transit API in Android application. But I am getting data from service. I used the following parameters:
I always get this response:
{
"routes" : [],
"status" : "ZERO_RESULTS"
}
I think I am passing something wrong in any of parameters used in above URL, maybe departure_time is wrong?
Can anyone tell what should pass to parameters?
Can anyone help me to find out URL with such parameters which return value ?
You just have to set departure_time parameter to some time in future (like several days). From here:
Try http://maps.googleapis.com/maps/api/directions/json?origin=Brooklyn&destination=Queens&sensor=false&departure_time=1350472557&mode=transit, it works.