*/
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);