Use the Maidenhead object that is already defined.

pull/70/head
Christian Jacobs 2018-03-28 21:17:06 +01:00
rodzic 7dd02c35c0
commit ed95a86710
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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