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 Summary
ConstructorsConstructorDescriptionLinearLocation
(List<Vertex> path, double startOffset, double endOffset) LinearLocation
(scala.collection.Seq<Vertex> path, double startOffset, double endOffset) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
getPath()
double
scala.collection.Seq<Vertex>
path()
static LinearLocation
permissivelyJoin
(LinearLocation first, LinearLocation second) double
scala.collection.Seq<VertexRange>
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
LinearLocation
-
LinearLocation
-
-
Method Details
-
permissivelyJoin
-
path
-
startOffset
public double startOffset() -
endOffset
public double endOffset() -
getPath
-
vertexRanges
-
getVertexRanges
-
getEndOffset
public double getEndOffset() -
getStartOffset
public double getStartOffset()
-