Package org.onebusaway.transit_data.model.realtime

Examples of org.onebusaway.transit_data.model.realtime.VehicleLocationRecordQueryBean


    TripBean trip = _model.getTrip();

    if (_model.getVehicleId() != null
        || (_model.getTrip() != null && _model.getServiceDate() > 0)) {
      VehicleLocationRecordQueryBean query = new VehicleLocationRecordQueryBean();
      query.setServiceDate(_model.getServiceDate());
      if (trip != null)
        query.setBlockId(trip.getBlockId());
      query.setVehicleId(_model.getVehicleId());
      query.setFromTime(timeFrom);
      query.setToTime(timeTo);
      long t3 = System.currentTimeMillis();
      ListBean<VehicleLocationRecordBean> records = _transitDataService.getVehicleLocationRecords(query);
      long t4 = System.currentTimeMillis();
      System.out.println("getVehicleLocationRecords=" + (t4-t3));
      _vehicleLocationRecords = records.getList();
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.realtime.VehicleLocationRecordQueryBean

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.