libnmea icon indicating copy to clipboard operation
libnmea copied to clipboard

more precise lat and lon

Open frankipl opened this issue 7 years ago • 2 comments

Hi,

First of all, thanks for your work. I have compiled static version and tried to use in my project, which is for tracking vehicles. After parsing nmea just degrees and minutes is not enough, It would be good to have double precision numbers like for lat 49.164512 and for lon 21.160322

Best Regards Marek

frankipl avatar Jun 22 '17 11:06 frankipl

Check-out the nmath.h file. It has several methods to convert to required units. Also, if you display using "cout", be sure to set the precision using cout.precision(). I think for what you need, you may use "nmeaMathNdegToDegree".

DoruLa avatar Sep 28 '17 14:09 DoruLa

Sorry for a very delayed answer. I will take a look at it when I have time. Mean while, maybe you could try the solution suggested by @DoruLa.

jacketizer avatar Oct 02 '17 13:10 jacketizer