Public Transit API Developer's Guide


City contains all available information about a city.

Table 1. City Type Attributes
Attribute Always Included Type Description
name Yes String Name of the city.
x Yes Coordinate Specifies the longitude of the city center.
y Yes Coordinate Specifies the latitude of the city center.
country Yes String The country that city belongs to.
created Yes DateTime The date the city information has been created.
updated Yes DateTime The date the city information has been updated.
display_name - String Specifies information about the screen display of name, state and country. The actual screen display may differ from this preview.
state - String If the country is devided in states, this is the name of the state that city belongs to.
relevancy - Float It is a value between 0 and 1 putting weight how relevant some city should be for user when user is in some specific location. This will mostly give correct results but it cannot be guaranteed.
distance - Integer Distance to the user when user coordinates are provided.
Table 2. City Type Elements
Element Always Included Type Description
Cvg Yes Cvg Contains detailed coverage information.
Operators - Operators Contains all available information about operators referenced in the response.
Providers - Providers Specifies a list of data providers.
MissingCoverage - MissingCoverage MissingCoverage type contains information about operators, transports or time tables we are not able to provide.
Pop - Pop Specifies the population of a city.