german-states-bbox

1.1.0 • Public • Published

german-states-bbox

Minimal bounding boxes for German states. Taken from http://osmtipps.lefty1963.de.

npm version build status dependency status dev dependency status ISC-licensed chat on gitter

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.

Package Sidebar

Install

npm i german-states-bbox

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • derhuerst