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
antimeridianOffset
from antimeridian in degrees (default long. = +/- 10deg, geometries within 170deg to -170deg will be split)
Throws
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
antimeridianOffset
from antimeridian in degrees (default long. = +/- 10deg, geometries within 170deg to -170deg will be split)