Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GeoUtils.CalculateCenter(GeoPoint, GeoPoint) Method

Returns a center point with geographical coordinates between two given points.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

#Declaration

public static GeoPoint CalculateCenter(
    GeoPoint point1,
    GeoPoint point2
)

#Parameters

Name Type Description
point1 GeoPoint

The first geographical point.

point2 GeoPoint

The second geographical point.

#Returns

Type Description
GeoPoint

A center between two specified points.

#Remarks

The following code shows how to use the CalculateCenter method to find a center between two points.

GeoPoint centerPoint = GeoUtils.CalculateCenter(new GeoPoint(35.286, -111.1724), new GeoPoint(38.3802, -110.9307));
See Also