Public Transit API Developer's Guide

Stn

Stn specifies various information about a stop or a station.

Table 1. Stn Type Attributes
Attribute Always Included Type Description
x Yes Coordinate Longitude coordinate
y Yes Coordinate Latitude coordinate
name Yes String Name of the station
id - StationId Unique id of the station
country - String Name of the country where the coordinates are into.
ccode - String 3 letter ISO 3166-1 country code
state - String State of the country
city - String Name of the city
postal - String Postal code
district - String District (e.g. 'Manhattan' in New York)
street - String Name of the street, square, boulevard,..
number - String Civic number
distance - Integer Distance in meters from the station, available only when querying for stations around you.
duration - TimeDelta Expected time to reach the station from your current location, available only when querying stations around you.
has_board - Integer When this attribute is 1, a station board (next departure) request can be performed. Only regions where timetable or real-time data supports the station board request.

The default is 1.

Table 2. Stn Type Elements
Element Always Included Type Description
Transports - Transports List of public transit transports that depart/arrive to this station.
Info - Info Info is a generic text content that can be showed to the final user. For example a station can require to call a number to request the bus/taxi.
At - List of At At is an attribute within an list of attributes. Each of these individual attributes contains an id and a value. The id specifies the type of information related to the value.