|
import streamlit as st |
|
import requests |
|
from streamlit_lottie import st_lottie |
|
import pandas as pd |
|
|
|
st.title('Mark a point on the map, and I will take you there!') |
|
|
|
|
|
|
|
city_name = st.text_input('Please type the name of your city') |
|
lat = st.number_input('Please type your latitude:') |
|
long = st.number_input('Please type your longitude') |
|
city_list = [] |
|
lat_list = [] |
|
long_list = [] |
|
|
|
|
|
if city_name != "" and lat != "" and long != "": |
|
city_list.append(city_name) |
|
lat_list.append(lat) |
|
long_list.append(long) |
|
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list})) |
|
|