for (File osmFile : osmFiles) {
OpenStreetMapProvider osmProvider = new AnyFileBasedOpenStreetMapProviderImpl(osmFile);
osmProviders.add(osmProvider);
}
OpenStreetMapGraphBuilderImpl osmBuilder = new OpenStreetMapGraphBuilderImpl(osmProviders);
DefaultStreetEdgeFactory streetEdgeFactory = new DefaultStreetEdgeFactory();
streetEdgeFactory.useElevationData = params.elevation;
osmBuilder.edgeFactory = streetEdgeFactory;
DefaultWayPropertySetSource defaultWayPropertySetSource = new DefaultWayPropertySetSource();
osmBuilder.setDefaultWayPropertySetSource(defaultWayPropertySetSource);
osmBuilder.skipVisibility = params.skipVisibility;