1.1.0 • Published 7 years ago
german-states-bbox v1.1.0
german-states-bbox
Minimal bounding boxes for German states. Taken from http://osmtipps.lefty1963.de
.
Installing
npm install german-states-bbox
Usage
console.log(require('german-states-bbox'))
{
BW: {
minLat: 47.5338000528, maxLat: 49.7913749328,
minLon: 7.5113934084, maxLon: 10.4918239143
},
TH: {
minLat: 50.2042330625, maxLat: 51.6490678544,
minLon: 9.8778443239, maxLon: 12.6531964048
}
}
You can also consume the data as GeoJSON:
const data = require('german-states-bbox/as-geojson')
console.log(data.BW)
{
type: 'Feature',
properties: {name: 'BW'},
geometry: {
type: 'Polygon',
coordinates: [[
[7.5113934084, 47.5338000528],
[10.4918239143, 47.5338000528],
[10.4918239143, 49.7913749328],
[7.5113934084, 49.7913749328],
[7.5113934084, 47.5338000528]
]]
}
}
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.