This project demonstrates the capabilities of GeoDgango in conjunction with DRF and a third party API.
The user enters an address and radius into the form. After that, the app get coordinates from the geocoding API (dadata.ru) and all nearest addresses are shown on the map.
- Python 3.10
- Django 4.1.3
- Django Rest Framework
- PostgreSQL 14 (PostGis, GDAL)
- OpenLayers (OpenStreetMap), JQuery
- API Dadata
- Get
token
andsecret
fromdadata.ru
- Copy
example.env
to.env
- Install PostgreSQL 14 with PostGis and GDAL
- Run
pip install -r requirements.txt
- Run
python manage.py migrate
- Run
python manage.py importcities cities
- Done!
- Get
token
andsecret
fromdadata.ru
- Copy
example.env
to.env
- Run
docker-compose build
- Run
docker-compose up -d
- Run
docker-compose run app python manage.py importcities cities
- Done!