Skip to content
Jon edited this page Feb 25, 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 %H:%M:%S.

timetable.visit_after(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.visits_after(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.visit_before(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.visits_before(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.
timetable.visits_between(station, route, start_time, end_time) -> [(ETA, ETD)]
rpc
Returns estimated arrival and departure pairs of route at station where the departure time is at least start_time and is before end_time.
Clone this wiki locally