This repository is the backend of the GeoAnnotator (GA). It is mainly used for geoparsing plain texts, requesting coordinates of detected/given locations and more.
To install and run the backend, following packages/modules are required:
- Python 3.6 or higher
conda create -n GeoAnnotator_backend python && conda activate GeoAnnotator_backend
- FastAPI (for Request-API's) and Uvicorn (ASGI, webserver for hosting and logging Request-API's)
pip install fastapi "uvicorn[standard]"
- Geocoder, for "geocoding" exact position of a place
pip install geocoder
In bash, run the backend with following command (Win/Lin/Os):
uvicorn main:app --reload
The paths for the endpoint API's are under 'localhost:8000/api/...'. Feel free to explore.
Project finished.