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 theProximitySearchK- 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>
Deprecated.
Use `ClosestResultPerElement` instead. Since Location Library 1.2.2.
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) Deprecated.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) Deprecated.<GC> scala.collection.Iterable<ElementProjection<E>>search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1) Deprecated.
-
Constructor Details
-
ClosestResultPerKey
public ClosestResultPerKey()Deprecated.
-
-
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) Deprecated. -
apply
public static <E> com.here.platform.location.core.geospatial.ProximitySearch<E> apply(com.here.platform.location.core.geospatial.ProximitySearch<E> proximitySearch) Deprecated. -
search
public <GC> scala.collection.Iterable<ElementProjection<E>> search(GC center, double radiusInMeters, GeoCoordinateOperations<GC> evidence$1) Deprecated.- Specified by:
searchin interfacecom.here.platform.location.core.geospatial.ProximitySearch<E>
-