A list of units at a site in GeoJSON format

GET /maps/sites/{site}

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

  • site string(uuid) Required

    Unique identifier given to a site.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • type string
    • features array[object]
      Hide features attributes Show features attributes object
  • 404 application/problem+json

    Site not found.

    Hide response attributes Show response attributes object
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"
}