route-ids-for-agency Method
Retrieve the list of all route ids for a particular agency.
Example Request
https://api.pugetsound.onebusaway.org/api/where/route-ids-for-agency/40.json?key=TEST
Example Response
{"code":200,"currentTime":1710977435475,"data":{"limitExceeded":false,"list":["40_100511","40_532","40_535","40_SNDR_TL","40_102734","40_560","40_574","40_577","40_578","40_SNDR_EV","40_580","40_586","40_590","40_592","40_594","40_595","40_596","40_100232","40_100236","40_100479","40_2LINE","40_100240","40_100239","40_100451","40_TLINE","40_510","40_512","40_513"],"references":{"agencies":[],"routes":[],"situations":[],"stopTimes":[],"stops":[],"trips":[]}},"text":"OK","version":2}
Request Parameters
id
- the id of the agency, encoded directly in the URL:http://api.pugetsound.onebusaway.org/api/where/route-ids-for-agency/[ID GOES HERE].xml?key=TEST
Response
Returns a list of all route ids for routes served by the specified agency. Note that <route/>
elements for the referenced routes will NOT be included in the <references/>
section, since there are potentially a large number of routes for an agency.