Class SemanticLinearLocationReference

java.lang.Object
com.here.platform.location.referencing.SemanticLinearLocationReference
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class SemanticLinearLocationReference extends Object implements scala.Product, Serializable
This is an experimental API. It may be removed or changed from one version to the next.

Wraps a LinearLocationReference with precise coordinates and junction information about the first and last reference points.

Note that:

- Intermediate reference points should be added to the underlying reference only when needed to disambiguate between two possible routes, and they should be placed as far as possible from both the first and the last reference points. - Offsets in the underlying reference represent a fraction of a segment, obtained by dividing the offset by the reference length (the sum of the distances between consecutive reference points, i.e. dnp in the underlying reference). They are applied on top of the resolved reference points, regardless of whether those points are marked as junctions. - The precise coordinates are always used instead of the coordinates of the first and last reference points when resolving the location reference.

param: linearLocationReference underlying linear location reference param: firstPointPreciseCoordinate precise coordinate used instead of the first reference point coordinate param: lastPointPreciseCoordinate precise coordinate used instead of the last reference point coordinate param: isFirstPointAtJunction flag indicating whether the first reference point is a junction param: isLastPointAtJunction flag indicating whether the last reference point is a junction

See Also:
  • Constructor Details

    • SemanticLinearLocationReference

      public SemanticLinearLocationReference(LinearLocationReference linearLocationReference, GeoCoordinate firstPointPreciseCoordinate, GeoCoordinate lastPointPreciseCoordinate, boolean isFirstPointAtJunction, boolean isLastPointAtJunction)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5)
    • toString

      public static String toString()
    • linearLocationReference

      public LinearLocationReference linearLocationReference()
    • firstPointPreciseCoordinate

      public GeoCoordinate firstPointPreciseCoordinate()
    • lastPointPreciseCoordinate

      public GeoCoordinate lastPointPreciseCoordinate()
    • isFirstPointAtJunction

      public boolean isFirstPointAtJunction()
    • isLastPointAtJunction

      public boolean isLastPointAtJunction()