stops-ids-for-agency Method
Retrieve the list of all stops for a particular agency by id.
Example Request
https://api.pugetsound.onebusaway.org/api/where/stop-ids-for-agency/40.json?key=TEST
Example Response
{"code":200,"currentTime":1710978113274,"data":{"limitExceeded":false,"list":["40_S_KE_SB","40_E21-T1","40_E21-T2","40_S_KE_NB","40_99904","40_99905","40_99903","40_99900","40_99913","40_99914","40_T23-T2","40_T23-T1","40_C03","40_C05","40_C07","40_C09","40_C13","40_C15","40_C19","40_C23","40_C25","40_C27","40_C29","40_C35","40_C37","40_1108","40_1121","40_T09-T1","40_T09-T2","40_E09","40_E11","40_E15","40_E19","40_E21","40_E23","40_E25","40_E27","40_S_TK_SB","40_S_TK_NB","40_E09-T1","40_E09-T2","40_E11-T2","40_E11-T1","40_E23-T2","40_E23-T1","40_S_SU_SB","40_S_SU_NB","40_T07-T2","40_T07-T1","40_T19-T1","40_T19-T2","40_56039","40_56159","40_56173","40_S_ED","40_S_EV","40_S_KS","40_S_MU","40_S_LW","40_S_ST","40_S_TD","40_N03","40_N05","40_N07","40_N09","40_N11","40_E25-T2","40_E25-T1","40_T21-T1","40_T21-T2","40_S01","40_S_PU_NB","40_S_PU_SB","40_T01","40_T03","40_T05","40_T07","40_T09","40_T13","40_T15","40_T17","40_T19","40_T21","40_T23","40_T25","40_55578","40_E27-T1","40_E27-T2","40_E15-T2","40_E15-T1","40_55656","40_455","40_55778","40_501","40_532","40_565","40_55860","40_621","40_623","40_55949","40_T05-T1","40_T05-T2","40_T17-T2","40_T17-T1","40_S_AU_NB","40_S_AU_SB","40_99101","40_99121","40_99111","40_SN02","40_SN03","40_SN04","40_99260","40_99256","40_990005","40_990006","40_990003","40_990004","40_990001","40_990002","40_T13-T1","40_T13-T2","40_99240","40_T25-T1","40_T25-T2","40_T15-T1","40_T15-T2","40_E19-T2","40_E19-T1","40_SS05","40_SS06","40_SS03","40_SS04","40_SS01","40_SS02","40_99605","40_99604","40_99603","40_SS09","40_SS07","40_SS08","40_99610"],"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/stop-ids-for-agency/[ID GOES HERE].xml
Response
Returns a list of all stop ids for stops served by the specified agency. Note that <stop/>
elements for the referenced stops will NOT be included in the <references/>
section, since there are potentially a large number of stops for an agency.