Packages

c

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()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchedPathToSegmentAnchorConverter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatchedPathToSegmentAnchorConverter(hereMapContentReferencePropertyMap: PropertyMap[Vertex, HereMapContentReference])

    hereMapContentReferencePropertyMap

    A PropertyMap from matched elements to HERE Map Content References

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. 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 of SegmentAnchors to be valid than for a matched path. That is why, MatchedPathToSegmentAnchorConverter works only with a subset of all possible matched paths, otherwise it throws IllegalArgumentException. 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 and B are consecutive if there is a transition such that transition.from points to A and transition.to points to B. 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

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped