Previously, the WMATA API returned stations on a given line in a logical order:
Example, orange line: {Vienna, Dunn Loring, West Falls Church, East Falls Church, ... , New Carrollton}
Now, the stations are returned in a order relative to their unique station code, which is not necessarily the logical order (for example, the first station for the red line is Metro Center). The line selection and starting/ending stations are still selected properly.
The code assumes the station list will be in logical order, so now will need to be adjusted to accommodate the changes either by:
Sorting the returned list into a logical ordering (from one end of the line to the other)
Previously, the WMATA API returned stations on a given line in a logical order:
Now, the stations are returned in a order relative to their unique station code, which is not necessarily the logical order (for example, the first station for the red line is Metro Center). The line selection and starting/ending stations are still selected properly.
The code assumes the station list will be in logical order, so now will need to be adjusted to accommodate the changes either by:
The algorithm also relies on the fact that, for the D.C. Metro, all lines intersect every other line at at least one point.
Likely when work begins on this issue, it will be split until multiple, smaller issues.