Class LinearLocation
java.lang.Object
com.here.platform.location.referencing.LinearLocation
- All Implemented Interfaces:
ReferencingLocation,Serializable,scala.Equals,scala.Product
public class LinearLocation
extends Object
implements ReferencingLocation, scala.Product, 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 Summary
ConstructorsConstructorDescriptionLinearLocation(List<Vertex> path, double startOffset, double endOffset) LinearLocation(scala.collection.immutable.Seq<Vertex> path, double startOffset, double endOffset) -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetPath()doublescala.collection.immutable.Seq<Vertex>path()static LinearLocationpermissivelyJoin(LinearLocation first, LinearLocation second) doublescala.collection.immutable.Seq<VertexRange>Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
LinearLocation
public LinearLocation(scala.collection.immutable.Seq<Vertex> path, double startOffset, double endOffset) -
LinearLocation
-
-
Method Details
-
permissivelyJoin
-
path
-
startOffset
public double startOffset() -
endOffset
public double endOffset() -
getPath
-
vertexRanges
-
getVertexRanges
-
getEndOffset
public double getEndOffset() -
getStartOffset
public double getStartOffset()
-