Created
March 6, 2016 13:02
-
-
Save Greyvend/3a746fa9978664cfb763 to your computer and use it in GitHub Desktop.
API blueprint for Mongo Polygon field.
This file contains hidden or 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
# Data structures | |
## Polygon | |
- name : Big polygon (string, required) - name of the polygon | |
- points : [[[0, 0], [0, 5], [5, 5], [0, 5], [0, 0]], [[1, 1], [4, 1], [4, 4], [1, 4], [1, 1]]] (required) - list of lists of points (x, y) coordinate pairs. | |
First list is an enclosing polygon. Next ones are cut out areas. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please check https://github.com/apiaryio/datapool/blob/zdne/datapool-origin/geojson-geometry.apib