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