Live Transit API/API/arrivals/:stop code

Provides the next five vehicle visits, both scheduled and calculated, in descending order for a given Stop code. Also provides active informational message(s) for the given Stop (e.g.; vehicle breakdown, detours, etc.).

Includes extended information about the Stop, such as location expressed in both latitude and longitude properties and GeoJSON format.

Vehicle Arrivals are grouped by scheduled and calculated (note these may be different based on actual real time conditions). The Arrival data includes IDs for vehicle, route and trip, vehicle arrival and departure times and final stop for this trip. Calculated times are expressed as delta offset from scheduled arrival and departure times.

Resource
 GET http://rideonrealtime.net/arrivals/:code.format 

Response Formats: html, json, xml.

NOTE: This page is an exception to the usual default resource format, as it will return an html formatted document by default, rather than JSON.

Example Requests
 GET http://rideonrealtime.net/arrivals/23404.json  {   "stop": { "stop_id": "3404", "stop_code": "23404", "stop_name": "W JEFFERSON ST & ADAMS ST", "geometry": { "type": "Point", "coordinates": [ -77.154454,                39.083063            ]        },         "url": "/stops/23404" },    "scheduled_arrivals": [ {           "route": { "route_id": "1831", "route_name": "Rockville-Shady Grove", "url": "/routes/1831" },            "trip": { "trip_id": "251240", "trip_headsign": "Piccard & Gude", "url": "/trips/251240" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "09:13:43", "scheduled_display_time": "9:13AM", "message": "9:13AM Rockville-Shady Grove to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248628", "trip_headsign": "Rockville", "url": "/trips/248628" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "09:31:43", "scheduled_display_time": "9:31AM", "message": "9:31AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1831", "route_name": "Rockville-Shady Grove", "url": "/routes/1831" },            "trip": { "trip_id": "251241", "trip_headsign": "Piccard & Gude", "url": "/trips/251241" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "09:43:43", "scheduled_display_time": "9:43AM", "message": "9:43AM Rockville-Shady Grove to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248629", "trip_headsign": "Rockville", "url": "/trips/248629" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "10:01:43", "scheduled_display_time": "10:01AM", "message": "10:01AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248630", "trip_headsign": "Rockville", "url": "/trips/248630" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "10:31:43", "scheduled_display_time": "10:31AM", "message": "10:31AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248631", "trip_headsign": "Rockville", "url": "/trips/248631" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "scheduled_time": "11:01:43", "scheduled_display_time": "11:01AM", "message": "11:01AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" }   ],     "calculated_arrivals": [ {           "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248633", "trip_headsign": "Rockville", "url": "/trips/248633" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "calculated_time": "2012-06-02T11:39:00-05:00", "calculated_display_time": "11:39AM", "message": "11:39AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" },        {            "route": { "route_id": "1823", "route_name": "Rockville-Lakeforest", "url": "/routes/1823" },            "trip": { "trip_id": "248632", "trip_headsign": "Rockville", "url": "/trips/248632" },            "destination_stop_name": "ROCKVILLE STATION & BAY E - WEST", "calculated_time": "2011-04-09T11:25:00-05:00", "calculated_display_time": "11:25AM", "message": "11:25AM Rockville-Lakeforest to ROCKVILLE STATION & BAY E - WEST" }   ] }

 GET http://rideonrealtime.net/arrivals/23402.xml 

  3402 23402 W JEFFERSON ST &amp; ADAMS ST  Point -77.15454        39.083207      1823 Rockville-Lakeforest <trip url='/trips/248590'> <trip_id>248590</trip_id> <trip_headsign>Lakeforest</trip_headsign> <destination_stop_name>LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE</destination_stop_name> <scheduled_time>09:17:17</scheduled_time> <scheduled_display_time>9:17AM</scheduled_display_time> 9:17AM Rockville-Lakeforest to LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE </scheduled_arrival> <scheduled_arrival> <route url='/routes/1831'> 1831</route_id> Rockville-Shady Grove</route_name> <trip url='/trips/251213'> <trip_id>251213</trip_id> <trip_headsign>Shady Grove</trip_headsign> <destination_stop_name>SHADY GROVE STATION &amp; BAY A - WEST</destination_stop_name> <scheduled_time>09:27:17</scheduled_time> <scheduled_display_time>9:27AM</scheduled_display_time> 9:27AM Rockville-Shady Grove to SHADY GROVE STATION &amp; BAY A - WEST </scheduled_arrival> <scheduled_arrival> <route url='/routes/1823'> 1823</route_id> Rockville-Lakeforest</route_name> <trip url='/trips/248591'> <trip_id>248591</trip_id> <trip_headsign>Lakeforest</trip_headsign> <destination_stop_name>LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE</destination_stop_name> <scheduled_time>09:42:17</scheduled_time> <scheduled_display_time>9:42AM</scheduled_display_time> 9:42AM Rockville-Lakeforest to LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE </scheduled_arrival> <scheduled_arrival> <route url='/routes/1823'> 1823</route_id> Rockville-Lakeforest</route_name> <trip url='/trips/248592'> <trip_id>248592</trip_id> <trip_headsign>Lakeforest</trip_headsign> <destination_stop_name>LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE</destination_stop_name> <scheduled_time>10:12:17</scheduled_time> <scheduled_display_time>10:12AM</scheduled_display_time> 10:12AM Rockville-Lakeforest to LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE </scheduled_arrival> <scheduled_arrival> <route url='/routes/1823'> 1823</route_id> Rockville-Lakeforest</route_name> <trip url='/trips/248593'> <trip_id>248593</trip_id> <trip_headsign>Lakeforest</trip_headsign> <destination_stop_name>LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE</destination_stop_name> <scheduled_time>10:42:17</scheduled_time> <scheduled_display_time>10:42AM</scheduled_display_time> 10:42AM Rockville-Lakeforest to LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE </scheduled_arrival> <scheduled_arrival> <route url='/routes/1823'> 1823</route_id> Rockville-Lakeforest</route_name> <trip url='/trips/248594'> <trip_id>248594</trip_id> <trip_headsign>Lakeforest</trip_headsign> <destination_stop_name>LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE</destination_stop_name> <scheduled_time>11:12:17</scheduled_time> <scheduled_display_time>11:12AM</scheduled_display_time> 11:12AM Rockville-Lakeforest to LAKEFOREST TRANSIT CENTER &amp; ODENDHAL AVE </scheduled_arrival> </scheduled_arrivals> <calculated_arrivals type='array'> </calculated_arrivals>