Skip to main content

A Django app for processing municipality-related geospatial data.

Project description

codecov

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_munigeo-0.3.12.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

django_munigeo-0.3.12-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file django_munigeo-0.3.12.tar.gz.

File metadata

  • Download URL: django_munigeo-0.3.12.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_munigeo-0.3.12.tar.gz
Algorithm Hash digest
SHA256 81ed8a17c462deb1dc0a9e081bcb8672756aac3764d96e0fa45830edb06a051d
MD5 f3deaa071d9f2e5cdfffc08c853ea2fe
BLAKE2b-256 a9379164d36d84dd2e74152890506d939d5620c96cbea40d4c8ee769031f0394

See more details on using hashes here.

File details

Details for the file django_munigeo-0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for django_munigeo-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7d94dcd976b4f2fc1a0ade1313b0a563328be428a0cfcdf5e66b7532908dc91f
MD5 1eb6d702c5306e6b55eba4306adbac6d
BLAKE2b-256 d5fbe2dc3afe656adca95e89200737ab466355fca91632703823e9d4b8c8588f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page