From e96bb66ab2099059f53e14b7b7aa35418120a387 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 16:31:38 -0700 Subject: [PATCH] Update locationdata.py --- locationdata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/locationdata.py b/locationdata.py index 652ef3b..ea2c44e 100644 --- a/locationdata.py +++ b/locationdata.py @@ -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 \ No newline at end of file