GET Transit Hubs

Returns all transit hubs.

Request Information

https://511on.ca/api/v2/get/transithub

URI Parameters

NameDescriptionTypeAdditional information
format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

lang

Valid values are 'en' or 'fr', default 'en'.

string

Optional

Response Information

Resource Description


NameDescriptionType
Id

A unique identifier.

integer
Latitude

The latitude describing the location. Format: double between -90 and 90.

double
Longitude

The longitude describing the location. Format: double between -180 and 180.

double
Name

The name of the transit hub.

string
Address

The address of the transit hub.

string
Website

The website where more information on the transit hub can be found.

string

Response Formats

JSON

Sample:
[
  {
    "Id":41,
    "Latitude":43.733097,
    "Longitude":-79.263968,
    "Name":"Kennedy TTC Station",
    "Address":"2455 Eglinton Ave E Toronto, ON M1K, Canada",
    "Website":"https://www.ttc.ca/Subway/Stations/Kennedy/station.jsp"
  },
  {
    "Id":251,
    "Latitude":44.0007,
    "Longitude":-79.4599,
    "Name":"Aurora GO Station",
    "Address":"121 Wellington Street East, Aurora, ON",
    "Website":"http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=AUGO"
  }
]

XML

Sample:
<TransitHubList>
  <TransitHub>
    <Id>41</Id>
    <Latitude>43.733097</Latitude>
    <Longitude>-79.263968</Longitude>
    <Name>Kennedy TTC Station</Name>
    <Address>2455 Eglinton Ave E Toronto, ON M1K, Canada</Address>
    <Website>
      https://www.ttc.ca/Subway/Stations/Kennedy/station.jsp
    </Website>
  </TransitHub>
  <TransitHub>
    <Id>251</Id>
    <Latitude>44.0007</Latitude>
    <Longitude>-79.4599</Longitude>
    <Name>Aurora GO Station</Name>
    <Address>121 Wellington Street East, Aurora, ON</Address>
    <Website>
      http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=AUGO
    </Website>
  </TransitHub>
</TransitHubList>