Skip to content
asutula edited this page Dec 18, 2012 · 1 revision

Table of Contents

Runs for Stop

This interface returns the list of runs for a particular stop.

Call

(inference engine component)/onebusaway-nyc-vehicle-tracking-webapp/vehicle-location-simulation!runsForStop.do

Input

Unknown/archive?

Options

URL Parameter Example Description Default
id MTA_203345 The stop ID to get runs for N/A
time (optional) 2012-12-06_10-30-00 ms since the unix epoch or of the form YYYY-MM-DD_HH-MM-SS NOW
minutesBefore (optional) 30 include runs scheduled to serve the given stop in the previous n minutes 60
minutesAfter (optional) 40 include runs scheduled to serve the given stop in the next n minutes 60

Response

Returns JSON data similar to:

 {
    "runsForStop": {
        "id": "MTA_203345",
        "runs": [
            {
                "id": "SBS79-10",
                "trips": [
                    {
                        "time": "1355858113",
                        "directionId": "1",
                        "destinationSignCode": "6793",
                        "blockId": "MTA NYCT_S_20120902EE_E_YU_45840_SBS79-10",
                        "tripId": "MTA NYCT_20120902EE_084000_SBS79_0047_SBS79_10",
                        "routeId": "MTA NYCT_S79+",
                        "runId": "SBS79-10"
                    }
                ],
                "agencyId": "MTA NYCT"
            }
        ]
    }
 }
Clone this wiki locally