Stops API
Stops are locations where we have scheduled service.
Valid URL Parameters
| street | Only return stops on the street identified by the given feature key. |
|---|---|
| x | The UTM X coordinate of the point to find stops near. Use in conjunction with 'y' and 'distance'. |
| y | The UTM Y coordinate of the point to find stops near. Use in conjunction with 'x' and 'distance'. |
| lat | The latitude of the point to find stops near. Use in conjunction with 'lon' and 'distance'. |
| lon | The longitude of the point to find stops near. Use in conjunction with 'lat' and 'distance'. |
| distance | The distance in metres from the given point which returned stops must fall within. |
| walking | If set to true, the radius distance is calculated as walking distance. |
Noteworthy Results
| key | A unique identifier for this stop. |
|---|---|
| name | The stop name. See the usage parameter for formatting options. |
| number | The stop number. |
| direction | Specifies which direction buses which service the stop are heading. |
| side | Specifies which side of the intersection the stop lies on. |
| street|cross-street | The two streets which define the nearest intersection. See the Streets service for more details. |
| centre | A geographical point describing where the stop is located. Both UTM and geographic coordinate systems are provided. |
| distances | Contains distance information in metres. Only included when a point is provided in the URL parameters. |
| distances/direct | As-the-crow-flies distance to the point provided by the URL parameters. |
| distances/walking | Walking distance to the point provided by the URL parameters. Only included if the 'walking' parameter is set. |
Examples
Login to see sample results.
Identity
- stops/10064?usage=long
- stops/invalid
- stops/1
Filter
- stops?street=2716
- stops?x=633861&y=5525798&distance=150
- stops?lon=-97.138&lat=49.895&distance=250
- stops?x=633861&y=5525798&walking=true&distance=150
- stops?lon=-97.1372&x=633861&distance=100
Wildcard
- stops:osborne
- stops:mcgreg