← Back to catalog

Other

Real-Time Bus Predictions

auto-generated
swirls add wmata
actionGETv1.0.0

JSON - Next Buses

<h4 class="text-primary">Description</h4> <p>Returns next bus arrival times at a stop.</p> <h4 class="text-primary">Response Elements</h4> <table class="table table-condensed table-hover"> <thead> <tr> <th class="col-md-3">Element</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>Predictions</td> <td> Array containing bus predictions (<a href= "#NextBusPrediction">NextBusPrediction</a>). </td> </tr> <tr> <td>StopName</td> <td>Full name of the given StopID.</td> </tr> <tr> <td colspan="2"> <div class="text-primary" style="margin-top: 1em"> <a id="NextBusPrediction" name= "NextBusPrediction">NextBusPrediction Elements</a> </div> </td> </tr> <tr> <td>DirectionNum</td> <td>Denotes a binary direction (0 or 1) of the bus. There is no specific mapping to direction, but a different value for the same route signifies that the buses are traveling in opposite directions. Use the DirectionText element to show the actual destination of the bus.</td> </tr> <tr> <td>DirectionText</td> <td>Customer-friendly description of direction and destination for a bus.</td> </tr> <tr> <td>Minutes</td> <td>Minutes until bus arrival at this stop. Numeric value.</td> </tr> <tr> <td>RouteID</td> <td>Base route name as shown on the bus. This can be used in other bus-related methods. Note that all variants will be shown as their base route names (i.e.: 10Av1 and 10Av2 will be shown as 10A).</td> </tr> <tr> <td>TripID</td> <td>Trip identifier. This can be correlated with the data in our bus schedule information as well as bus positions.</td> </tr> <tr> <td>VehicleID</td> <td>Bus identifier. This can be correlated with results returned from bus positions.</td> </tr> </tbody> </table>

Source
actionGETv1.0.0

XML - Next Buses

<h4 class="text-primary">Description</h4> <p>Returns next bus arrival times at a stop.</p> <h4 class="text-primary">Response Elements</h4> <table class="table table-condensed table-hover"> <thead> <tr> <th class="col-md-3">Element</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>Predictions</td> <td> Array containing bus predictions (<a href= "#NextBusPrediction">NextBusPrediction</a>). </td> </tr> <tr> <td>StopName</td> <td>Full name of the given StopID.</td> </tr> <tr> <td colspan="2"> <div class="text-primary" style="margin-top: 1em"> <a id="NextBusPrediction" name= "NextBusPrediction">NextBusPrediction Elements</a> </div> </td> </tr> <tr> <td>DirectionNum</td> <td>Denotes a binary direction (0 or 1) of the bus. There is no specific mapping to direction, but a different value for the same route signifies that the buses are traveling in opposite directions. Use the DirectionText element to show the actual destination of the bus.</td> </tr> <tr> <td>DirectionText</td> <td>Customer-friendly description of direction and destination for a bus.</td> </tr> <tr> <td>Minutes</td> <td>Minutes until bus arrival at this stop. Numeric value.</td> </tr> <tr> <td>RouteID</td> <td>Base route name as shown on the bus. This can be used in other bus-related methods. Note that all variants will be shown as their base route names (i.e.: 10Av1 and 10Av2 will be shown as 10A).</td> </tr> <tr> <td>TripID</td> <td>Trip identifier. This can be correlated with the data in our bus schedule information as well as bus positions.</td> </tr> <tr> <td>VehicleID</td> <td>Bus identifier. This can be correlated with results returned from bus positions.</td> </tr> </tbody> </table>

Source
Beyond the catalog

Any provider, on request.

01

Request it

Tell us which provider you need, and we will ship it in the registry.

02

Generate it

Point swirls add at an OpenAPI or GraphQL spec. Typed actions for any API you hold credentials for, today.

acme · integrations
terminal
~/acme $swirls add linear
✓ 12 typed actions · scopes and schemas included
 
~/acme $swirls add https://api.acme.dev/openapi.json
◆ Fetched spec · 38 operations
✓ 6 typed actions · generated from spec