File size: 939 Bytes
afc9357
7588b34
afc9357
 
7588b34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
afc9357
0de23fa
8459b0d
 
0de23fa
 
 
c2f98a8
 
0de23fa
c2f98a8
 
0de23fa
c2f98a8
0de23fa
 
1a3c92a
4bcbb2c
 
0de23fa
 
 
 
afc9357
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import streamlit as st
import requests
import pandas as pd
import numpy as np
from streamlit_lottie import st_lottie


st.title('Plot and track your vacations!')

def load_lottie_url(url: str):
    r = requests.get(url)
    if r.status_code != 200:
        return None
    return r.json()
    
def ShowAnimation(name, URL):
    anim=load_lottie_url(URL)
    st_lottie(anim, key = name)

ShowAnimation("Badge1","https://assets2.lottiefiles.com/packages/lf20_jte9hafx.json")





city_name = st.text_input('Please Input your Desired City:')
lat = st.text_input('Please Input the Latitude:' )
long = st.text_input('Please Input the Longitude:' )


cities_list = []
cities_list.append(city_name)

lat_list = []
lat_list.append(lat)

long_list = []
long_list.append(long)


places = pd.DataFrame({'cities:' : cities_list, 'lat:' : lat_list, 'lan:' : long_list})
    if city_name != "" and lat !="" and long != "": 
        st.map(places)