Package org.onebusaway.siri.model

Examples of org.onebusaway.siri.model.MonitoredCall


        MonitoredStopVisit.MonitoredVehicleJourney = SiriUtils.getMonitoredVehicleJourney(
            specificTripDetails, new Date(status.getServiceDate()),
            status.getVehicleId());
        MonitoredStopVisit.MonitoredVehicleJourney.VehicleRef = status.getVehicleId();

        MonitoredCall monitoredCall = new MonitoredCall();
        MonitoredStopVisit.MonitoredVehicleJourney.MonitoredCall = monitoredCall;
        monitoredCall.Extensions = new DistanceExtensions();
        monitoredCall.StopPointRef = SiriUtils.getIdWithoutAgency(stopId);

        CoordinatePoint position = status.getLocation();
View Full Code Here


    StopBean lastStop = stops.get(stops.size() - 1).getStop();
    monitoredVehicleJourney.DestinationRef = getIdWithoutAgency(lastStop.getId());

    StopBean nextStop = trip.getStatus().getNextStop();
    if (nextStop != null) {
      monitoredVehicleJourney.MonitoredCall = new MonitoredCall();
      monitoredVehicleJourney.MonitoredCall.StopPointRef = nextStop.getId();
      monitoredVehicleJourney.MonitoredCall.StopPointName = nextStop.getName();
      monitoredVehicleJourney.MonitoredCall.VisitNumber = 1; // FIXME: this is
                                                             // theoretically
                                                             // wrong but
View Full Code Here

TOP

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

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.