Created
April 5, 2021 03:06
-
-
Save Chico-Chen/e4b097008fdd24fcd9e6e9aab7e3be2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nearby_airport(conn, city, distance, maxHops): | |
#get geo info from input city | |
geolocator = Nominatim(user_agent="hackathon") | |
location = geolocator.geocode(city) | |
if not location: | |
st.sidebar.error("City not found!") | |
return | |
lat = location.latitude | |
lng = location.longitude |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment