Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.79 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.79 KB

teryt-api

Production version of app can be found here: https://teryt-api.herokuapp.com/

teryt-api is an python based API that uses Django web framework. This app implements TERYT databse which contains latest polish administrative unit objects, e.g. provinces, cities, villages and roads.
TERYT databse is maintained by "GUS" (polish: Central Statistical Office).

There are tools that can parse CSV files and import objects to web database.

CSV files can be found there

Quickstart

Clone repository:
git clone https://github.com/Tomson601/teryt-api.git

Migrate database:
python manage.py migrate

Download and parse newest catalogs (CSV database files) in django shell:
python manage.py download_catalogs --all true

Parse and import objects from downloaded db files:
python manage.py parse --terc true --simc true --ulic true

Run server localy:
python manage.py runserver

Features

teryt-api can:

Gallery

API root
API woj-get
API filters