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.