File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
core/src/main/java/com/graphhopper/storage/index Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,18 @@ public interface LocationIndex extends Storable<LocationIndex>
47
47
int findID ( double lat , double lon );
48
48
49
49
/**
50
+ * This method returns the closest QueryResult for the specified location (lat, lon) and only if
51
+ * the filter accepts the edge as valid candidate (e.g. filtering away car-only results for bike
52
+ * search)
53
+ * <p>
50
54
* @param edgeFilter if a graph supports multiple vehicles we have to make sure that the entry
51
55
* node into the graph is accessible from a selected vehicle. E.g. if you have a FOOT-query do: <pre>
52
- * new DefaultEdgeFilter(new FootFlagEncoder() );
56
+ * new DefaultEdgeFilter(footFlagEncoder );
53
57
* </pre>
54
58
* <p>
55
59
* @return An object containing the closest node and edge for the specfied location. The node id
56
- * has at least one edge which is accepted from the specified edgeFilter. If nothing is found it
57
- * returns null .
60
+ * has at least one edge which is accepted from the specified edgeFilter. If nothing is found
61
+ * the method QueryResult.isValid will return false .
58
62
*/
59
63
QueryResult findClosest ( double lat , double lon , EdgeFilter edgeFilter );
60
64
You can’t perform that action at this time.
0 commit comments