Package org.onebusaway.siri.model

Examples of org.onebusaway.siri.model.Distances


          }
          if (started && stopTime.getStop().getId().equals(stopId)) {
            /* we have hit the requested stop */
            monitoredCall.VehicleAtStop = Math.abs(status.getNextStopDistanceFromVehicle()
                - distance) < 10;
            monitoredCall.Extensions.Distances = new Distances();
            monitoredCall.Extensions.Distances.StopsFromCall = adbean.getNumberOfStopsAway();
            monitoredCall.Extensions.Distances.CallDistanceAlongRoute = status.getDistanceAlongTrip();
            monitoredCall.Extensions.Distances.DistanceFromCall = adbean.getDistanceFromStop();

            monitoredCall.VisitNumber = visitNumber;
View Full Code Here


          onwardCall.StopPointRef = SiriUtils.getIdWithoutAgency(stop.getId());
          onwardCall.StopPointName = stop.getName();
          onwardCall.VisitNumber = visitNumber;
          onwardCall.Extensions = new DistanceExtensions();

          onwardCall.Extensions.Distances = new Distances();
          onwardCall.Extensions.Distances.DistanceFromCall = stopTime.getDistanceAlongTrip()
              - distance;
          onwardCall.Extensions.Distances.CallDistanceAlongRoute = stopTime.getDistanceAlongTrip();
          onwardCall.Extensions.Distances.StopsFromCall = i - 1;
View Full Code Here

TOP

Related Classes of org.onebusaway.siri.model.Distances

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.