Package org.onebusaway.transit_data_federation.services.transit_graph

Examples of org.onebusaway.transit_data_federation.services.transit_graph.RouteEntry


   */
  public Id getRouteId(String routeId) {

    for (String agencyId : _agencyIds) {
      AgencyAndId id = new AgencyAndId(agencyId, routeId);
      RouteEntry route = _transitGraphDao.getRouteForId(id);
      if (route != null)
        return ServiceAlertLibrary.id(route.getParent().getId());
    }

    try {
      AgencyAndId id = AgencyAndId.convertFromString(routeId);
      RouteEntry route = _transitGraphDao.getRouteForId(id);
      if (route != null)
        return ServiceAlertLibrary.id(route.getParent().getId());
    } catch (IllegalArgumentException ex) {

    }

    _log.warn("route not found with id \"{}\"", routeId);
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.services.transit_graph.RouteEntry

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.