Skip to content

Commit 592082d

Browse files
authored
add /groundcover and /groundcoveryearmonths endpoints (#29)
1 parent 539c9f6 commit 592082d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

afm_tile.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,37 @@ curl -X GET \
141141
"https://tiles.afm.cibolabs.com/woodychangeyears"
142142
```
143143

144+
### /groundcover
145+
146+
Get an estimate of percentage ground cover for a season. The season is
147+
specified by the "yearmonth" (year + month) of the end of the season. The
148+
list of available yearmonths can be retrieved by calling `/groundcoveryearmonths`
149+
(below)
150+
151+
GET https://tiles.afm.cibolabs.com/groundcover/209405/1879/1193
152+
153+
```bash
154+
curl -X GET \
155+
--output "woody_change_2022_11_1879_1193.png" \
156+
-H "Authorization: Bearer ${TOKEN}" \
157+
-H "Accept: image/png" \
158+
"https://tiles.afm.cibolabs.com/groundcover/209405/1879/1193"
159+
```
160+
161+
### /groundcoveryearmonths
162+
163+
Get a list of valid yearmonths that can be used with the `/groundcover`
164+
endpoint.
165+
166+
GET https://tiles.afm.cibolabs.com/groundcoveryearmonths
167+
168+
```bash
169+
curl -X GET \
170+
--output "woody_change_years.json" \
171+
-H "Authorization: Bearer ${TOKEN}" \
172+
-H "Accept: application/json" \
173+
"https://tiles.afm.cibolabs.com/groundcoveryearmonths"
174+
```
144175

145176
### /legend
146177

@@ -151,6 +182,8 @@ than 250 kg/ha.
151182

152183
Call the /legend endpoint to return a text version of the colour table.
153184

185+
Specify the name of the product as the first path parameter to this endpoint.
186+
154187
/legend does not support the fractionalcover product.
155188
Please contact us if you
156189
need a legend for fractional cover to display in your application.

0 commit comments

Comments
 (0)