Back to API parent page

Method: arrival-and-departure-for-stop

Get info about a single arrival and departure for a stop

Sample Response

  <data class="entryWithReferences">
    <entry class="arrivalAndDeparture">
      <!-- See documentation for the arrivalAndDeparture element, linked below -->

Request Parameters

  • id - the stop id, encoded directly in the url:
    •[ID GOES HERE].xml
  • tripId - the trip id of the arriving transit vehicle
  • serviceDate - the service date of the arriving transit vehicle
  • vehicleId - the vehicle id of the arriving transit vehicle (optional)
  • stopSequence - the stop sequence index of the stop in the transit vehicles trip

The key here is uniquely identifying which arrival you are interested in. Typically, you would first make a call to arrivals-and-departures-for-stop to get a list of upcoming arrivals and departures at a particular stop. You can then use information from those results to specify a particular arrival. At minimum, you must specify the trip id and service date. Additionally, you are also encouraged to specify the vehicle id if available to help disambiguate between multiple vehicles serving the same trip instance. Finally, you are encouraged to specify the stop sequence. This helps in the situation when a vehicle visits a stop multiple times during a trip (it happens) plus there is performance benefit on the back-end as well.


The method returns an element as its content.