
Polygon and the search coordinate coord will be interpreted as useLonLat (bool, optional): if set to true, the coordinates in.coord (array): the search coordinate as a number array with two elements.polygon (array): an array of arrays with 2 elements each, representing the.This can be changed by setting the 3rd parameter to true to The 2nd parameter can alternatively be specified as an array with two values.īy default, each array element in polygon is expected to be in the format IS_IN_POLYGON(polygon, coord, useLonLat) → bool will check if the point (lat 4, lon 7) is contained inside the polygon IS_IN_POLYGON (, ,, ], 4, 7 ) returns bool (bool): whether the evaluated distance lies within the rangeĭetermine whether a coordinate is inside a polygon.Range (right-closed interval) or not (right-open interval). includeHigh (bool): whether the maximum value shall be included in the.In the range (left-closed interval) or not (left-open interval). includeLow (bool, optional): whether the minimum value shall be included.high (number): maximum value of the desired range.low (number): minimum value of the desired range.geoJsonB (object|array): second GeoJSON object or coordinate array.geoJsonA (object|array): first GeoJSON object or coordinate array.The distance is measured from the centroid of GEO_IN_RANGE(geoJsonA, geoJsonB, low, high, includeLow, includeHigh) → boolĬhecks whether the distance between two GeoJSON objects Also noteįILTER GEO_INTERSECTS(doc.geo, geoJson) to test whether doc.geo intersects GeoJson needs to evaluate to a valid GeoJSON object. The two objects on the reference ellipsoidįOR doc IN coll FILTER GEO_INTERSECTS ( geoJson, doc. returns distance (number): the distance between the centroid points of.

Supported are "sphere" (default) and "wgs84".

The argument order: the stored document attribute doc.geo is passed as the

The geoJson variable needs to evaluate to a valid GeoJSON object. You need to set the geoJson index option to true. In this example, you would create the index for the collection coll, on theĪttribute geo. FOR doc IN coll FILTER GEO_CONTAINS ( geoJson, doc.
