mikalhart / TinyGPS

A compact Arduino NMEA (GPS) parsing library
http://arduiniana.org
390 stars 257 forks source link

request for clarification about some functions #8

Closed varlux closed 8 years ago

varlux commented 8 years ago

Hi everybody

first question: are latitudes and longitudes ALWAYS positive? Or.... are latitudes and longitudes always referred to Nord and East respectively?

(similar) second question: is altitude output always positive? Which is the output format for negative altitudes?

Thanks

VK3TY commented 8 years ago

_Numerically, _

Geographically,


On 23/08/16 04:54, varlux wrote:

Hi everybody

first question: are latitudes and longitudes ALWAYS positive? Or.... are latitudes and longitudes always referred to Nord and East respectively?

(similar) second question: is altitude output always positive? Which is the output format for negative altitudes?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikalhart/TinyGPS/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AHw2B2MQ_hl8GYZddpKMFTxX93ECdnHaks5qifBUgaJpZM4JqL6I.

varlux commented 8 years ago

So....because the output of the library is suffix-less, it can be negative.....right?

VK3TY commented 8 years ago

If the output you are reading has no suffix, as much as I hate assumptions, you would have to assume that a negative value (for either a latitude or longitude) would suggest South or West respectively.

I hope that helps.

On 23/08/16 18:16, varlux wrote:

So....because the output of the library is suffix-less, it can be negative.....right?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mikalhart/TinyGPS/issues/8#issuecomment-241659829, or mute the thread https://github.com/notifications/unsubscribe-auth/AHw2B9MEUJiVpuaXnuqYmeO1w_PewA1Iks5qiqx0gaJpZM4JqL6I.