ll2mh.py


These python scripts are extensions of a GPS-linked software piece written back in 2008. I realised, 10 years later, that being able to compute a LOCATOR from a Latitude and Longitude derived from a Sat-Nav or even Google® Maps could be handy.

So, in 2018 a version of the stand-alone-manual-entry console program was released - ll2mh.py. This iteration ran against the then-current Python version 2.7 - just "python" on the command line.

Now, in 2022, we have Python3 with python2(.7) fully deprecated in (linux) userspace. An update was necessary and thankfully fairly trivial to produce.
NB: Windows® users will need to install Python3 from the Windows® "Store" (free): type python3 in a Command window.

The zip file contains (FWIW) "ll2mh.py" (python 2) and "ll2mh-p3.py" (for a python3 install). The python3 code now (late Dec 2022) has the addition of the display of Elevation (MASL) for the lat/long provided; given that "the internet" is available on your device and your location is covered by the survey tiles.

Sure, they are command line programs (no pretty GUI) but they simply print out a response to your input - you can copy the lat/long from your favorite 2D mapping application directly into the running script at the appropriate place. All is explained by the prompts.
Run python ll2mh.py or python3 ll2mh-p3.py [recommended] in a terminal or "Command Prompt" and follow the instructions.

Of course there is a twist. This program supports output of the Locator with up to 52 characters (just for the craic). Nevertheless, it gets far too silly long before that!


All parts of the code are licenced under the GNU GPL - but please credit (and advise) the authors if you use this code in your own programs.

HTH

latlong2loc.zip

last updated: 20221226