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 the ProximitySearch
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <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)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.here.platform.location.core.geospatial.ProximitySearch<E>