Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
269 lines (238 loc) · 4.66 KB

agency_stops.md

File metadata and controls

269 lines (238 loc) · 4.66 KB

List of GRT bus stops

GET /v2/transit/grt/stops.{format}

Description

This method returns list of all GRT bus stops

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1913 Enabled Yes
Service Name poi Service ID 349
Information Steward GTFS data from agency Data Type CSV
Update Frequency Every day Cache Time 0 seconds

Notes

  • Any value can be null

Sources

Parameters

GET /v2/transit/grt/stops.{format}
Parameter Type Required Description
format input yes The format of the output
key filter yes Your API key
callback filter no JSONP callback format

Output Formats

  • json
  • geojson
  • xml

Examples

GET /v2/transit/grt/stops.{format}

Response

Field Name Type Value Description
id string Stop id
name string Stop name
description string Stop description
parent string Stop parent id
zone_id string Stop zone id
location_type string Location type (stop, etc)
url string Stop URL (if applicable)
latitude float Stop latitude
longitude float Stop longitude

Any value can be null

Output

JSON

{
  "meta":{
    "requests":811672,
    "timestamp":1453160695,
    "status":200,
    "message":"Request successful",
    "method_id":1931,
    "method":{
      
    }
  },
  "data":[
    {
      "id":"1000",
      "name":"Frederick \/ King",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.449665,
      "longitude":-80.487205
    },
    {
      "id":"1001",
      "name":"Frederick \/ Irvin",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.452326,
      "longitude":-80.484192
    },
    {
      "id":"1002",
      "name":"Frederick \/ Otto",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.452995,
      "longitude":-80.482913
    },
    {
      "id":"1003",
      "name":"Frederick \/ Samuel",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.454826,
      "longitude":-80.479511
    },
    {
      "id":"1004",
      "name":"Frederick \/ Merner",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.45621,
      "longitude":-80.476903
    },
    {
      "id":"1005",
      "name":"Union \/ Dover",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.463995,
      "longitude":-80.509249
    },
    {
      "id":"1006",
      "name":"Frederick Street Mall",
      "description":null,
      "parent":null,
      "zone_id":null,
      "location_type":"stop",
      "url":null,
      "latitude":43.457923,
      "longitude":-80.473576
    }
  ]
}