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 linear unit of measure for the returned results. Assumes meters if no unit is given.

AngularUnit azimuthUnit

The angular unit of measure for the returned results. 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.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.