greatCircle

fun greatCircle(from: Position, to: Position, pointCount: Int = 100, antimeridianOffset: Double = 10.0): Geometry(source)

Calculate great circles routes as LineString. Raises error when from and to are antipodes.

Parameters

from

source position

to

destination position

pointCount

number of positions on the arc (including from and to)

antimeridianOffset

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

Throws

if from and to are diametrically opposite.


fun greatCircle(from: Point, to: Point, pointCount: Int = 100, antimeridianOffset: Double = 10.0): Geometry(source)

Calculate great circles routes as LineString. Raises error when from and to are antipodes.

Parameters

from

source point

to

destination point

pointCount

number of positions on the arc (including from and to)

antimeridianOffset

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

Throws

if from and to are diametrically opposite.