Skip to content
abmagil edited this page Nov 27, 2012 · 13 revisions

Table of Contents

Vehicle Pull In/Pull Out Data

This API gives vehicle pull in pull out information for use. Every vehicle pullout API call takes includeAll optional parameter. If set to true the web service will include all pullouts for the vehicles. If not set or set to false, the web service will return only most recent pullout per vehicle. This is the default behaviour.

Options

Option Output
/api/pullouts/list will return results with most recent pullout per vehicle
/api/pullouts/list?includeAll=true will return results with all pullouts per vehicle
/api/pullouts/<bus-number></bus-number>/list will return results with active pull outs by bus
/api/pullouts/depot/<depot>/list || will return results with active pull outs by depot |- | /api/pullouts/agency/&lt;agency&#45;id&gt;&lt;/agency&#45;id&gt&lt;/list&gt;</depot> will return results with active pull outs by agency

Response

{

pullouts: [
],
]status: "OK"

}

===Data===

The data supporting this API is uploaded to us hourly from MTA's UTS software. It is translated internally to TCIP, then to JSON for output.

Clone this wiki locally