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.
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
teryt-api can:
- establish connection with TERYT API via WSDL establish_connection()
- download latest TERC, SIMC and ULIC data files download_catalogs()
- parse and import those files parse_TERC/SIMC/ULIC()
- count quantity of objects in file check_file_length()
- filter objects by any filed that is in databse filters
- and finally... serve these objects in the form of an API application https://teryt-api.herokuapp.com/