WMATA Bus Route and Stop Methods JSON - Path Details

Washington Metropolitan Area Transit Authority - JSON - Path Details

Description For a given date, returns the set of ordered latitude/longitude points along a route variant along with the list of stops served. Response Elements Element Description Direction0/Direction1 Structures describing path/stop information. Most routes will return content in both Direction0 and Direction1 elements, though a few will return NULL for Direction0 or for Direction1. 0 or 1 are binary properties. There is no specific mapping to direction, but a different value for the same route signifies that the route is in an opposite direction. Name Descriptive name for the route. RouteID Bus route variant (e.g.: 10A, 10Av1, etc.). Direction0/Direction1 Elements DirectionNum Deprecated. Use the DirectionText element to denote the general direction of the route variant. DirectionText General direction of the route variant (NORTH, SOUTH, EAST, WEST, LOOP, etc.). Shape Array containing shape point information (ShapePoint). Stops Array containing stop information (Stop). TripHeadsign Descriptive text of where the bus is headed. This is similar, but not necessarily identical, to what is displayed on the bus. ShapePoint Elements Lat Latitude. Lon Longitude. SeqNum Order of the point in the sequence of ShapePoints. Stop Elements Lat Latitude. Lon Longitude. Name Stop name. May be slightly different from what is spoken or displayed in the bus. Routes String array of route variants which provide service at this stop. Note that these are not date-specific; any route variant which stops at this stop on any day will be listed. StopID 7-digit regional ID which can be used in various bus-related methods. If unavailable, the StopID will be 0 or NULL.

Posted on:


API Description


Washington Metropolitan Area Transit Authority


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/json/jRouteDetails?X-Sd-Token={streamdata_token}&Date={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.