/departures/byStop/{stopId}

This query returns a list of departures for the stop identified by the {stopId} URL parameter.

Object type : departure

URL Parameters :

  • stopId the stop's text id to get ETA data for. In GTFS data this is the "stop_id" column of stops.txt, in the RouteMatch schema it is the "FRRouteStopIDName" column.

Query Parameters :

  • timeHorizon (integer) – this is the number of minutes into the future to look for upcoming departures at this stop. The default value is 120.

  • preWindow (integer) – this is the number of seconds into the past to look for completed departures at this stop. The default value is 15.

  • rowCount (integer) – this is the maximum number of rows to return. The list is sorted by the scheduled departure time and then truncated to this limit. The default value is 20.

  • adherenceEnabled (boolean) – this option allows the calculation of schedule adherence to be disabled. When set to false the schedule adherence fields of the ETA object will not be filled in, they will be set to null. This increases performance and should be used when the consuming application does not need schedule adherence information. The default value is true. Valid values are "true" or "false".

Example 5. No Parameters

http://www.example.com/feed/departures/byStop/1001 - TERMINAL & TERMINAL


Example 6. Showing 5 minutes of completed departures

http://www.example.com/feed/departures/byStop/1001 - TERMINAL & TERMINAL?preWindow=300


Example 7. Not including schedule adherence information

http://www.example.com/feed/departures/byStop/1001 - TERMINAL & TERMINAL?preWindow=300&adherenceEnabled=false