Class LinearLocationReference
- All Implemented Interfaces:
AbstractLocationReference
,Serializable
,scala.Equals
,scala.Product
,scala.Serializable
LinearLocationReference
refers to a path in the road network
in a map neutral and compressed way.
The basic idea is to provide coordinates at the start and at the end of the location as well as optional intermediate points. Then a routing algorithm can be used to determine the actual path in the map of the receiver.
param: first The first reference point.
To facilitate map matching the first reference point is always at an intersection in
the road network. If the start of the location that is referred to does not
coincide with an intersection, the positiveOffset
is used to indicate the
actual start of the location.
param: last The last reference point.
To facilitate map matching the last reference point is always at an intersection in
the road network. If the end of the location that is referred to does not
coincide with an intersection, the negativeOffset
is used to indicate the
actual end of the location.
param: intermediates The sequence of intermediate reference points.
param: positiveOffset Distance in meters between the first reference point and the start of the referenced location.
param: negativeOffset Distance in meters between the end of the referenced location and the last reference point.
param: shape Optional description of the geometry of the location.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLinearLocationReference
(FirstLocationReferencePoint first, LastLocationReferencePoint last, List<IntermediateLocationReferencePoint> intermediates, Optional<DistanceMetresMax15000> positiveOffset, Optional<DistanceMetresMax15000> negativeOffset, Optional<Shape> shape) LinearLocationReference
(FirstLocationReferencePoint first, LastLocationReferencePoint last, scala.collection.Seq<IntermediateLocationReferencePoint> intermediates, scala.Option<DistanceMetresMax15000> positiveOffset, scala.Option<DistanceMetresMax15000> negativeOffset, scala.Option<Shape> shape) -
Method Summary
Modifier and TypeMethodDescriptionabstract static R
apply
(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) first()
getFirst()
getLast()
getShape()
scala.collection.Seq<IntermediateLocationReferencePoint>
last()
scala.Option<DistanceMetresMax15000>
scala.Option<DistanceMetresMax15000>
scala.Option<Shape>
shape()
static String
toString()
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
-
LinearLocationReference
public LinearLocationReference(FirstLocationReferencePoint first, LastLocationReferencePoint last, scala.collection.Seq<IntermediateLocationReferencePoint> intermediates, scala.Option<DistanceMetresMax15000> positiveOffset, scala.Option<DistanceMetresMax15000> negativeOffset, scala.Option<Shape> shape) -
LinearLocationReference
public LinearLocationReference(FirstLocationReferencePoint first, LastLocationReferencePoint last, List<IntermediateLocationReferencePoint> intermediates, Optional<DistanceMetresMax15000> positiveOffset, Optional<DistanceMetresMax15000> negativeOffset, Optional<Shape> shape)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6) -
toString
-
first
-
last
-
intermediates
-
positiveOffset
-
negativeOffset
-
shape
-
getFirst
-
getLast
-
getIntermediates
-
getPositiveOffset
-
getNegativeOffset
-
getShape
-