From ed95a867108068df1fa9e94b4c2dc4b57de1769d Mon Sep 17 00:00:00 2001 From: Christian Jacobs Date: Wed, 28 Mar 2018 21:17:06 +0100 Subject: [PATCH] Use the Maidenhead object that is already defined. --- pyqso/world_map.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyqso/world_map.py b/pyqso/world_map.py index 8a3015b..671d6f6 100644 --- a/pyqso/world_map.py +++ b/pyqso/world_map.py @@ -221,9 +221,8 @@ class WorldMap: # Get the latitude-longitude coordinates. Use any GRIDSQUARE information first since this is likely to be more accurate than the COUNTRY field. if(gridsquare): - m = Maidenhead() try: - latitude, longitude = m.gs2ll(gridsquare) + latitude, longitude = self.maidenhead.gs2ll(gridsquare) logging.debug("QTH coordinates found: (%s, %s)", str(latitude), str(longitude)) self.add_point(callsign, latitude, longitude) return