Skip to content
Jon edited this page Jan 2, 2017 · 7 revisions

All instances of timestamp are expected to be in the format YYYYMMDD hh:mm:dd. For example, January 1st, 2017 at 7:30 AM would be written as 20170101 07:30:00. Most strftime implementations will support this format with the format string %Y%m%d %I:%M:%S.

timetable.next_visit(station, route, timestamp) -> (ETA, ETD)
rpc
Returns the next estimated arrival and departure pair of route at station where the departure time is after timestamp.
timetable.next_visits(station, route, timestamp, n) -> [(ETA, ETD)]
rpc
Returns the next n estimated arrivals and departure pairs of route at station where the departure times are after timestamp.
timetable.last_visit(station, route, timestamp) -> (ETA, ETD)
rpc
Returns the last estimated arrival and departure pair of route at station where the departure time is before timestamp.
timetable.last_visits(station, route, timestamp, n) -> [(ETA, ETD)]
rpc
Returns the last n estimated arrivals and departure pairs of route at station where the departure times are before timestamp.
Clone this wiki locally