com.here.platform.location.integration.optimizedmap.mapmatching
MatchedPathToSegmentAnchorConverter
class MatchedPathToSegmentAnchorConverter extends AnyRef
This is an experimental API. It may be removed or changed from one version to the next.
Converts MatchedPaths to HERE Map Content
SegmentAnchors
.
- Annotations
- @Experimental()
- Alphabetic
- By Inheritance
- MatchedPathToSegmentAnchorConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
MatchedPathToSegmentAnchorConverter(hereMapContentReferencePropertyMap: PropertyMap[Vertex, HereMapContentReference])
- hereMapContentReferencePropertyMap
A PropertyMap from matched elements to HERE Map Content References
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(matchedPath: MatchedPath[Vertex, Seq[Vertex]]): Seq[SegmentAnchor]
Converts a MatchedPath to HERE Map Content
SegmentAnchors
.Converts a MatchedPath to HERE Map Content
SegmentAnchors
.It is possible for a single MatchedPath to be converted to multiple SegmentAnchors, when there are OffRoad or Unknown matches. Every contiguous sequence of transitions linking only OnRoad results will be converted into a
SegmentAnchor
.Not every matched path can be converted by a MatchedPathToSegmentAnchorConverter because there is no one-to-one correspondence between a matched path and a sequence of
SegmentAnchors
. The reason for that is that the requirements are more strict for a sequence ofSegmentAnchors
to be valid than for a matched path. That is why, MatchedPathToSegmentAnchorConverter works only with a subset of all possible matched paths, otherwise it throwsIllegalArgumentException
. The requirements for the matched path to be processed are as follows:- The matched path must not contain transitions between non-OnRoad matches.
- The matched path must not contains cycles. There is a cycle if the matched path traverses any given segment more than once.
- The fractions of consecutive OnRoads projected on the
same vertex must form a monotonically nondecreasing sequence. Two OnRoads
A
andB
are consecutive if there is a transition such thattransition.from
points toA
andtransition.to
points toB
. For example, if there are two consecutive OnRoads projected on the same vertex, then the first OnRoad fraction should be less than or equal to the second OnRoad fraction, otherwise an exception will be thrown.
- returns
A SegmentAnchor for each OnRoad section of the matched path
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()