FunctionGeodist(Single, Single, Single, Single, Geodistance Options) Method
Calculates the geosphere distance between the two points given by their coordinates.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The geosphere distance in meters.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static float Geodist(
float latitude1,
float longitude1,
float latitude2,
float longitude2,
GeodistanceOptions options
)VB
Public Shared Function Geodist (
latitude1 As Single,
longitude1 As Single,
latitude2 As Single,
longitude2 As Single,
options As GeodistanceOptions
) As SingleParameters
- latitude1 Single
- The latitude of the first point.
- longitude1 Single
- The longitude of the first point.
- latitude2 Single
- The latitude of the second point.
- longitude2 Single
- The longitude of the second point.
- options GeodistanceOptions
- The options to use (supported with Sphinx 2.2.1 and up).
Return Value
SingleThe geosphere distance in meters.