URL osmDataUrl = getClass().getResource("bridge_construction.osm.pbf");
File osmDataFile = new File(URLDecoder.decode(osmDataUrl.getFile(), "UTF-8"));
provider.setPath(osmDataFile);
osmBuilder.setProvider(provider);
HashMap<Class<?>, Object> extra = Maps.newHashMap();
osmBuilder.buildGraph(graph, extra); // TODO get rid of this "extra" thing
}
/**
* Search for a path across the Willamette river. This OSM data includes a bridge that is not yet built and is
* therefore tagged highway=construction.