HorizonPosition

class HorizonPosition(val pathId: Int, val offset: Distance, val isOnRoad: Boolean, val location: GeoLocation)

The best map-matched position on the horizon. It can be either on-road or off-road. If off-road, it can be either:

  • the likeliest on-road position on the horizon, but flagged as off-road, if the likeliest position is off-road, but there are also on-road candidates. The user can extract horizon elements to facilitate the decision to join the road.

  • or an off-road position with an invalid path id and an unmatched raw location, if the likeliest position is off-road and there are no on-road candidates on the horizon.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

pathId

Identifier of the path that this position belongs to, or 0 if this position does not belong to any path, i.e., it is an off-road position, and there are no other on-road position candidates.

offset

Offset from the start of the path to this position.

isOnRoad

Flag to indicate whether the position is on-road: true if on-road, false otherwise.

location

Geographical location associated with this position.

Constructors

Link copied to clipboard
constructor(pathId: Int, offset: Distance, isOnRoad: Boolean, location: GeoLocation)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pathId: Int