GET actrealtime/stop?rt={rt}&dir={dir}&stpid={stpid}&callback={callback}
Use this method to retrieve the set of stops for the specified route and direction. A request must provide either a rt and dir or up to 10 stpids, but not both. Stop lists are only available for a valid route/direction pair. In other words, a list of all stops that service a particular route(regardless of direction) cannot be requested.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
rt |
single route designator (required if stpid is not provided) |
string |
None. |
dir |
single route direction (required if stpid is not provided) |
string |
None. |
stpid |
comma-delimited list of stop ids(required if route and directionId are not). |
string |
None. |
callback | string |
None. |
Body Parameters
None.
Response Information
Resource Description
A well-formed XML or JSON document will be returned as a response
RequestResponseOfStopRequestResponseName | Description | Type | Additional information |
---|---|---|---|
bustime-response |
None. |
Response Formats
application/json, text/json
Sample:
{ "bustime-response": { "stops": [ { "stpid": "sample string 1", "stpnm": "sample string 2", "lat": 3.0, "lon": 4.0, "dtradd": "sample string 5", "dtrrem": "sample string 6" }, { "stpid": "sample string 1", "stpnm": "sample string 2", "lat": 3.0, "lon": 4.0, "dtradd": "sample string 5", "dtrrem": "sample string 6" } ], "error": [ {}, {} ] } }
text/html
Sample:
{"bustime-response":{"stops":[{"stpid":"sample string 1","stpnm":"sample string 2","lat":3.0,"lon":4.0,"dtradd":"sample string 5","dtrrem":"sample string 6"},{"stpid":"sample string 1","stpnm":"sample string 2","lat":3.0,"lon":4.0,"dtradd":"sample string 5","dtrrem":"sample string 6"}],"error":[{},{}]}}
application/xml, text/xml
Sample:
<RequestResponseOfStopRequestResponseV_SDPij9I xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models"> <Response> <Error xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:anyType /> <d3p1:anyType /> </Error> <Stops> <StopRequestResponse.Stop> <Dtradd>sample string 5</Dtradd> <Dtrrem>sample string 6</Dtrrem> <Lat>3</Lat> <Lon>4</Lon> <Stpid>sample string 1</Stpid> <Stpnm>sample string 2</Stpnm> </StopRequestResponse.Stop> <StopRequestResponse.Stop> <Dtradd>sample string 5</Dtradd> <Dtrrem>sample string 6</Dtrrem> <Lat>3</Lat> <Lon>4</Lon> <Stpid>sample string 1</Stpid> <Stpnm>sample string 2</Stpnm> </StopRequestResponse.Stop> </Stops> </Response> </RequestResponseOfStopRequestResponseV_SDPij9I>