munigeo
munigeo is a reusable Django application for storing and accessing
municipality-related geospatial data. It can manage following categories of
data:
- Municipalities as containers of everything below
- Administrative divisions (with parent-child relationships and links to Municipalities)
- Streets and address locations on those Streets
- Buildings with 2D-geometries and addresses
- PoIs (Points of Interest) with location and type
If you are using Django Rest Framework (DRF), munigeo also provides you with serializers for including these in your API.
For actually getting the data into your database application, munigeo provides importer framework. Currently we only have actual importers for City of Helsinki, but other are welcome.
Usage
Install this to your project with pip install django-munigeo,
add munigeo to your INSTALLED_APPS setting.
Helsinki example
Before you can get Helsinki, you will need the data for Finland first:
python manage.py geo_import finland --municipalities
then
python manage.py geo_import helsinki --divisions
Code format
This project uses Ruff for code formatting and quality checking.
Basic ruff commands:
- lint:
ruff check - apply safe lint fixes:
ruff check --fix - check formatting:
ruff format --check - format:
ruff format
pre-commit can be used to install and
run all the formatting tools as git hooks automatically before a
commit.
Release files for django-munigeo 0.3.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_munigeo-0.3.12.tar.gz | 29.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_munigeo-0.3.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.7 kB
Release files / django_munigeo-0.3.12.tar.gz
| Download URL | django_munigeo-0.3.12.tar.gz |
|---|---|
| Size | 29.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81ed8a17c462deb1dc0a9e081bcb8672756aac3764d96e0fa45830edb06a051d
|
|
BLAKE2b-256 checksum How to use checksums |
a9379164d36d84dd2e74152890506d939d5620c96cbea40d4c8ee769031f0394
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / django_munigeo-0.3.12-py3-none-any.whl
| Download URL | django_munigeo-0.3.12-py3-none-any.whl |
|---|---|
| Size | 37.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d94dcd976b4f2fc1a0ade1313b0a563328be428a0cfcdf5e66b7532908dc91f
|
|
BLAKE2b-256 checksum How to use checksums |
d5fbe2dc3afe656adca95e89200737ab466355fca91632703823e9d4b8c8588f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|