Use this instead: https://github.com/Vufuzi/clc-eu
This is a cloud function that gives you the Corine Land Cover information of a lat/long pair or an Open Location Code.
Only works within the EU as this uses the Corine Land Cover data from 2012 provided by the European Environment Agency.
URL: /
Method: GET
URL params: ?lat=[number]&long=[number]
|| ?ocl=[OpenLocationCode]
Code: 200 OK
Content:
{
openLocationCode: OpenLocationCode,
terrainTypes: string[]
}
{
"openLocationCode":"9FFJMH3M+4G",
"terrainTypes": [
"Industrial or commercial units",
"Water bodies"
]
}
Prerequisite:
- Install the Webtask CLI and set it up
- Install the node 8 profile as per this article
Run npm run deploy
to publish the webtask cloud function.