Area order creation

The Planet Tasking API is a REST based API, which can be integrated into any service, regardless of the language used. Below are some examples of how to integrate the most commonly used aspects of the Tasking API Stereo orders creation, editing and cancellation.

The creation, editing and deletion of Area orders follows the same rules as normal orders.

Area order creation

The difference between an area order and a non area order is the GeoJSON object that defines the AOI (area of interest) of the order. The GeoJSON object requires an array of points that define the area to be tasked:

curl --request POST --url 'https://api.planet.com/tasking/v2/orders/' \
    --header 'accept: application/json' \
    --header 'authorization: api-key <YOUR_API_KEY>' \
    --header 'content-type: application/json' \
    --data '{
        'name': 'Area Order 01',
        'geometry': {
            'type': 'Polygon',
            'coordinates': [
                [
                    [
                        -111.02062225341797,
                        39.58637603706183
                    ],
                    [
                        -110.9095573425293,
                        39.58637603706183
                    ],
                    [
                        -110.9095573425293,
                        39.670992062375056
                    ],
                    [
                        -111.02062225341797,
                        39.670992062375056
                    ],
                    [
                        -111.02062225341797,
                        39.58637603706183
                    ]
                ]
            ]
        }
    }

The response is much the same as a standard Order request.