Here is my request: https://maps.googleapis.com/maps/api/directions/json?origin=49.276951,-123.128559&destination=49.277874,-122.912404&mode=transit&sensor=false Result: {"routes": [], " status ":" INVALID_REQUEST "}
It worked before, but it does not work when I used it today. Why is this? Note: it works great when I change it to mode = walking
https://maps.googleapis.com/maps/api/directions/json?origin=49.276951,-123.128559&destination=49.261566,-123.138399&mode=transit&sensor=false&departure_time=1346197500
The above query works. We can solve this problem by adding the departure_time parameter, since Google can update the direction of the api and set the departure time as a required parameter.
The problem here is probably that there is no public transport that can get you from your source to your destination, thus an invalid request.