Update locationdata.py

enhance for LLM
This commit is contained in:
SpudGunMan
2024-09-10 00:46:43 -07:00
parent 711844cc83
commit 9620164884
+1 -1
View File
@@ -28,7 +28,7 @@ def where_am_i(lat=0, lon=0, short=False):
location = geolocator.reverse(lat + ", " + lon)
address = location.raw['address']
address_components = ['city', 'state', 'county', 'country']
whereIam = f"City: {address.get('city', '')} State: {address.get('state', '')} County: {address.get('county', '')} Country: {address.get('country', '')}"
whereIam = f"City: {address.get('city', '')}. State: {address.get('state', '')}. County: {address.get('county', '')}. Country: {address.get('country', '')}."
return whereIam
if float(lat) == latitudeValue and float(lon) == longitudeValue: