web3-starter-py/web2-projects/fastapi-location-app
osiris account 314bdf533e 💾
2023-03-12 15:32:23 -07:00
..
api 💾 2023-03-12 15:32:23 -07:00
.gitignore 💾 2023-03-12 15:32:23 -07:00
.vercelignore 💾 2023-03-12 15:32:23 -07:00
main.py 💾 2023-03-12 15:32:23 -07:00
README.md 💾 2023-03-12 15:32:23 -07:00
requirements-dev.txt 💾 2023-03-12 15:32:23 -07:00
requirements.txt 💾 2023-03-12 15:32:23 -07:00
vercel.json 💾 2023-03-12 15:32:23 -07:00

Location API 🗺

Location API built with FastAPI.


Endpoint /location

Input data:

{"city": "berlin"}

Response:

{"lat":52.5186925,"lon":13.3996024,"tzone":1}

Installing

virtualenv -p python3.9 venv
source venv/bin/activate
pipenv install

Running

python3 main.py