Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public TS_BusRouteEntry(XmlBusRoute route)
 {
     BusRoute = route;
     GeneratePassingPolygons();
 }
Esempio n. 3
0
 public TSInterchangeInfo(XmlBusRoute from, BusStop at, XmlBusRoute to)
 {
     this.from = from;
     this.at   = at;
     this.to   = to;
 }