GeoUtils.CalculateLength(IList<GeoPoint>) Method
Calculates a polyline length in meters.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Parameters
Name | Type | Description |
---|---|---|
points | IList<GeoPoint> | A collection of points that define the polyline vertices. |
Returns
Type | Description |
---|---|
Double | The polyline length in meters. |
Remarks
The following code computes a length of a polyline given by three geographical points.
double lineLength = GeoUtils.CalculateLength(new List<GeoPoint> {
new GeoPoint(35.286, -111.1724),
new GeoPoint(38.3802, -110.9307),
new GeoPoint(36.9365, -102.493)
});
See Also