Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/berlin-postal-code-areas
The shapes of all ZIP code areas in Berlin as GeoJSON.
https://github.com/derhuerst/berlin-postal-code-areas
berlin geojson postal-code shapefile zip-code
Last synced: 5 days ago
JSON representation
The shapes of all ZIP code areas in Berlin as GeoJSON.
- Host: GitHub
- URL: https://github.com/derhuerst/berlin-postal-code-areas
- Owner: derhuerst
- License: isc
- Created: 2018-01-24T19:46:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T10:18:38.000Z (about 4 years ago)
- Last Synced: 2024-10-30T08:26:39.606Z (14 days ago)
- Topics: berlin, geojson, postal-code, shapefile, zip-code
- Language: JavaScript
- Homepage: https://github.com/derhuerst/berlin-postal-code-areas#berlin-postal-code-areas
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# berlin-postal-code-areas
**The shapes of all [ZIP code](https://en.wikipedia.org/wiki/Postal_codes_in_Germany) areas in Berlin as [GeoJSON](http://geojson.org).**
[![npm version](https://img.shields.io/npm/v/berlin-postal-code-areas.svg)](https://www.npmjs.com/package/berlin-postal-code-areas)
[![build status](https://api.travis-ci.org/derhuerst/berlin-postal-code-areas.svg?branch=master)](https://travis-ci.org/derhuerst/berlin-postal-code-areas)
![minimum Node.js version](https://img.shields.io/node/v/berlin-postal-code-areas.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst)## Installing
```shell
npm install berlin-postal-code-areas
```## Usage
```js
const shapes = require('berlin-postal-code-areas')
const {pathForShape} = shapesconst shapeFile = shapes('10555')
const path = pathForShape(shapeFile)const shape = require(path)
console.log(shape)
``````js
{
type: 'Polygon',
coordinates: [ [
[13.32878,52.52244],
[13.328878,52.522348],
[13.328897,52.522331],
[13.328899,52.52232],
[13.32889,52.522312],
[13.328881,52.522308],
// …
] ]
}
```## Related
- [german-administrative-areas](https://github.com/juliuste/german-administrative-areas) – German administrative areas as GeoJSON.
- [gemeindeverzeichnis](https://github.com/juliuste/gemeindeverzeichnis) – German „Gemeindeverzeichnis“ (vaguely 'community register') containing all federal entities.## Contributing
If you have a question or have difficulties using `berlin-postal-code-areas`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/berlin-postal-code-areas/issues).