Package org.onebusaway.api.model.transit.tripplanning

Examples of org.onebusaway.api.model.transit.tripplanning.MinTravelTimeToStopV2Bean


  public ListWithReferencesBean<MinTravelTimeToStopV2Bean> getMinTravelTimeToStops(
      MinTravelTimeToStopsBean travelTimes) {
    List<MinTravelTimeToStopV2Bean> beans = new ArrayList<MinTravelTimeToStopV2Bean>();
    for (int i = 0; i < travelTimes.getSize(); i++) {
      MinTravelTimeToStopV2Bean bean = new MinTravelTimeToStopV2Bean();
      bean.setStopId(travelTimes.getStopId(i));
      bean.setLocation(new CoordinatePoint(travelTimes.getStopLat(i),
          travelTimes.getStopLon(i)));
      bean.setTravelTime(travelTimes.getTravelTime(i));
      beans.add(bean);
    }
    return list(beans, false);
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.api.model.transit.tripplanning.MinTravelTimeToStopV2Bean

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.