Package-level declarations

Types

Link copied to clipboard

Properties

Link copied to clipboard

distance on Feature.properties calculated with nearestPointOnLine. Will throw a NoSuchElementException when property is not available. For a safe cal access properties with key NearestPointOnLine.DISTANCE_TO_POINT

Link copied to clipboard

index on Feature.properties calculated with nearestPointOnLine. Will throw a NoSuchElementException when property is not available. For a safe cal access properties with key NearestPointOnLine.INDEX

Link copied to clipboard

location on Feature.properties calculated with nearestPointOnLine. Will throw a NoSuchElementException when property is not available. For a safe cal access properties with key NearestPointOnLine.LOCATION

Functions

Link copied to clipboard

Returns intersecting points between two LineStrings.

Link copied to clipboard
fun lineSlice(start: Position, stop: Position, line: LineString): LineString

Takes a LineString, a start and a stop Position and returns a subsection of the line between those points. The start and stop points do not need to fall exactly on the line.

Link copied to clipboard
fun nearestPointOnLine(line: LineString, point: Position, units: Units = Units.Kilometers): Feature<Point>

Finds the closest Position along a LineString to a given position

fun nearestPointOnLine(lines: MultiLineString, point: Position, units: Units = Units.Kilometers): Feature<Point>

Finds the closest Position along a MultiLineString to a given position