-
Notifications
You must be signed in to change notification settings - Fork 30
Depot API
abmagil edited this page Nov 28, 2012
·
7 revisions
This API contains two pieces:
- A list of the current depots
- A list of the vehicles assigned to each depot for use in partitioning the total stream of bus messages across inference engines.
(tdm component)/api/depot/list</list>
(tdm component)/api/depot/(depot-id)/vehicles/list
===Options===
N/A
===Response===
1)
&#123;
&quot;depots&quot;&#58;&#91;
&quot;100th&quot;,
&quot;126th&quot;,
&quot;CHAR&quot;
&#93;,
&quot;status&quot;&#58;&quot;OK&quot;
&#125;
2)
&#123;
&quot;vehicles&quot;&#58; &#91;
&#123;
&quot;agency&#45;id&quot;&#58; &quot;MTA NYCT&quot;,
&quot;vehicle&#45;id&quot;&#58; &quot;7588&quot;
&#125;,
&#123;
&quot;agency&#45;id&quot;&#58; &quot;MTA NYCT&quot;,
&quot;vehicle&#45;id&quot;&#58; &quot;7561&quot;
&#125;,
&#93;,
&quot;status&quot;&#58; &quot;OK&quot;
&#125;
==Data==
The depot-bus assignment data is fetched hourly from a web service