https://github.com/koodaamo/postalcodeareas-fi
Finnish postal code areas packaged for Python
https://github.com/koodaamo/postalcodeareas-fi
finland gis postal-code postal-codes
Last synced: about 1 month ago
JSON representation
Finnish postal code areas packaged for Python
- Host: GitHub
- URL: https://github.com/koodaamo/postalcodeareas-fi
- Owner: koodaamo
- License: other
- Created: 2017-06-28T15:11:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T18:31:27.000Z (over 8 years ago)
- Last Synced: 2025-09-18T23:59:42.413Z (5 months ago)
- Topics: finland, gis, postal-code, postal-codes
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# postalcodeareas-fi
This package provides Finnish postal code area boundary
coordinates and area center coordinates packaged into
Python dictionaries. Additionally, there are some
utilities to convert the data to KML or geojson.
The data when fetched and built is about 15MB so you
may want to instead store it into a database though.
## Installation
Install from PyPI. Alternatively, check out the source,
cd into the directory having the `flit.ini` file and run:
flit install
## Building the data
Check out the source, cd to directory containing the
`rebuild.py` module, and run it:
python rebuild.py --help
Then use the (re)builder script as instructed. To use
data from the Google Fusion table created by Duukkis, you
should get an API key from Google as well. To use data
provided by Statistics Finland, using the Paavo API, no
api key is needed.
## Using the data
After building the data, just do:
from postalcodeareas_fi.data import areas, centers