Skip to content
carabalb edited this page Jun 24, 2016 · 4 revisions

Table of Contents

Trips for Run

This interface returns the list of trips assigned to a particular run.

Call

(tdm component)/api/trips/(runId)/run-route

Options

URL Parameter Example Description Default
runId B63-119 The runID initially applied to a trip N/A
time (optional) 2012-12-06_10-30-00 ms since the unix epoch or of the form YYYY-MM-DD_HH-MM-SS NOW

Response

Returns JSON data similar to:

 {
  "tripsForRun": {
   "trips": [
    {
     "startLocationStopId": "MTA_308616",
     "directionId": "1",
 	 "tripId": "MTA NYCT_20120902EE_073400_B63_0118_B35_24",
 	 "reliefRunId": "B63-119",
 	 "initialRunId": "B35-24",
 	 "routeId": "MTA NYCT_B63",
 	 "endTime": 1354646520,
 	 "reliefTime": 1354644240,
 	 "startTime": 1354641240,
 	 "reliefStopId": "MTA_305438",
 	 "blockId": "MTA NYCT_B_20120902EE_E_JG_37320_B35-24",
 	 "endLocationStopId": "MTA_801042",
 	 "dsc": "4631"
    }
   ],
   "runId": "B63-119",
   "agencyId": "MTA NYCT"
  }
 }
Clone this wiki locally