A newer version of this page is available. Switch to the current version.

GeoUtils.CalculateCenter(GeoPoint, GeoPoint) Method

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.2.dll


public static GeoPoint CalculateCenter(
    GeoPoint point1,
    GeoPoint point2
Public Shared Function CalculateCenter(
    point1 As GeoPoint,
    point2 As GeoPoint
) As GeoPoint


Name Type Description
point1 GeoPoint

The first geographical point.

point2 GeoPoint

The second geographical point.


Type Description

A center between two specified points.


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