-
Notifications
You must be signed in to change notification settings - Fork 0
RPCs
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)-
rpcReturns the next estimated arrival and departure pair of
routeatstationwhere the departure time is aftertimestamp. timetable.visits_after(station, route, timestamp, n) -> [(ETA, ETD)]-
rpcReturns the next
nestimated arrivals and departure pairs ofrouteatstationwhere the departure times are aftertimestamp. timetable.visit_before(station, route, timestamp) -> (ETA, ETD)-
rpcReturns the last estimated arrival and departure pair of
routeatstationwhere the departure time is beforetimestamp. timetable.visits_before(station, route, timestamp, n) -> [(ETA, ETD)]-
rpcReturns the last
nestimated arrivals and departure pairs ofrouteatstationwhere the departure times are beforetimestamp. timetable.visits_between(station, route, start_time, end_time) -> [(ETA, ETD)]-
rpcReturns estimated arrival and departure pairs of
routeatstationwhere the departure time is at leaststart_timeand is beforeend_time.