elementsAhead

fun elementsAhead(position: HorizonPosition, distanceAhead: Distance): List<HorizonElement>

Returns the HorizonElements that are ahead of the given position on the path to which the position belongs, within the given distance. Elements of the same type are provided in increasing order of the start offset.

Return

List of horizon elements ahead of the given position on the path to which the position belongs, within the given distance. The list is empty if the position does not have a valid path ID or there is no path in the snapshot with the same ID as the one stored in the position.

Parameters

distanceAhead

Distance ahead of the specified position.


Returns the HorizonElements of the given types that are ahead of the given position on the path to which the position belongs, within the given distance. Elements of the same type are provided in increasing order of the start offset.

Return

List of horizon elements of the given types ahead of the given position on the path to which the position belongs, within the given distance. The list is empty if the position does not have a valid path ID or there is no path in the snapshot with the same ID as the one stored in the position.

Parameters

distanceAhead

Distance ahead of the specified position.

types

Returns the horizon elements of the given type that are ahead of the given position on the path to which the position belongs, within the given distance. The elements are provided in increasing order of the start offset.

Return

List of horizon elements of the given type ahead of the given position on the path to which the position belongs, within the given distance. The list is empty if the position does not have a valid path ID or there is no path in the snapshot with the same ID as the one stored in the position.

Parameters

distanceAhead

Distance ahead of the specified position.

type