Package org.onebusaway.transit_data.model.oba

Examples of org.onebusaway.transit_data.model.oba.TimedPlaceBean


          }
        }
      }

      if (minStop != null && minTime <= maxTripLength) {
        TimedPlaceBean bean = new TimedPlaceBean();
        bean.setPlaceId(result.getId());
        bean.setStopId(ApplicationBeanLibrary.getId(minStop.getStopId()));
        bean.setTime((int) (minTime / 1000));
        beans.add(bean);
      }
    }

    return beans;
View Full Code Here


  private static class SortByDistance implements
      Comparator<TimedLocalSearchResult> {

    public int compare(TimedLocalSearchResult o1, TimedLocalSearchResult o2) {
      TimedPlaceBean tp1 = o1.getTimedPlace();
      TimedPlaceBean tp2 = o2.getTimedPlace();
      int t1 = tp1.getTime();
      int t2 = tp2.getTime();
      return t1 == t2 ? 0 : (t1 < t2 ? -1 : 1);
    }
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data.model.oba.TimedPlaceBean

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.