getTopoLinkId

fun getTopoLinkId(geometry: LineString, startIndex: Int, endIndex: Int): Long

Provides the unique identifier for the given link. Link is a part of a road between two intersection. The identifier is unique within the current road graph within a reasonable some area. It may be used to identify the link in the road graph.

The identifier is stable and does not change between different versions of the road network. The identifier is not guaranteed to be unique between different versions of a map, if link geometry changes. It is not guaranteed to be unique between different regions of the same map.

Parameters

geometry

LineString object representing link geometry

startIndex

start index (inclusive) of the link

endIndex

end index (exclusive) of the link

Throws


fun getTopoLinkId(geometry: MultiPoint, startIndex: Int, endIndex: Int): Long

Provides the unique identifier for the given link. Link is a part of a road between two intersection. The identifier is unique within the current road graph within a reasonable some area. It may be used to identify the link in the road graph.

The identifier is stable and does not change between different versions of the road network. The identifier is not guaranteed to be unique between different versions of a map, if link geometry changes. It is not guaranteed to be unique between different regions of the same map.

Parameters

geometry

MultiPoint object representing link geometry

startIndex

start index (inclusive) of the link

endIndex

end index (exclusive) of the link

Throws


fun getTopoLinkId(points: List<Point>, startIndex: Int = 0, endIndex: Int = points.size): Long

Provides the unique identifier for the given link. Link is a part of a road between two intersection. The identifier is unique within the current road graph within a reasonable some area. It may be used to identify the link in the road graph.

The identifier is stable and does not change between different versions of the road network. The identifier is not guaranteed to be unique between different versions of a map, if link geometry changes. It is not guaranteed to be unique between different regions of the same map.

Parameters

points

a list of Point representing link geometry

startIndex

start index (inclusive) of the link. Defaults to 0

endIndex

end index (exclusive) of the link. Defaults to the size of the points list

Throws