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 lat_field As String, _ ByVal long_field As String, _ ByVal latitude As Double, _ ByVal longitude As Double, _ ByVal units As NetricsPredicate.DistanceUnits _ ) As NetricsPredicate |
C# |
---|
public static NetricsPredicate CreateGeoDistance( string lat_field, string long_field, double latitude, double longitude, NetricsPredicate.DistanceUnits units ) |
C++ |
---|
public: static NetricsPredicate CreateGeoDistance( String lat_field, String long_field, double latitude, double longitude, NetricsPredicate.DistanceUnits units ) |
J# |
---|
public static NetricsPredicate CreateGeoDistance( string lat_field, string long_field, double latitude, double longitude, NetricsPredicate.DistanceUnits units ) |
JScript |
---|
public static
function CreateGeoDistance( lat_field : String, long_field : String, latitude : double, longitude : double, units : NetricsPredicate.DistanceUnits ) : NetricsPredicate |
Parameters
- lat_field
- The name of a record field that contains a latitude in degrees. This must have a field type of double.
- long_field
- The name of a record field that contains a longitude in degrees. This must have a field type of double.
- latitude
- The latitude of the second point in degrees.
- longitude
- 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 first point is taken from two record fields, the second is given as fixed constants.