Skip to content

Instantly share code, notes, and snippets.

@theqp
Last active March 4, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theqp/92298a1f47586f3062b01c8611b09788 to your computer and use it in GitHub Desktop.
Save theqp/92298a1f47586f3062b01c8611b09788 to your computer and use it in GitHub Desktop.
private final PMap hints =
new PMap(ImmutableMap.of("calc_points", "false", "instructions", "false"));
private GraphHopper initGraphHopper() {
return new GraphHopperOSM()
.setDataReaderFile("gh/hungary.osm.pbf")
.setGraphHopperLocation("gh")
.setEncodingManager(EncodingManager.create("car"))
.forDesktop()
.setMinNetworkSize(200, 200) // https://discuss.graphhopper.com/t/93
.importOrLoad();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment