Show / Hide Table of Contents

Method DistanceGeodetic

DistanceGeodetic(MapPoint, MapPoint, LinearUnit, AngularUnit, GeodeticCurveType)

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

Declaration
public static GeodeticDistanceResult DistanceGeodetic(this MapPoint point1, MapPoint point2, LinearUnit distanceUnit, AngularUnit azimuthUnit, GeodeticCurveType curveType)
Parameters
Type Name Description
MapPoint point1

The first point to calculate.

MapPoint point2

The second point to calculate.

LinearUnit distanceUnit

The unit of measurement that needs to be calculated for geodesic distance. Assumes meters if no unit is given.

AngularUnit azimuthUnit

The angular unit of measurement to be calculated for Azimuth1 and Azimuth2. Assumes degrees if no unit is given.

GeodeticCurveType curveType

Type of the geodetic curve.

Returns
Type Description
GeodeticDistanceResult

Geodesic distance between the two points expressed in the linear unit of measurement provided. Azimuth1 and Azimuth2 are expressed in the angular unit of measurement provided.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.