Hi - I’m using Graphhopper in Databricks and working through the IsochroneExample.java in the source code:
example/src/main/java/com/graphhopper/example/IsochroneExample.java
I’m able to import all my dependencies and all is set up correctly. The only issue I have is that the input of tree.search() expects both a from node and a label (IsoLabel). I am able to create the from node object using snap.getClosestNode(), but how do I provide an IsoLabel as input? I don’t have the ability to generate one (its a static class from ShortestPathTree.java, and cannot be called from my notebook, I believe). It seems like it should instantiate from ShortestPathTree.java line 129 (IsoLabel currentLabel = new IsoLabel(from, -1, 0, 0, 0, null)) but I don’t know how to provide this parameter to tree.search() if I cannot generate an IsoLabel object.
I hope this makes sense! Happy to provide more code if useful.
Many thanks for any help. Here is the part of IsochroneExample.java where I am stuck:
tree.search(snap.getClosestNode(), label -> {
// see IsoLabel.java for more properties
// System.out.println("node: " + label.node + ", time: " + label.time + ", distance: " + label.distance);
counter.incrementAndGet();
});
assert counter.get() > 200;
error: not found: value label
val search = tree.search(snap.getClosestNode(), label -> {