Click or drag to resize

DataSourceApiQueryGeoNear Method

Create a geospatial queries that find documents near a specific location, taking distance constraints into account.

Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntax
C#
public DataSourceApiQuery GeoNear(
	string field,
	GeoJsonObject value,
	double? maxDistance = 0,
	double? minDistance = 0
)

Parameters

field  String
This parameter specifies the name of the field in your documents that contains location data or coordinates.
value  GeoJsonObject
A GeoJsonObject geometry for use with the following geospatial query operators.
maxDistance  NullableDouble  (Optional)
This parameter specifies the maximum distance within which to find documents. It defaults to 0 if not provided.
minDistance  NullableDouble  (Optional)
This parameter specifies the minimum distance from the target location. It defaults to 0 if not provided.

Return Value

DataSourceApiQuery
The query object itself for chaining purpose.
See Also