Public Transit Next Departures API examples
Public Transit next departures API v8 provides subsequent departures from a given station.
The /boards response consists of a series of subsequent station board departures
with relevant information like departure time, delay and transport.
Use cases
Common uses of the Public Transit next departures API v8 include the following:
- get the list of subsequent departures from a given station
- define what transport line serves a given station
- assess the delays of transports serving a given station
Types of queries
Public Transit next departures API v8 offers two different types of queries:
Query departures by IDs
This query is useful when you want to request departures of a particular station and you know the station identifier. If the station identifier is not known, you can obtain it through Public Transit Station Search API v8.
When querying departures by IDs, the boards element in the response contains
only the departures of the selected station.
Query departures by location
This query is useful when you want to know what transit departures are available within a location of your choice. The query will return the departures that fall within a circular area. The center of the area and its size are set by the location of your choice and the radius, respectively.
Note
The number of departures being returned is directly dependent on the size of the area.
You can make use of a number of parameters (e.g. time, maxPerBoard,
maxPerTransport) to limit the number of departures in the response.
For more information on how to use the Public Transit next departures API v8, see how to How to send a Request and consult one of the following examples:
Updated 14 days ago