v1
latestSwagger 2.02026-07-14160108.2 KBXML - Station to Station Information
<h4 class="text-primary">Description</h4> <p>Returns a distance, fare information, and estimated travel time between any two stations, including those on different lines. Omit both parameters to retrieve data for all stations.</p> <h4 class="text-primary">Response Elements</h4> <table class="table table-condensed table-hover"> <thead> <tr> <th class="col-md-3">Element</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td>StationToStationInfos</td> <td> Array containing station to station information (<a href= "#StationToStationInfo">StationToStationInfo</a>). </td> </tr> <tr> <td colspan="2"> <div class="text-primary" style="margin-top: 1em"> <a id="StationToStationInfo" name= "StationToStationInfo">StationToStationInfo Elements</a> </div> </td> </tr> <tr> <td>CompositeMiles</td> <td>Average of distance traveled between two stations and straight-line distance (as used for WMATA fare calculations). For more details, please refer to WMATA's <a href="https://www.wmata.com/about/records/public_docs/upload/Tariff-on-Fares-Annotated-2-12-18.pdf#page=6" target="_blank" rel="noopener noreferrer">Tariff on Fares</a>.</td> </tr> <tr> <td>DestinationStation</td> <td>Destination station code. Use this value in other rail-related APIs to retrieve data about a station.</td> </tr> <tr> <td>RailFare</td> <td> Structure containing <a href="#RailFare">fare</a> information. </td> </tr> <tr> <td>RailTime</td> <td>Estimated travel time (schedule time) in minutes between the source and destination station. This is not correlated to minutes <span class="text-info">(Min)</span> in Real-Time Rail Predictions.</td> </tr> <tr> <td>SourceStation</td> <td>Origin station code. Use this value in other rail-related APIs to retrieve data about a station.</td> </tr> <tr> <td colspan="2"> <div class="text-primary" style="margin-top: 1em"> <a id="RailFare" name="RailFare">RailFare Elements</a> </div> </td> </tr> <tr> <td>OffPeakTime</td> <td>Fare during off-peak times (times other than the ones described below).</td> </tr> <tr> <td>PeakTime</td> <td>Fare during peak times (weekdays from opening to 9:30 AM and 3-7 PM, and weekends from midnight to closing).</td> </tr> <tr> <td>SeniorDisabled</td> <td> Reduced fare for <a href= "http://www.wmata.com/fares/reduced.cfm">senior citizens or people with disabilities</a>. </td> </tr> </tbody> </table>get/SrcStationToDstStationInfo
Query parameters
FromStationCode'E10'
Station code for the origin station. Use the Station List method to return a list of all station codes.
ToStationCode'J03'
Station code for the destination station. Use the Station List method to return a list of all station codes.
Response
Default response code.