mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 14:10:21 -04:00
36 lines
326 B
Markdown
36 lines
326 B
Markdown
# Location API 🗺
|
|
|
|
|
|
Location API built with FastAPI.
|
|
|
|
<br>
|
|
|
|
## 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
|
|
```
|