- Previous: Method 2: Rail Stations
- Up: Description of Methods
- Next: Method 4: Rail Paths
Method 3: Rail Station Info
Description: Returns descriptive information about a single station.
Examples
url (REST) : http://api.wmata.com/Rail.svc/StationInfo?StationCode=A10&api_key=YOUR_API_KEY - returns the description of station A10
url (JSON): http://api.wmata.com/Rail.svc/json/JStationInfo?StationCode=A10&api_key=YOUR_API_KEY
Response example (REST):
<Station xmlns="http://www.wmata.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Code>C01</Code> <Lat>38.8983144732</Lat> <LineCode1>BL</LineCode1> <LineCode2>OR</LineCode2> <LineCode3 i:nil="true"/> <LineCode4 i:nil="true"/> <Lon>-77.0280779971</Lon> <Name>Metro Center</Name> <StationTogether1>A01</StationTogether1> <StationTogether2/> </Station>
Description of response fields:
- Code - The code associated with a specific station.
- Name - The name of the station.
- Lat - The latitude of the station.
- Lon - The longitude of the station.
- LineCode1 - The code that indicates which line the station is associated with. Can be RD, BL, YL, OR, GR
- LineCode2 - If a station serves two lines this field will indicate the code of the second line.
- LineCode3 - Unused.
- LineCode4 - Unused.
- StationTogether1 - Due to the presence of multi-level track platforms, the Metro Center, L'Enfant Plaza, Gallery Pl / Chinatown and Fort Totten locations have two station codes associated with them. In the case of any of these stations, StationTogether1 will return the alternative code for the station.
- StationTogether2 - Unused.
- Previous: Method 2: Rail Stations
- Up: Description of Methods
- Next: Method 4: Rail Paths
Docs Navigation
- Description of Methods
- Method 1: Rail Lines
- Method 2: Rail Stations
- Method 3: Rail Station Info
- Method 4: Rail Paths
- Method 5: Rail Station Prediction
- Method 6: Rail Incidents
- Method 7: Elevator / Elevator Incidents
- Method 8: Station Entrances
- Method 9: Bus Routes
- Method 10: Bus Stops
- Method 11: Bus Schedule by Route
- Method 12: Bus Route Details
- Method 13: Bus Positions
- Method 14: Bus Schedule by Stop
- Method 15: Bus Prediction
0 Comments
Please sign in to post a comment.