---
title: "XML - Station to Station Information"
method: GET
path: "/SrcStationToDstStationInfo"
---

# XML - Station to Station Information

`GET /SrcStationToDstStationInfo`

<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>

## Query parameters

- `FromStationCode` 'E10'
- `ToStationCode` 'J03'

## Response `200`

Default response code.

---

[API](https://skmtc.net/wmata/apis/rail-station.md) · [All operations](https://skmtc.net/wmata/apis/rail-station/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wmata/rail-station/versions/7725c49a1ed9/schema)
