use of com.graphhopper.json.GHJson in project graphhopper by graphhopper.
the class DefaultModule method buildIndex.
static SpatialRuleLookup buildIndex(Reader reader, BBox graphBBox) {
GHJson ghJson = new GHJsonBuilder().create();
JsonFeatureCollection jsonFeatureCollection = ghJson.fromJson(reader, JsonFeatureCollection.class);
return new SpatialRuleLookupBuilder().build(Arrays.asList(new GermanySpatialRule(), new AustriaSpatialRule()), jsonFeatureCollection, graphBBox, 1, true);
}
Aggregations