1.0.0 • Published 2 years ago
german-administrative-areas v1.0.0
german-administrative-areas
German administrative areas as WGS84 GeoJSON. Data provided by the Federal Agency for Cartography and Geodesy (current dataset from 2021-01-01), subject to this license.
Installation
npm install --save german-administrative-areas
Usage
The module contains seperate lists of GeoJSON objects for the following federal and administrative layers:
staat
- Federal Republic of Germanylaender
- states (e. g. Hessen, Thüringen, Bavaria, …)regierungsbezirke
- administrative districts (e. g. Regierungsbezirk Münster)kreise
- counties and and autonomous citiesverwaltungsgemeinschaften
- association of administrations / municipalitiesgemeinden
- municipalities
You can either require the entire module (which will take a few seconds) to access all layers:
const areas = require('german-administrative-areas')
console.log(areas.verwaltungsgemeinschaften) // list of GeoJSON objects
console.log(areas['laender'])
Or you require specific layers in case you don't need all of them:
const states = require('german-administrative-areas/laender.geo.json')
const municipalities = require('german-administrative-areas/gemeinden.geo.json')
Contributing
If you found a bug or want to propose a feature, feel free to visit the issues page.