uwacan.Position.distance_to#

Position.distance_to(other)#

Calculate the distance to another coordinate.

See uwacan.positional.distance_to for details on the implementation.

Parameters:
otherCoordinates or convertible

The coordinate to calculate the distance to. If this is an object with latitude and longitude attributes, they will be used. Otherwise, the Position parser will be called.

Returns:
distanceDataArray

The distance to the other coordinate.