Update locationdata.py

This commit is contained in:
SpudGunMan
2024-06-19 16:31:38 -07:00
parent c2f21885a3
commit e96bb66ab2
+3
View File
@@ -2,6 +2,7 @@
# K7MHI Kelly Keeton 2024
from geopy.geocoders import Nominatim # pip install geopy
import maidenhead as mh # pip install maidenhead
def where_am_i(lat=0, lon=0):
whereIam = ""
@@ -24,5 +25,7 @@ def where_am_i(lat=0, lon=0):
whereIam += " " + address['county']
if 'country' in address:
whereIam += " " + address['country']
whereIam += "Grid: " + mh.to_maiden(lat, lon)
return whereIam