Skip to content

Commit f19b49f

Browse files
cholmesm-mohr
andauthored
updates to examples to be a bit more clear (#53)
* updates to examples to be a bit more clear * Update examples.md Co-authored-by: Matthias Mohr <[email protected]> * fix for markdown linting Co-authored-by: Matthias Mohr <[email protected]>
1 parent 0cf9af5 commit f19b49f

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

examples.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ Request 100 results in `mycollection` from New Zealand:
1616
GET /collections/mycollection/items?bbox=160.6,-55.95,-170,-25.89&limit=100
1717
```
1818

19-
Request all the data in `mycollection` that is in New Zealand from January 1st, 2019:
19+
Request all the data in `mycollection` that is in New Zealand at anytime on January 1st, 2019:
2020

2121
```http
22-
GET /collections/mycollection/items?bbox=160.6,-55.95,-170,-25.89&datetime=2019-01-01T00:00:00Z/2019-01-01T23:59:59ZZ
22+
GET /collections/mycollection/items?bbox=160.6,-55.95,-170,-25.89&datetime=2019-01-01T00:00:00Z/2019-01-01T23:59:59Z
2323
```
2424

2525
Request 10 results from the data in `mycollection` from between January 1st (inclusive) and April 1st, 2019 (exclusive):
@@ -30,6 +30,19 @@ GET /collections/mycollection/items?datetime=2019-01-01T00:00:00Z/2019-03-31T23:
3030

3131
## STAC API
3232

33+
The STAC API `/search/` endpoint can support the same requests as above, as POST.
34+
35+
Request 100 results in `mycollection` that is in New Zealand at anytime on January 1st, 2019:
36+
37+
```json
38+
{
39+
"collections": ["mycollection"],
40+
"bbox": [160.6,-55.95,-170,-25.89],
41+
"limit": 100,
42+
"datetime": "2019-01-01T00:00:00Z/2019-01-01T23:59:59Z"
43+
}
44+
```
45+
3346
Use the *[Query](extensions/query/README.md)* extension to search for any data falling within a specific geometry
3447
collected between Jan 1st and May 1st, 2019:
3548

@@ -40,12 +53,12 @@ Request to `POST /search`:
4053
"intersects": {
4154
"type": "Polygon",
4255
"coordinates": [[
43-
[-77.08248138427734, 38.788612962793636], [-77.01896667480469, 38.788612962793636],
44-
[-77.01896667480469, 38.835161408189364], [-77.08248138427734, 38.835161408189364],
45-
[-77.08248138427734, 38.788612962793636]
56+
[-77.0824, 38.7886], [-77.0189, 38.7886],
57+
[-77.0189, 38.8351], [-77.0824, 38.8351],
58+
[-77.0824, 38.7886]
4659
]]
4760
},
48-
"time": "2019-01-01/2019-05-01"
61+
"datetime": "2019-01-01/2019-05-01"
4962
}
5063
```
5164

0 commit comments

Comments
 (0)