WMATA Bus Route and Stop Methods XML - Bus Position

Washington Metropolitan Area Transit Authority - XML - Bus Position

Description Returns bus positions for the given route, with an optional search radius. If no parameters are specified, all bus positions are returned. Note that the RouteID parameter accepts only base route names and no variations, i.e.: use 10A instead of 10Av1 or 10Av2. Bus positions are refreshed approximately every 20 to 30 7 to 10 seconds. Response Elements Element Description BusPositions Array containing bus position information (BusPositions). BusPosition Elements DateTime Date and time (Eastern Standard Time) of last position update. Will be in YYYY-MM-DDTHH:mm:ss format (e.g.: 2014-10-27T13:23:40). Deviation Deviation, in minutes, from schedule. Positive values indicate that the bus is running late while negative ones are for buses running ahead of schedule. DirectionNum Deprecated. Use the DirectionText for a customer-friendly description of direction. DirectionText General direction of the trip, not the bus itself (e.g.: NORTH, SOUTH, EAST, WEST). Lat Last reported Latitude of the bus. Lon Last reported Longitude of the bus. RouteID Base route name as shown on the bus. Note that the base route name could also refer to any variant, so a RouteID of 10A could refer to 10A, 10Av1, 10Av2, etc. TripEndTime Scheduled end date and time (Eastern Standard Time) of the bus's current trip. Will be in YYYY-MM-DDTHH:mm:ss format (e.g.: 2014-10-27T13:17:00). TripHeadsign Destination of the bus. TripID Unique trip ID. This can be correlated with the data returned from the schedule-related methods. TripStartTime Scheduled start date and time (Eastern Standard Time) of the bus's current trip. Will be in YYYY-MM-DDTHH:mm:ss format (e.g.: 2014-10-27T12:40:00). VehicleID Unique identifier for the bus. This is usually visible on the bus itself.

Posted on:

2018-08-27

API Description

Provider

Washington Metropolitan Area Transit Authority

decription

Official feed of Metro/WMATA, not monitored 24/7. Report emergencies to Transit Police at (202) 962-2121. Service updates @metrorailinfo & @metrobusinfo.

Curl command through Streamdata.io

curl -v "https://streamdata.motwin.net/http://api.wmata.com/Bus.svc/BusPositions?X-Sd-Token={streamdata_token}&Lat={field_value}&Lon={field_value}&Radius={field_value}&RouteID={field_value}"



Return to Main Page



Submit Your API

Join the gallery to find out how much you can save with Streamdata.io.