public interface LocationIndex
The implementations of findID needs to be thread safe!
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LocationIndex.Visitor
This interface allows to visit edges stored in the LocationIndex.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Snap |
findClosest(double lat,
double lon,
EdgeFilter edgeFilter)
This method returns the closest Snap for the specified location (lat, lon) and only if
the filter accepts the edge as valid candidate (e.g.
|
void |
query(BBox queryBBox,
LocationIndex.Visitor function)
This method explores the LocationIndex with the specified Visitor.
|
Snap findClosest(double lat, double lon, EdgeFilter edgeFilter)
edgeFilter - if a graph supports multiple vehicles we have to make sure that the entry
node into the graph is accessible from a selected vehicle. E.g. if you have a FOOT-query do:
AccessFilter.allEdges(footFlagEncoder);
void query(BBox queryBBox, LocationIndex.Visitor function)
void close()
Copyright © 2012–2022. All rights reserved.