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 the ProximitySearch
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 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:
      search in interface com.here.platform.location.core.geospatial.ProximitySearch<E>