Class LinearLocationReference

java.lang.Object
com.here.platform.location.tpeg2.olr.LinearLocationReference
All Implemented Interfaces:
AbstractLocationReference, Serializable, scala.Equals, scala.Product, scala.Serializable

public class LinearLocationReference extends Object implements AbstractLocationReference, scala.Product, scala.Serializable
A 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: