distanceGeodeticOrNull

fun distanceGeodeticOrNull(point1: Point, point2: Point, distanceUnit: LinearUnit?, azimuthUnit: AngularUnit?, curveType: GeodeticCurveType): GeodeticDistanceResult?

Calculates the geodetic distance between two given points and calculates the azimuth at both points for the geodetic curve that connects the points.

Return

A structure containing the distance and the azimuth at both points for the geodetic curve that connects them, or null if point1 and point2 do not have equivalent spatial references.

Since

200.1.0

Parameters

point1

A point object.

point2

Another point object.

distanceUnit

The linear unit of measure for the returned results. Assumes meters if no unit is given.

azimuthUnit

The angular unit of measure for the returned results. Assumes degrees if no unit is given.

curveType

The type of curve to calculate.