Returns a distance between two points in decimal degrees (latitude/longitude) as miles.


Namespace: AspMap
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function MeasureDistance( _ 
   ByVal p1 As Point,  _ 
   ByVal p2 As Point _ 
) As Double
C#
public static double MeasureDistance(
   Point p1,
   Point p2
)
C++
public:
 static double MeasureDistance(
   Point p1,
   Point p2
)
J#
public static double MeasureDistance(
   Point p1,
   Point p2
)
JScript
public static  function MeasureDistance(
   p1 : Point,
   p2 : Point
) : double

Parameters

p1
An object expression that evaluates to a Point object.
p2
An object expression that evaluates to a Point object.

See Also