GET Transit Hubs

Returns all transit hubs.

Request Information

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

URI Parameters

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


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
Region

The name of the region of the transit hub.

string

Response Formats

JSON

Sample:
[
  {
    "Id": 1848677822,
    "Latitude": 43.4171,
    "Longitude": -79.7219,
    "Name": "Bronte GO",
    "Address": "2104 Wyecroft Rd., Oakville, ON",
    "Website": "http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=BTGO",
    "Region": "Central"
  },
  {
    "Id": 1359168930,
    "Latitude": 43.5556,
    "Longitude": -79.5875,
    "Name": "Port Credit GO Station",
    "Address": "30 Queen St. E., Mississauga, ON",
    "Website": "http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=PCGO",
    "Region": "Central"
  }
]

XML

Sample:
<TransitHubList>
	<TransitHub>
		<Id>1848677822</Id>
		<Latitude>43.4171</Latitude>
		<Longitude>-79.7219</Longitude>
		<Name>Bronte GO</Name>
		<Address>2104 Wyecroft Rd., Oakville, ON</Address>
		<Website>http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=BTGO</Website>
		<Region>Central</Region>
	</TransitHub>
	<TransitHub>
		<Id>1359168930</Id>
		<Latitude>43.5556</Latitude>
		<Longitude>-79.5875</Longitude>
		<Name>Port Credit GO Station</Name>
		<Address>30 Queen St. E., Mississauga, ON</Address>
		<Website>http://www.gotransit.com/publicroot/en/travelling/stations.aspx?station=PCGO</Website>
		<Region>Central</Region>
	</TransitHub>
</TransitHubList>