This repository consist of an Rest API made by Django Rest Framework to search places through latitude and longitude values.
Navigate to the root of the application and install all dependencies.
pip install -r requirements.txt
python manage.py runserver
You can easily test the endpoints from swagger ui. After starting the app, navigate to the link at your browser.
http://127.0.0.1:8000/api/swagger/
This will end up with an api interface that you can try the endpoints.
There are 1 search and 2 database purposes endpoints.
- /api/v1/search endpoint is responsible for finding places.
- /api/v1/infodb endpoint returns the database so you can check the older found places.
- /api/v1/cleardb endpoint cleans the database.