mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-06 17:03:04 +02:00
Update locationdata.py
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user