Bus Route and Stop Methods
Bus stop information, route and schedule data, and bus positions.
Logistics & shipping#openapi#transport
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Bus stop information, route and schedule data, and bus positions.
Endpoints 12
- GETXML - Bus Position
/BusPositions?RouteID=70&Lat=string&Lon=string&Radius=string<h4 class="text-primary">Description</h4> <p>Returns bus positions for the given route, with an optional search radius. If no parameters are specified, all… - GETXML - Path Details
/RouteDetails?RouteID=70&Date=string<h4 class="text-primary">Description</h4> <p>For a given date, returns the set of ordered latitude/longitude points along route variant along with the list of… - GETXML - Schedule
/RouteSchedule?RouteID=70&Date=string&IncludingVariations=false<h4 class="text-primary">Description</h4> <p>Returns schedules for a given route variant for a given date.</p> <h4 class="text-primary">Response Elements</h4>… - GETXML - Routes
/Routes<h4 class="text-primary">Description</h4> <p>Returns a list of all bus route variants (patterns). For example, the 10A and 10Av1 are the same route, but may… - GETXML - Schedule at Stop
/StopSchedule?StopID=1001195&Date=string<h4 class="text-primary">Description</h4> <p>Returns a set of buses scheduled at a stop for a given date.</p> <h4 class="text-primary">Response Elements</h4>… - GETXML - Stop Search
/Stops?Lat=38.878586&Lon=-76.989626&Radius=500<h4 class="text-primary">Description</h4> <p>Returns a list of nearby bus stops based on latitude, longitude, and radius. Omit all parameters to retrieve a… - GETJSON - Bus Position
/json/jBusPositions?RouteID=70&Lat=0.0&Lon=0.0&Radius=0.0<h4 class="text-primary">Description</h4> <p>Returns bus positions for the given route, with an optional search radius. If no parameters are specified, all… - GETJSON - Path Details
/json/jRouteDetails?RouteID=70&Date=string<h4 class="text-primary">Description</h4> <p>For a given date, returns the set of ordered latitude/longitude points along a route variant along with the list… - GETJSON - Schedule
/json/jRouteSchedule?RouteID=70&Date=string&IncludingVariations=false<h4 class="text-primary">Description</h4> <p>Returns schedules for a given route variant for a given date.</p> <h4 class="text-primary">Response Elements</h4>… - GETJSON - Routes
/json/jRoutes<h4 class="text-primary">Description</h4> <p>Returns a list of all bus route variants (patterns). For example, the 10A and 10Av1 are the same route, but may… - GETJSON - Schedule at Stop
/json/jStopSchedule?StopID=1001195&Date=string<h4 class="text-primary">Description</h4> <p>Returns a set of buses scheduled at a stop for a given date.</p> <h4 class="text-primary">Response Elements</h4>… - GETJSON - Stop Search
/json/jStops?Lat=38.878586&Lon=-76.989626&Radius=500<h4 class="text-primary">Description</h4> <p>Returns a list of nearby bus stops based on latitude, longitude, and radius. Omit all parameters to retrieve a…
API details
- Base URL
https://api.wmata.com/Bus.svc- Authentication
- An API key in the api_key header
An API key in the api_key query parameter - Operations
- 12 operations on 12 pathsGET 12
- Description format
- Swagger 2.0, API version
1.0 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Bus Route and Stop Methods in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Bus Route and Stop Methods collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the api_key header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “XML - Bus Position” (GET /BusPositions?RouteID=70&Lat=string&Lon=string&Radius=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Bus Route and Stop Methods?
Bus stop information, route and schedule data, and bus positions. It is listed under Logistics & shipping and has 12 endpoints.
Who publishes the Bus Route and Stop Methods?
It is listed from Wmata's public API description (an OpenAPI document), not published by Wmata on Swastik Codes. Anyone who controls wmata.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Bus Route and Stop Methods?
Requests go to https://api.wmata.com/Bus.svc. Endpoint paths are added to this base URL.
How do I authenticate with the Bus Route and Stop Methods?
It accepts 2 methods: an API key in the api_key header; an API key in the api_key query parameter.
How many endpoints does the Bus Route and Stop Methods have?
12 operations on 12 paths (12 GET).
Is forking the Bus Route and Stop Methods free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.