com.here.platform.location.integration.optimizedmap.mapmatching
PathMatchers
Companion class PathMatchers
object PathMatchers extends PathMatchersMixin
- Alphabetic
- By Inheritance
- PathMatchers
- PathMatchersMixin
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
apply(optimizedMap: OptimizedMapLayers): PathMatchers
Creates a PathMatchers from an Optimized Map for Location Library.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
carPathMatcherWithTransitions[O](carPathMatcherLayers: CarPathMatcherLayers)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, Seq[Vertex]]
Creates an HMM path matcher that only matches to vertices that are accessible by cars, and that is suitable for sparse probes.
Creates an HMM path matcher that only matches to vertices that are accessible by cars, and that is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case.
Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
- O
The type of data accepted by the path matcher
- Note
On rare occasions, for example with very sparse probes, the returned path matcher might calculate transitions that involve forbidden manoeuvres. This is a known limitation and will be fixed in a later version.
-
def
carPathMatcherWithoutTransitions[O](carPathMatcherLayers: CarPathMatcherLayers)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, NoTransition]
Creates an HMM path matcher that only matches to vertices that are accessible by cars.
Creates an HMM path matcher that only matches to vertices that are accessible by cars.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations. For sparse input observations, consider using a path matcher created byPathMatchers.carPathMatcherWithTransitions
instead.- O
The type of data accepted by the path matcher
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newHMMPathMatcher[O, V, T](cg: CandidateGenerator[O, V], eps: EmissionProbabilityStrategy[O, V], tps: TransitionProbabilityStrategy[O, V, T]): HMMPathMatcher[O, V, T]
Creates an HMM path matcher from its components.
Creates an HMM path matcher from its components.
- Definition Classes
- PathMatchersMixin
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
restrictedDense[O, V, E, LS](search: ProximitySearch[V], graph: DirectedGraph[V, E], geometry: PropertyMap[V, LS], length: PropertyMap[V, Double], roadAccess: RangeBasedPropertyMap[V, Boolean], turnRestrictions: PropertyMap[E, Boolean], projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[O], arg1: LineStringOperations[LS]): PathMatcher[O, V, Seq[V]]
Creates an HMM path matcher that only matches to accessible vertices.
Creates an HMM path matcher that only matches to accessible vertices.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations.- O
The type of data accepted by the path matcher
- V
The vertex type of the graph
- E
The edge type of the graph
- LS
The line string type of vertex geometries
- length
The lengths of the vertices of
graph
- roadAccess
Ranges with value
true
are accessible, while ranges with valuefalse
will be interpreted as forbidden- turnRestrictions
If this attribute is
true
for some edge, that edge is restricted and will not be traversed by the path matcher- projection
Used to compute distances between points and project them onto vertex geometries
- Definition Classes
- PathMatchersMixin
-
def
restrictedSparse[O, V, E, LS](search: ProximitySearch[V], graph: DirectedGraph[V, E], geometry: PropertyMap[V, LS], length: PropertyMap[V, Double], roadAccess: RangeBasedPropertyMap[V, Boolean], turnRestrictions: PropertyMap[E, Boolean], projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[O], arg1: LineStringOperations[LS]): PathMatcher[O, V, Seq[V]]
Creates an HMM path matcher that only matches to accessible vertices and is suitable for sparse probes.
Creates an HMM path matcher that only matches to accessible vertices and is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case.
Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
- O
The type of data accepted by the path matcher
- V
The vertex type of the graph
- E
The edge type of the graph
- LS
The line string type of vertex geometries
- length
The lengths of the vertices of
graph
- roadAccess
Ranges with value
true
are accessible, while ranges with valuefalse
will be interpreted as forbidden- turnRestrictions
If this attribute is
true
for some edge, that edge is restricted and will not be traversed by the path matcher- projection
Used to compute distances between points and project them onto vertex geometries
- Definition Classes
- PathMatchersMixin
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unrestrictedDense[O, V, E, LS](search: ProximitySearch[V], graph: DirectedGraph[V, E], geometry: PropertyMap[V, LS], length: PropertyMap[V, Double], projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[O], arg1: LineStringOperations[LS]): PathMatcher[O, V, Seq[V]]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations.- O
The type of data accepted by the path matcher
- V
The vertex type of the graph
- E
The edge type of the graph
- LS
The line string type of vertex geometries
- projection
used to compute distances between points and project them onto vertex geometries
- Definition Classes
- PathMatchersMixin
-
def
unrestrictedPathMatcherWithTransitions[O](unrestrictedPathMatcherLayers: UnrestrictedPathMatcherLayers)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, Seq[Vertex]]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration. It is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case. * Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
-
def
unrestrictedPathMatcherWithoutTransitions[O](unrestrictedPathMatcherLayers: UnrestrictedPathMatcherLayers)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, NoTransition]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations. For sparse input observations, consider using a path matcher created byPathMatchers.unrestrictedPathMatcherWithTransitions
instead. -
def
unrestrictedSparse[O, V, E, LS](search: ProximitySearch[V], graph: DirectedGraph[V, E], geometry: PropertyMap[V, LS], length: PropertyMap[V, Double], projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[O], arg1: LineStringOperations[LS]): PathMatcher[O, V, Seq[V]]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration. It is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case. * Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
- O
The type of data accepted by the path matcher
- V
The vertex type of the graph
- E
The edge type of the graph
- LS
The line string type of vertex geometries
- projection
Used to compute distances between points and project them onto vertex geometries
- Definition Classes
- PathMatchersMixin
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
carPathMatcher[O](optimizedMap: Catalog, cacheManager: DataLoaderProvider)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, NoTransition]
Creates an HMM path matcher that only matches to vertices that are accessible by cars.
Creates an HMM path matcher that only matches to vertices that are accessible by cars.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations. For sparse input observations, consider using a path matcher created byPathMatchers.carPathMatcherWithTransitions
instead.
- O
The type of data accepted by the path matcher
- optimizedMap
An Optimized Map for Location Library instance
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
carPathMatcherWithTransitions[O](optimizedMap: Catalog, cacheManager: DataLoaderProvider)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, Seq[Vertex]]
Creates an HMM path matcher that only matches to vertices that are accessible by cars, and that is suitable for sparse probes.
Creates an HMM path matcher that only matches to vertices that are accessible by cars, and that is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case.
Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
- O
The type of data accepted by the path matcher
- optimizedMap
An Optimized Map instance
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
- Note
On rare occasions, for example with very sparse probes, the returned path matcher might calculate transitions that involve forbidden manoeuvres. This is a known limitation and will be fixed in a later version.
-
def
unrestrictedPathMatcher[O](optimizedMap: Catalog, cacheManager: DataLoaderProvider)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, NoTransition]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
The path matcher uses
TransitionProbabilityStrategies.directDistance
to calculate the transition probabilities of the Hidden Markov Model. Therefore, this path matcher is not recommended for sparse input observations. For sparse input observations, consider using a path matcher created byPathMatchers.unrestrictedPathMatcherWithTransitions
instead.- optimizedMap
An Optimized Map for Location Library instance
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
unrestrictedPathMatcherWithTransitions[O](optimizedMap: Catalog, cacheManager: DataLoaderProvider)(implicit arg0: GeoCoordinateOperations[O]): PathMatcher[O, Vertex, Seq[Vertex]]
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration.
Creates an HMM path matcher that uses default parameters and doesn't take any restriction into consideration. It is suitable for sparse probes. However, if the observations are not close enough, they will be considered unreachable.
Besides a sequence of MatchResults, this path matcher returns a list of transitions. A transition is a sequence of
Vertex
objects that represents a path betweenOnRoad
match results associated to two successive observations. A transition does not contain the two vertices referenced by the correspondingOnRoad
match results.Consider the following example:
O1 O2 | | v v --V1--> --V2--> --V3-->
The observation O1 is matched to vertex V1, and O2 to V3. Although V1 and V3 are not directly connected, the path matcher returns a transition from O1 to O2 that contains the intermediate vertices, V2 in this case. * Internally, this method creates a PathMatcherWithFilter that uses a DistanceFilter and a ProjectingInterpolator to improve match results when consecutive points are close to one another.
See also PathMatcherWithFilter for more information about filtering and interpolation.
- optimizedMap
An Optimized Map for Location Library instance
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.