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.

The zip file contains "ll2mh.py" (python 2) and "ll2mh-p3.py" (for a python3 install). The python3 code now (late Dec 2022) has the addition of the return of Elevation (MASL) for the lat/long provided (where available).

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] and follow the instructions.

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