A geographic coordinates parser that returns decimal degrees for a wide range of input formats.
Translated directly from the Javascript version.
Currently under development as a Python training exercise Please note that decimal precision needs to be reasonable. The maximum decimal places allowed in DMS, for example, is three (3). DMS coordinates with four decimal places in seconds are measuring position at a precision of less than 10mm, which is way beyond what even the best professional GPS devices can provide.