This page showcases the NexTrip demo function.
Given a route name, stop name, and direction, this will return the number of minutes until the next bus leaves, or nothing if the last bus has already left.
The direction must be one of "north", "east", "south", or "west".
...