Metrorail Map and Train Locator


The map below shows the approximate current location of trains within the Metrorail system (automatically updated every 60 seconds). Train markers have a letter indicating the station at the end of the line in the direction which the train is headed (for example, on the orange line ‘V’ indicates a train headed west, in the direction of Vienna). Clicking on a station will bring up the estimated train arrival times for that station.


If you are new to the Washington metro system, you can learn more by visiting our general metrorail page.

There has been some interest in how this application actually works. The data, provided by WMATA’s developer api, gives the same information found on the information boards in metro stations. After finding the approximate time distance between stations, the application simply interpolates latitudes and longitudes between those stations (with minute granularity) to determine an estimated location. Since information on the information boards is not always complete, and provides information at the station level (rather than at the train level) it is possible for the algorithm to temporally miss trains, or double count trains (though we try to avoid doing this).

A full-window version is avaliable here.


4 Responses to Metrorail Map and Train Locator

  1. Pingback: Tweets that mention Metrorail Map and Train Locator | The Unofficial D.C. Transit Guide -- Topsy.com

  2. aldos says:

    But Shady Grove and Sliver Spring both start with S, but are in opposite directions. Same with Glenmont and Grosvenor…

    • Alex says:

      Yes, but they are on different lines. Since this uses line color and the first letter of the terminus station, the combination is unique (though I agree that it’s possibly confusing)

  3. Pee9 says:

    Awesome map.

    I was working on a similar item a year ago, but it had to take a back seat and I never resumed work. I had the exact same idea you are using to determine train locations.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>