Click or drag to resize

FunctionGeodist Method (Single, Single, Single, Single, GeodistanceOptions)

Calculates the geosphere distance between the two points given by their coordinates.

Namespace:  SphinxConnector.FluentApi
Assembly:  SphinxConnector (in SphinxConnector.dll) Version: 5.3.0
Syntax
public static float Geodist(
	float latitude1,
	float longitude1,
	float latitude2,
	float longitude2,
	GeodistanceOptions options
)

Parameters

latitude1
Type: SystemSingle
The latitude of the first point.
longitude1
Type: SystemSingle
The longitude of the first point.
latitude2
Type: SystemSingle
The latitude of the second point.
longitude2
Type: SystemSingle
The longitude of the second point.
options
Type: SphinxConnector.FluentApiGeodistanceOptions
The options to use (supported with Sphinx 2.2.1 and up).

Return Value

Type: Single
The geosphere distance in meters.
See Also