Examples of TripsForBoundsQueryBean


Examples of org.onebusaway.transit_data.model.trips.TripsForBoundsQueryBean

    return totalRecords;
  }
 
  protected int getScheduledTrips(String agencyId) {
    Set<TripDetailsBean> agencyTrips = new HashSet<TripDetailsBean>();
    TripsForBoundsQueryBean query = new TripsForBoundsQueryBean();
    List<CoordinateBounds> allBounds = getTDS().getAgencyIdsWithCoverageArea().get(agencyId);
   
    for (CoordinateBounds bounds : allBounds) {
      query.setBounds(bounds);
      query.setTime(System.currentTimeMillis());
      query.setMaxCount(Integer.MAX_VALUE);
     
      TripDetailsInclusionBean inclusion = query.getInclusion();
      inclusion.setIncludeTripBean(true);
      ListBean<TripDetailsBean> allTrips =  getTDS().getTripsForBounds(query);
      if (allTrips == null) {
        continue;
      }
View Full Code Here

Examples of org.onebusaway.transit_data.model.trips.TripsForBoundsQueryBean

    long time = System.currentTimeMillis();
    if (_time != 0)
      time = _time;

    TripsForBoundsQueryBean query = new TripsForBoundsQueryBean();
    query.setBounds(bounds);
    query.setTime(time);
    query.setMaxCount(_maxCount.getMaxCount());

    TripDetailsInclusionBean inclusion = query.getInclusion();
    inclusion.setIncludeTripBean(_includeTrip);
    inclusion.setIncludeTripSchedule(_includeSchedule);
    inclusion.setIncludeTripStatus(_includeStatus);

    BeanFactoryV2 factory = getBeanFactoryV2();
View Full Code Here

Examples of org.onebusaway.transit_data.model.trips.TripsForBoundsQueryBean

    LatLng a = llBounds.getNorthEast();
    LatLng b = llBounds.getSouthWest();
    CoordinateBounds bounds = new CoordinateBounds(a.getLatitude(),
        a.getLongitude(), b.getLatitude(), b.getLongitude());

    TripsForBoundsQueryBean query = new TripsForBoundsQueryBean();
    query.setBounds(bounds);
    query.setTime(System.currentTimeMillis());
    query.getInclusion().setIncludeTripBean(true);

    WebappServiceAsync service = WebappServiceAsync.SERVICE;
    service.getTripsForBounds(query, _handler);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.