Skip to content

Commit

Permalink
Add documentation for geospatial queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx committed Dec 15, 2017
1 parent 9c58a0d commit 3022e66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions query_language_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ Noise supports the following comparison operators:

Noise does not do type conversions of datatypes. Strings only compare with strings, number only compare with numbers, etc.

### Geospatial operators

[GeoJSON](https://tools.ietf.org/html/rfc7946#section-3.1) geometry objects are indexed automatically for geospatial queries. Currently only bounding box queries are supported. The input geometries are simplified to bounding boxes. The operator is `&&` (the [similar to PostGIS](http://postgis.net/docs/manual-2.4/geometry_overlaps.html)) followed by a bounding box, which is a 4 element array where the coordinate order is `[West, South, East, North`] (or you could say lower-left corner followed by upper-right corner).

```
find {geometry: && [-180, -90, 180, 90]}
```


### Finding Things in Arrays

Let's say you have document like this with text in an array:
Expand Down

0 comments on commit 3022e66

Please sign in to comment.