Class LinearLocation

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

public class LinearLocation extends Object implements ReferencingLocation, scala.Product, scala.Serializable
A path in the road network expressed in the Location Library's data model.

param: path The vertices for this location.

The vertices are expected to be connected and traversable in the order in which they appear. param: startOffset A relative offset for the first vertex, indicating where the linear location starts.

It must be in the [0.0; 1.0) range. 0.0, for example, indicates that the linear location starts at the beginning of the vertex. param: endOffset A relative offset for the last vertex, indicating where the linear location ends.

It must be in the (0.0; 1.0] range. 1.0, for example, indicates that the whole vertex is part of the location.

See Also:
  • Constructor Details

    • LinearLocation

      public LinearLocation(scala.collection.Seq<Vertex> path, double startOffset, double endOffset)
    • LinearLocation

      public LinearLocation(List<Vertex> path, double startOffset, double endOffset)
  • Method Details

    • permissivelyJoin

      public static LinearLocation permissivelyJoin(LinearLocation first, LinearLocation second)
    • path

      public scala.collection.Seq<Vertex> path()
    • startOffset

      public double startOffset()
    • endOffset

      public double endOffset()
    • getPath

      public List<Vertex> getPath()
    • vertexRanges

      public scala.collection.Seq<VertexRange> vertexRanges()
    • getVertexRanges

      public List<VertexRange> getVertexRanges()
    • getEndOffset

      public double getEndOffset()
    • getStartOffset

      public double getStartOffset()