GET stops
Returns a list of stops based on the provided information.
Resource URL
http://api.rgrta.com/stops
Parameters
stopid
optional
|
Specifies the Stop ID, which is the ID found on each bus stop sign. If a Stop ID is provided, the method will return the specified stop's information.
Example Value: 12345
|
linedirid
optional
|
Specifies the Line Direction ID, which can be obtained from the API using the Lines methods.
Example Value: 91180
|
patternid
optional
|
Specifies the Pattern ID, which can be obtained from the API using the Patterns methods.
Example Value: 54321
|
Special Note: if a linedirid is provided, a stopid cannot be provided. If a patternid is provided, a linedirid must be provided.
Response Object
Stop
Example Request
GET - http://api.rgrta.com/stops?stopid=1007
[
{
"StopID":1007,
"StopAbbr":"1007",
"StopName":"East & Alexander",
"NodeAbbr":"EASTALEX",
"OnStreet":"STATE HWY 96",
"AtStreet":"ALEXANDER ST",
"StopLat":"43.155083",
"StopLon":"-77.594684",
"AgencyId":0
}
]