Class SemanticLinearLocationReference
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
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 Summary
ConstructorsConstructorDescriptionSemanticLinearLocationReference(LinearLocationReference linearLocationReference, GeoCoordinate firstPointPreciseCoordinate, GeoCoordinate lastPointPreciseCoordinate, boolean isFirstPointAtJunction, boolean isLastPointAtJunction) -
Method Summary
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
-
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
-
linearLocationReference
-
firstPointPreciseCoordinate
-
lastPointPreciseCoordinate
-
isFirstPointAtJunction
public boolean isFirstPointAtJunction() -
isLastPointAtJunction
public boolean isLastPointAtJunction()
-