Exemplo n.º 1
0
        private StopInformation GetDepartureStopInformation(Edge edge, TimeTable timeTable, ref long previousArrivalTime)
        {
            var stop = new StopInformation
            {
                StopId   = edge.FromStop,
                StopName = edge.FromNode.StopName,
                Time     = (timeTable != null) ? timeTable.DepartureTime : previousArrivalTime,
                Lat      = edge.FromNode.Lat,
                Long     = edge.FromNode.Long,
                CssClass = "changeStationPoint"
            };

            return(stop);
        }
Exemplo n.º 2
0
        private StopInformation GetArrivalStopInformation(Edge edge, TimeTable timeTable, ref long previousArrivalTime)
        {
            var stop = new StopInformation
            {
                StopId   = edge.ToStop,
                StopName = edge.ToNode.StopName,
                Time     = (timeTable != null) ? timeTable.ArrivalTime : previousArrivalTime + TimeToWalkSeconds(edge.DistanceWalk),
                Lat      = edge.ToNode.Lat,
                Long     = edge.ToNode.Long,
                CssClass = "stationPoint"
            };

            previousArrivalTime = stop.Time;
            return(stop);
        }
Exemplo n.º 3
0
 public WTSLine(StopInformation stop) : this(stop.m_lineId, stop.m_regionalLine)
 {
 }