class ClosestResultPerElement[E, K] extends 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.
- E
The type of elements returned by the ProximitySearch
- Alphabetic
- By Inheritance
- ClosestResultPerElement
- ProximitySearch
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClosestResultPerElement(proximitySearch: ProximitySearch[E])
- proximitySearch
The ProximitySearch to be decorated
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def search[GC](center: GC, radiusInMeters: Double)(implicit arg0: GeoCoordinateOperations[GC]): Iterable[ElementProjection[E]]
Returns all elements within a given distance around a given center.
Returns all elements within a given distance around a given center.
- GC
The type of the search center (WGS84 geocoordinates type)
- center
Search around these geocoordinates
- radiusInMeters
Search inside the circle defined by this radius
- returns
The results that are within
radiusInMetersofcenter, including items on the boundary
- Definition Classes
- ClosestResultPerElement → ProximitySearch
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)