File size: 562 Bytes
6dfeecc 8f99e9d 6dfeecc 8f99e9d 6dfeecc 5b02de4 8f99e9d 6dfeecc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import streamlit as st
import requests
from streamlit_lottie import st_lottie
import pandas as pd
st.title('"map"')
name_of_city = 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 name_of_city != "" and lat != "" and long != "":
city_list.append(name_of_city)
lat_list.append(lat)
long_list.append(long)
st.map(pd.DataFrame({'cities' : city_list, 'lat' : lat_list, 'lon' : long_list}))
|