rhumbDistance

fun rhumbDistance(from: Position, to: Position, units: Units = Units.Kilometers): Double

Calculates the distance along a rhumb line between two points in degrees, radians, miles, or kilometers.

Return

distance between the two points in units

Parameters

from

origin point

to

destination point

units

units of returned distance. Can be degrees, radians, miles, or kilometers (default "kilometers")