Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/glatek/clc-eu
- Owner: Glatek
- Created: 2019-08-27T18:07:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T07:15:16.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T21:27:34.701Z (8 months ago)
- Topics: corine-land-cover, european-environment-agency, european-union, javascript, terrain, terrain-mapping
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/clc-eu
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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']
}
```