dh1tw / pyhamtools

A Library with Amateur Radio specific Functions and Methods
MIT License
89 stars 25 forks source link

locator_to_latlong valid but incorrect results when input 8 characters #30

Open dodpears opened 8 months ago

dodpears commented 8 months ago

pyhamtools.locator.locator_to_latlong returns a valid but incorrect lat/long pair when called with an 8 character maidenhead [1]. Ack that doc say 4-6 character input. 8 char can be a legit (extended) maidenhead... users may overlook the doc and end up with incorrect mappings. [1] I tested only one 8 character MH: EM69sf53. The 6 character EM69sf result is correct.

dh1tw commented 6 months ago

Hi @dodpears,

thanks for bringing this issue to my attention. I just released v0.10.0 which has now full support for 4, 6, 8 character precision for maidenhead conversions & calculations.

Kind regards, Tobias