kopia lustrzana https://github.com/ctjacobs/pyqso
Use the Maidenhead object that is already defined.
rodzic
7dd02c35c0
commit
ed95a86710
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue