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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |