Skip to content
fruminator edited this page Apr 1, 2013 · 10 revisions

Bus CIS Server provides an API to access destination sign code (DSC) information for running buses.

Table of Contents

Call

(tdm component)/api/dsc/list

Options

URL Option Outcome
/api/dsc/list Return all DSC data
/api/dsc/(code)/sign Return all data for a single sign code

Responses

For all DSCs, the response will approximate:

 {
  "signs": [
    {
      "message-id": 6,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "NOT IN SERVICE"
    },
    {
      "message-id": 7,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "SUBWAY SHUTTLE"
    },
    {
      "message-id": 10,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "SEE SIGN BELOW"
    },
    {
      "message-id": 11,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "NEXT BUS PLEASE"
    },
    {
      "message-id": 12,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "NOT IN SERVICE"
    },
    {
      "message-id": 13,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "TRAINING BUS"
    },
    {
      "message-id": 22,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "NYCT BUS"
    },
    {
      "message-id": 1010,
      "agency-id-tcip": "2008",
      "agency-id": "MTA NYCT",
      "message-text": "HARLEM 147 ST via MADISON AV"
    },
    {
      "message-id": 12,
      "agency-id-tcip": "2118",
      "agency-id": "MTABC",
      "message-text": "NOT IN SERVICE"
    },	
    {
      "message-id": 5010,
      "agency-id-tcip": "2118",
      "agency-id": "MTABC",
      "message-text": " RIVERDALE 263 ST via H. HUDSON PKY "
    }
  ],
  "status": "OK"
 }

Alternatively, the API can return bus information for a single DSC:

 {"sign":{"message-id":6740,"agency-id-tcip": "2008","agency-id": "MTA NYCT","message-text":"ST GEORGE FERRY"},"status":"OK"}

Data

The underlying data is documented here

Clone this wiki locally