Update locationdata.py

This commit is contained in:
SpudGunMan
2024-06-19 15:35:16 -07:00
parent a265e8685f
commit be373fff47
+1 -11
View File
@@ -9,15 +9,5 @@ def where_am_i(lat=0, lon=0):
location = geolocator.reverse(lat+","+lon)
address = location.raw['address']
# traverse the data
city = address.get('city', '')
state = address.get('state', '')
country = address.get('country', '')
zipcode = address.get('postcode')
print('City : ', city)
print('State : ', state)
print('Country : ', country)
print('Zip Code : ', zipcode)
return location
return address