Qalculate / libqalculate

Qalculate! library and CLI
https://qalculate.github.io/
GNU General Public License v2.0
1.8k stars 145 forks source link

add some GPS functions #254

Open eadmaster opened 3 years ago

eadmaster commented 3 years ago
hanna-kn commented 3 years ago

I've now added a function for calculation of the distance between GPS coordinates (using Vincenty's formulae, or, in case of failure, the Harversine formula).

Coordinates conversion are already supported, e.g. 2°20′24″ = 2.34°, 2.34 to sexa = 2°20′24″ (sexa is here short for sexagesimal). There were some minor issues (′ and ″ was interpreted as feet and inches if there was a Unicode character after "°", and "2.34° to sexa" returned "2°20′24″ × °"), which has now been fixed.

eadmaster commented 3 years ago

nice, is there a way to customize the rounding in the sexagesimal notation? e.g.:

hanna-kn commented 3 years ago

New sexagesimal variants have now been added

eadmaster commented 3 years ago

thank you for working on this, it looks pretty useful already...