Class ClosestResultPerElement<E,K>
java.lang.Object
com.here.platform.location.core.geospatial.ClosestResultPerElement<E,K>
- Type Parameters:
E- The type of elements returned by theProximitySearch
- All Implemented Interfaces:
com.here.platform.location.core.geospatial.ProximitySearch<E>
public class ClosestResultPerElement<E,K>
extends Object
implements com.here.platform.location.core.geospatial.ProximitySearch<E>
Decorates a
ProximitySearch to keep only the closest result for each element,
in the order elements are first encountered in the inner search.
When two results for the same element have equal distance, the first encountered is kept.
param: proximitySearch The ProximitySearch to be decorated
-
Constructor Summary
ConstructorsConstructorDescriptionClosestResultPerElement(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch) -
Method Summary
Modifier and TypeMethodDescription<GC> scala.collection.Iterable<ElementProjection<E>>search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1)
-
Constructor Details
-
ClosestResultPerElement
public ClosestResultPerElement(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch)
-
-
Method Details
-
search
public <GC> scala.collection.Iterable<ElementProjection<E>> search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1) - Specified by:
searchin interfacecom.here.platform.location.core.geospatial.ProximitySearch<E>
-