Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/glatek/clc-eu

🏞 🌅 🌄 JavaScript module to get Corine Land Cover data from the European Environment Agency.
https://github.com/glatek/clc-eu

corine-land-cover european-environment-agency european-union javascript terrain terrain-mapping

Last synced: about 2 months ago
JSON representation

🏞 🌅 🌄 JavaScript module to get Corine Land Cover data from the European Environment Agency.

Awesome Lists containing this project

README

        

# clc-eu 🏞 🌅 🌄

This is a JavaScript module that gives you the Corine Land Cover information of a lat/long pair or an [Open Location Code](https://github.com/google/open-location-code).

Only terrain data within the EU is covered as this uses the [Corine Land Cover data from 2018](http://copernicus.discomap.eea.europa.eu/arcgis/rest/services/Corine/CLC2018_WM/MapServer) provided by the [European Environment Agency](https://www.eea.europa.eu/).

## Methods

```
async getTerrainDataFromPlotCode(plotCode)
```

```
async getTerrainDataFromLatLong({ latitude, longitude })
```

These both returns `{ [string]: []string }` where the key is the plot code and the array contains the available terrains within that Open Location Code-plot.

Example:
```
{ '9FFGWP5P+2R': [ 'Continuous urban fabric' ] }
```

## Usage

```
import { getTerrainDataFromLatLong } from 'clc-eu';

export async function fetchTerrainDataForMonolittenInOslo () {
const result = await getTerrainDataFromLatLong({
latitude: 59.927666,
longitude: 10.698893
});

return result; // ['Green urban areas']
}
```