Convert NMEA (latitude, longitude) to Decimal

What is NMEA?

NMEA is an acronym for the National Marine Electronics Association. NMEA existed well before GPS was invented. According to the NMEA website, the association was formed in 1957 by a group of electronic dealers to create better communications with manufacturers. Today in the world of GPS, NMEA is a standard data format supported by all GPS manufacturers, much like ASCII is the standard for digital computer characters in the computer world.

Source: https://www.gpsworld.com/what-exactly-is-gps-nmea-data/

 

The below code snippet shows, how to convert latitude and longitude gained from an NMEA sentence into decimal format.

Examples:

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *


*

Please wrap all source codes with [code][/code] tags.

This site uses Akismet to reduce spam. Learn how your comment data is processed.