}
String routeId = _request.getParameter("LineRef");
// multiple trips by route
if (routeId != null) {
TripsForRouteQueryBean query = new TripsForRouteQueryBean();
query.setRouteId(agencyId + "_" + routeId);
query.setTime(_time.getTime());
ListBean<TripDetailsBean> trips = _transitDataService.getTripsForRoute(query);
ArrayList<VehicleActivity> activities = new ArrayList<VehicleActivity>();
for (TripDetailsBean trip : trips.getList()) {
if (directionId != null
&& !trip.getTrip().getDirectionId().equals(directionId)) {