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()
- Alphabetic
- By Inheritance
- PathMatcherWithFilter
- PathMatcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- 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()
- def interpolate(filtered: Seq[FilteredObservation[O]], matchedPath: MatchedPath[V, T]): MatchedPath[V, T]
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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()
- 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])
- 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)