Skip to content
abmagil edited this page Nov 29, 2012 · 7 revisions

This API contains two pieces:

  1. A list of the current depots
  2. A list of the vehicles assigned to each depot for use in partitioning the total stream of bus messages across inference engines.

Table of Contents

Call

  1. (tdm component)/api/depot/list
  2. (tdm component)/api/depot/(depot-id)/vehicles/list

Options

N/A

Response

1.

 {
 "depots":[
         "100th",
         "126th",
         "CHAR"
         ],
 "status":"OK"
 }

2.

 {
    "vehicles": [
        {
            "agency-id": "MTA NYCT",
            "vehicle-id": "7588"
        },
        {
            "agency-id": "MTA NYCT",
            "vehicle-id": "7561"
        },
    ],
    "status": "OK"
 }

Data

The underlying data format is here

Clone this wiki locally