I am trying to get the travel time to a certain destination based on the time of arrival. It is available through Google Maps, But the API seems to force to enter a departure time... which I don't know. I just know the expected time of arrival.
yet...
RETURNS: { "destination_addresses" : [], "error_message" : "Invalid request. Missing the 'departure_time' parameter.", "origin_addresses" : [], "rows" : [], "status" : "INVALID_REQUEST" }
Any clue? Thanks
Remove the
&traffic_model=best_guess
:This works for me: