public interface LocationIndex extends Storable<LocationIndex>
The implementations of findID needs to be thread safe!
| Modifier and Type | Method and Description |
|---|---|
QueryResult |
findClosest(double lat,
double lon,
EdgeFilter edgeFilter)
This method returns the closest QueryResult for the specified location (lat, lon) and only if
the filter accepts the edge as valid candidate (e.g.
|
LocationIndex |
prepareIndex()
Creates this index - to be called once before findID.
|
LocationIndex |
setApproximation(boolean approxDist) |
LocationIndex |
setResolution(int resolution)
Integer value to specify the resolution of this location index.
|
void |
setSegmentSize(int bytes) |
close, create, flush, getCapacity, isClosed, loadExistingLocationIndex setResolution(int resolution)
LocationIndex prepareIndex()
QueryResult 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:
new DefaultEdgeFilter(footFlagEncoder);
LocationIndex setApproximation(boolean approxDist)
approxDist - false if initialization and querying should be faster but less precise.void setSegmentSize(int bytes)
Copyright © 2012–2018. All rights reserved.