Back to API parent page

Method: arrivals-and-departures-for-location

Get current arrivals and departures for stops identified by location

Sample Response

  <data class="listWithReferences">
    <entry class="stopsWithArrivalsAndDepartures">

Request Parameters

  • id - the stop id, encoded directly in the URL:
  • lat - The latitude coordinate of the search center
  • lon - The longitude coordinate of the search center
  • latSpan/lonSpan - Set the limits of the search bounding box
  • time - by default, the method returns the status of the system right now. However, the system can also be queried at a specific time. This can be useful for testing. See timestamps for details on the format of the time parameter.
  • maxCount - The size of the list of nearbyStopIds, arrivalsAndDepartures, and stops to return. Defaults to 250, can be up to 1000.
  • routeType - optional GTFS routeType to filter by


The response is primarily composed of <arrivalAndDeparture/> elements, so see the element documentation for specific details.

The nearby stop list is designed to capture stops that are very close by (like across the street) for quick navigation. This is sorted by distance and truncated to maxCount.

Trips will not show up in the results if the schedule_relationship is SKIPPED.