Class TiledProximitySearch
java.lang.Object
com.here.platform.location.inmemory.geospatial.TiledProximitySearch
- All Implemented Interfaces:
com.here.platform.location.core.geospatial.ProximitySearch<scala.Tuple2<TileId,
SegmentIndex>>
public class TiledProximitySearch
extends Object
implements com.here.platform.location.core.geospatial.ProximitySearch<scala.Tuple2<TileId,SegmentIndex>>
An implementation of
ProximitySearch
for the
indexed segment geometry of the Optimized Map for Location Library, which uses an R-tree
to find segments.
It will return one result for each segment chunk that is in range. Thus, the search might return multiple results for a segment.
See also GeometryTile
for details on the data format used by this class.
param: tileById Used to retrieve the necessary data for a search param: tileResolver Determines which tiles need to be looked at for a particular search param: projection Used for quickly calculating distances between points. Specifically, the distance between the search center and a segment chunk
-
Constructor Summary
ConstructorsConstructorDescriptionTiledProximitySearch
(scala.Function1<TileId, scala.Option<GeometryTile>> tileById, DiskTileResolver tileResolver, GeoProjection projection) -
Method Summary
Modifier and TypeMethodDescription<GC> scala.collection.Iterable<ElementProjection<scala.Tuple2<TileId,
SegmentIndex>>> search
(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1)
-
Constructor Details
-
TiledProximitySearch
public TiledProximitySearch(scala.Function1<TileId, scala.Option<GeometryTile>> tileById, DiskTileResolver tileResolver, GeoProjection projection)
-
-
Method Details
-
search
public <GC> scala.collection.Iterable<ElementProjection<scala.Tuple2<TileId,SegmentIndex>>> search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1) - Specified by:
search
in interfacecom.here.platform.location.core.geospatial.ProximitySearch<scala.Tuple2<TileId,
SegmentIndex>>
-