API

This page describes the API methods that can be used with the "hittegolven" use-case api.

Tree Detection

POST http://localhost:5000/temperatures/treedetection

This endpoint detects trees based on an ArcGis tile that is posted to it.

Request Body

Name
Type
Description

images

object

A list of objects containing an "image" key with a base64 encoded ArcGis image tile as value.

{
    "detections": [
        {
            "box": {
                'top_left': {
                    'lat': 1.03,
                    'lon': 2.01,
                },
                'bottom_right': {
                    'lat': 1.05,
                    'lon': 2.08,
                }
            },
            "score": 0.25
        },
        ...
    ]
}

Locust prevention

GET http://localhost:5000/temperatures/locustdetection

This endpoint shows the goodness of fit for a farmers land in regards to it being a breeding ground for locusts.

Path Parameters

Name
Type
Description

string

Sources

HTTP Status Codes Cheatsheetarrow-up-right

Last updated