Google Directions API error -


when use following url:

http://maps.googleapis.com/maps/api/directions/json?origin=cais%20do%20sodre&destination=gare%20do%20oriente&sensor=false&mode=transit 

i'm getting result

{ "routes" : [], "status" : "invalid_request" } 

but works on google maps. doing wrong?

when use transit mode in directions request, there additional required parameters:

either arrival_time or departure_time parameter must specified time request transit directions.

this returns response me:

http://maps.googleapis.com/maps/api/directions/json?origin=cais%20do%20sodre&destination=gare%20do%20oriente&sensor=false&mode=transit&arrival_time=12 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -