Create a predicate to return the distance between two points.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function CreateGeoDistance( _ 
   ByVal lat1 As NetricsPredicate,  _ 
   ByVal long1 As NetricsPredicate,  _ 
   ByVal lat2 As NetricsPredicate,  _ 
   ByVal long2 As NetricsPredicate,  _ 
   ByVal units As NetricsPredicate.DistanceUnits _ 
) As NetricsPredicate
C#
public static NetricsPredicate CreateGeoDistance(
   NetricsPredicate lat1,
   NetricsPredicate long1,
   NetricsPredicate lat2,
   NetricsPredicate long2,
   NetricsPredicate.DistanceUnits units
)
C++
public:
 static NetricsPredicate CreateGeoDistance(
   NetricsPredicate lat1,
   NetricsPredicate long1,
   NetricsPredicate lat2,
   NetricsPredicate long2,
   NetricsPredicate.DistanceUnits units
)
J#
public static NetricsPredicate CreateGeoDistance(
   NetricsPredicate lat1,
   NetricsPredicate long1,
   NetricsPredicate lat2,
   NetricsPredicate long2,
   NetricsPredicate.DistanceUnits units
)
JScript
public static  function CreateGeoDistance(
   lat1 : NetricsPredicate,
   long1 : NetricsPredicate,
   lat2 : NetricsPredicate,
   long2 : NetricsPredicate,
   units : NetricsPredicate.DistanceUnits
) : NetricsPredicate

Parameters

lat1
The latitude of the first point in degrees.
long1
The longitude of the first point in degrees.
lat2
The latitude of the second point in degrees.
long2
The longitude of the second point in degrees.
units
The type of units the distance should be returned in.

Remarks

This method creates a predicate that uses the Geo-Distance function to determine the distance between two points. The values are given as predicate expressions.

See Also