Peter2121 / gpslogger

Lightweight GPS Logging Application For Android. Available on the Android Market as "GPSLogger for Android"
http://mendhak.github.com/gpslogger/
1 stars 0 forks source link

Encode altitude into NMEA string #3

Closed Peter2121 closed 8 years ago

Peter2121 commented 9 years ago

Actual version of OpenGTS rewrite altitude value from query string by NMEA string one. So, we need to encode the altitude inside NMEA string to be compatible with last versions of OpenGTS.

Peter2121 commented 8 years ago

The NMEA string format, used in GPSLogger ($GPRMC) has no altitude field. So the best solution is adding the second format, supported by OpenGTS ($GPGGA) which has an altitude field. The used should be able to choose between three options: $GPRMC, $GPRMC with altitude (as separate POST variable) and $GPGGA. The formats are described in http://www.satsleuth.com/GPS_NMEA_sentences.aspx

Peter2121 commented 8 years ago

$GPGGA has no speed field, so another workaround should be used for this format. Finally, it should be stay "as is", there are limitations of NMEA protocol and the realisation of NMEA in OpenGTS.