예제 #1
0
        static bool SameLeg(RouteLeg leg, RouteStop start, RouteStop end, RouteLegStatus?status)
        {
            if (leg == null)
            {
                return(false);
            }

            return(leg.StartPoint == start && leg.EndPoint == end && (status == null || leg.Status == status));
        }
예제 #2
0
        public void RequestLegDuration(RouteLeg leg)
        {
            if (leg == null || leg.Status == RouteLegStatus.Complete || RequestedDurations.Contains(leg))
            {
                return;
            }

            RequestedDurations.Enqueue(leg);
            leg.DurationRequested = true;
        }