Skip to content

Crew Assignment API

sheldonabrown edited this page Jan 28, 2014 · 7 revisions

Table of Contents

Crew Assignments

This API associates operator IDs and associated run IDs, for use during the matching of observed data from a vehicle to the schedule.

This is only operational for a service-date of today. In the early and late hours of the day, data is available for the adjacent day.

Call

(tdm component)/api/crew/(service-date)/list

Response in JSON:

 {
  crew: [
    {
      "agency-id": "MTA NYCT",
      "depot": "OS",
      "pass-id": "123456",
      "run-route": "B63",
      "run-number": "200",
      "run-id": "B63-200",
      "service-date": "2011-11-02",
      "updated": "2011-11-02T10:11:10-005"
    },
    [...]
  ],
  status: "OK"
 }

Notes on this service:

  1. It will have no more than one response for a given pass-id for a given service date.
  2. The run number will not have any leading zeros

Data

Underlying data format is here

Clone this wiki locally