Map for WinForms | ComponentOne
C1.FlexMap Namespace / GeographicCoordinateSystem Class / Distance Method
The first geographic coordinate.
The second geographic coordinate.

In This Topic
    Distance Method (GeographicCoordinateSystem)
    In This Topic
    Returns the distance, in meters, between two geographic coordinates.
    Syntax
    'Declaration
     
    
    Public Function Distance( _
       ByVal longLat1 As C1.Win.Interop.Point, _
       ByVal longLat2 As C1.Win.Interop.Point _
    ) As Double
    public double Distance( 
       C1.Win.Interop.Point longLat1,
       C1.Win.Interop.Point longLat2
    )

    Parameters

    longLat1
    The first geographic coordinate.
    longLat2
    The second geographic coordinate.

    Return Value

    The distance, in meters, between the two geographic coordinates.
    See Also