Class ClosestResultPerKey<E,K>
java.lang.Object
com.here.platform.location.core.geospatial.ClosestResultPerKey<E,K>
- Type Parameters:
E
- The type of elements returned by theProximitySearch
K
- The key type
- All Implemented Interfaces:
com.here.platform.location.core.geospatial.ProximitySearch<E>
public class ClosestResultPerKey<E,K>
extends Object
implements com.here.platform.location.core.geospatial.ProximitySearch<E>
Decorator for
ProximitySearch
that deduplicates results as follows.
- by grouping the results by a key
- by selecting the closest result for each key
param: proximitySearch The ProximitySearch
to be decorated
param: key A function for retrieving the key from an element
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> com.here.platform.location.core.geospatial.ProximitySearch<E>
apply
(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch) static <E,
K> com.here.platform.location.core.geospatial.ProximitySearch<E> apply
(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch, scala.Function1<E, K> key) <GC> scala.collection.Iterable<ElementProjection<E>>
search
(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1)
-
Constructor Details
-
ClosestResultPerKey
public ClosestResultPerKey()
-
-
Method Details
-
apply
public static <E,K> com.here.platform.location.core.geospatial.ProximitySearch<E> apply(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch, scala.Function1<E, K> key) -
apply
public static <E> com.here.platform.location.core.geospatial.ProximitySearch<E> apply(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch) -
search
public <GC> scala.collection.Iterable<ElementProjection<E>> search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1) - Specified by:
search
in interfacecom.here.platform.location.core.geospatial.ProximitySearch<E>
-