Data Enumeration QueryGeo Near Method
Create a geospatial queries that find documents near a specific location, taking distance constraints into account.
Definition
Namespace: Casewhere.Runtime.DSL.Api
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
The query object itself for chaining purpose.
Assembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.9.8.6
C#
public DataEnumerationQuery 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
DataEnumerationQueryThe query object itself for chaining purpose.