class PathMatcherWithFilter[O, V, T] extends PathMatcher[O, V, T]

This is an experimental API. It may be removed or changed from one version to the next.

A PathMatcher that filters observations, map matches the remaining observations using the inner PathMatcher, and interpolates a MatchResult for each observation previously filtered out. The Interpolator also adapts the MatchedPath#transitions accordingly.

Filtering is especially useful when the positions of observations are close to one another. This can happen when, for example, a car is slowly moving in a straight line, recording its position every second. Because of GPS noise, these observations can give the impression that the car was moving back and forth. Handling such a trip directly in a PathMatcher can be challenging. Instead, it is simpler to use a Filter in order to remove the observations that are responsible for this misleading impression.

Internally, PathMatcherWithFilter uses a Filter to mark each observation as either to be Omitted or to be Retained. It then collects the Retained observations and passes them to the inner PathMatcher for map matching. Last, it uses the Interpolator to process the resulting MatchedPath and create a new MatchedPath. This new MatchedPath contains an interpolated MatchResult for each observation previously filtered out and MatchedPath.transitions adapted to the new MatchedPath.results.

Annotations
@Experimental()
Linear Supertypes
PathMatcher[O, V, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathMatcherWithFilter
  2. PathMatcher
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PathMatcherWithFilter(inner: PathMatcher[O, V, T], filter: Filter[O], interpolator: Interpolator[O, V, T])

    inner

    a PathMatcher that performs map matching on the Retained observations

    filter

    a filter that marks each observation as either to be com.here.platform.location.core.mapmatching.model.Omitted or to be Retained

    interpolator

    an interpolator of MatchResults for the Omitted observations

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def interpolate(filtered: Seq[FilteredObservation[O]], matchedPath: MatchedPath[V, T]): MatchedPath[V, T]
    Attributes
    protected
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def matchPath(observations: Seq[O]): MatchedPath[V, T]

    Given a sequence of observations, returns a matched path.

    Given a sequence of observations, returns a matched path.

    Definition Classes
    PathMatcherWithFilter → PathMatcher
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from PathMatcher[O, V, T]

Inherited from AnyRef

Inherited from Any

Ungrouped