Package org.onebusaway.gtfs.model

Examples of org.onebusaway.gtfs.model.Route


    for (RouteCollectionEntry routeCollectionEntry : _transitGraphDao.getAllRouteCollections()) {
      List<Route> routes = new ArrayList<Route>();
      Counter<Route> tripCounts = new Counter<Route>();
      for (RouteEntry routeEntry : routeCollectionEntry.getChildren()) {
        Route route = _gtfsDao.getRouteForId(routeEntry.getId());
        routes.add(route);
        int tripCount = routeEntry.getTrips().size();
        tripCounts.increment(route, tripCount);
      }
View Full Code Here


  private TripNarrative getTripNarrative(Trip trip) {

    String headsign = trip.getTripHeadsign();
    if (headsign == null) {
      Route route = trip.getRoute();
      headsign = route.getLongName();
    }

    TripNarrative.Builder builder = TripNarrative.builder();
    builder.setRouteShortName(deduplicate(trip.getRouteShortName()));
    builder.setTripHeadsign(deduplicate(headsign));
View Full Code Here

TOP

Related Classes of org.onebusaway.gtfs.model.Route

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.