journies.add(journey);
AgencyAndId routeId = getRouteIdForJourney(journey);
RouteMetadata metadata = getMetadataForRouteId(routeId);
metadata.addDirection(journey.getRouteDirection());
} else if (element instanceof LocationElement) {
LocationElement location = (LocationElement) element;
_locationById.put(location.getLocationId(), location);
} else if (element instanceof AdditionalLocationElement) {
AdditionalLocationElement location = (AdditionalLocationElement) element;
_additionalLocationById.put(location.getLocationId(), location);
} else if (element instanceof ClusterElement) {
ClusterElement cluster = (ClusterElement) element;
_clusterIdByLocationId.put(cluster.getLocationId(), cluster.getId());
} else if (element instanceof VehicleTypeElement) {
VehicleTypeElement vehicle = (VehicleTypeElement) element;