stops-for-agency Method

Retrieve the list of all stops for a particular agency by id.

Example Request

http://localhost:8080/onebusaway-api-webapp/api/where/stops-for-agency/unitrans.json?key=TEST

Example Response

Request Parameters

  • id - the id of the agency, encoded directly in the URL:
    • http://api.pugetsound.onebusaway.org/api/where/stops-for-agency/[ID GOES HERE].json

Response

Returns a list of all stops served by the specified agency. See the full description for the <stop/> element.

Note: This endpoint was introduced in OneBusAway 2.5.13.