public StopsInTripsList GetAllPossibleTripsBetweenStations(StationsPair stations, int exactStopsInBetween) { var stopsList = _metroNetwork.GetAllPossibleTripsBetweenStations(stations.Start, stations.End, exactStopsInBetween).ToList(); return(new StopsInTripsList { StopsInTrips = stopsList, Count = stopsList.Count }); }
public object GetShortestTripDistance(StationsPair stations) { var distance = _metroNetwork.GetPathDistanceBetweenStations(stations.Start, stations.End); if (distance < 0) { return("NO SUCH ROUTE"); } return((int)distance); }