@@ -16,10 +16,10 @@ Request 100 results in `mycollection` from New Zealand:
16
16
GET /collections/mycollection/items?bbox=160.6,-55.95,-170,-25.89&limit=100
17
17
```
18
18
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:
20
20
21
21
``` 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
23
23
```
24
24
25
25
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:
30
30
31
31
## STAC API
32
32
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
+
33
46
Use the * [ Query] ( extensions/query/README.md ) * extension to search for any data falling within a specific geometry
34
47
collected between Jan 1st and May 1st, 2019:
35
48
@@ -40,12 +53,12 @@ Request to `POST /search`:
40
53
"intersects" : {
41
54
"type" : " Polygon" ,
42
55
"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 ]
46
59
]]
47
60
},
48
- "time " : " 2019-01-01/2019-05-01"
61
+ "datetime " : " 2019-01-01/2019-05-01"
49
62
}
50
63
```
51
64
0 commit comments