-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add geo polygon query type * Detect closed polygons, update docs
- Loading branch information
1 parent
70727c2
commit 3fdcfbf
Showing
8 changed files
with
2,171 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Geo-Polygon Query | ||
========================== | ||
|
||
A query that matches documents with geo point within a defined set of polygons. | ||
|
||
Polygon definitions must conform to the `GeoJson <https://geojson.org/>`_ standard. | ||
Polygons must not be self-crossing, otherwise may result in unexpected behavior. | ||
Polygons cannot cross the 180th meridian. Instead, use two polygons: one on each side. | ||
|
||
Proto definition: | ||
|
||
.. code-block:: | ||
message GeoPolygonQuery { | ||
// Field in the document to query | ||
string field = 1; | ||
// Geo polygons to search for containing points | ||
repeated Polygon polygons = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.