public BusStop GetBestIntersectionWith(XmlBusRoute other) { int intersection = -1; foreach (int stopIDThere in other.GetRouteSequence().SequencePairing.Values) { if (GetRouteSequence().SequencePairing.Values.Contains(stopIDThere)) { intersection = stopIDThere; break; } } if (intersection == -1) { return(null); } foreach (BusStop stop in InfoGenerator.Instance.busStopExtractor.LoadedBusStops) { if (stop.StopID == intersection.ToString()) { return(stop); } } return(null); }
public TS_BusRouteEntry(XmlBusRoute route) { BusRoute = route; GeneratePassingPolygons(); }
public TSInterchangeInfo(XmlBusRoute from, BusStop at, XmlBusRoute to) { this.from = from; this.at = at; this.to = to; }