A list of units at a site in GeoJSON format
As a potential donor I want to see that real work is being done, and seeing all the units that have been planted at a site makes the project seem transparent and real.
Path parameters
-
Unique identifier given to a site.
GET
/maps/sites/{site}
curl \
-X GET https://api.protect.earth/maps/sites/61f423e5-3cac-4e82-a520-b233730637bb
Response examples (200)
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type2": "Point",
"coordinates": [
-1.9381,
51.87766
]
},
"properties": {
"name": "Lower Hampen Farm"
}
}
]
}
Response examples (404)
{
"type": "https://protect.earth/probs/something-went-wrong",
"title": "You do not have enough credit.",
"status": 400,
"detail": "Your current balance is 30, but that costs 50.",
"instance": "/account/12345/msgs/abc"
}