greatCircle

fun greatCircle(start: Position, end: Position, pointCount: Int = 100, antimeridianOffset: Double = 10.0): Geometry

Calculate great circles routes as LineString. Raises error when start and end are antipodes.

Parameters

start

source position

end

destination position

pointCount

number of positions on the arc (including start and end)

antimeridianOffset

from antimeridian in degrees (default long. = +/- 10deg, geometries within 170deg to -170deg will be split)