Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

 Subscribe to receive our newsletter. Subscribe Unsubscribe

## NMEA latitude/longitude and mappoint latitude/longitude

This is a discussion on NMEA latitude/longitude and mappoint latitude/longitude within the MapPoint Desktop Discussion forums, part of the Map Forums category; I logt some nmea data from my gps: \$GPRMC,123507.831,A,5319.7040,N,00600.7888,E,0.00, 329.39,080303,,*05 5319.7040 is latitude, 00600.7888 is longitude. how can i convert ...

1. Junior Member White Belt
Join Date
Mar 2003
Posts
4

## NMEA latitude/longitude and mappoint latitude/longitude

I logt some nmea data from my gps:
\$GPRMC,123507.831,A,5319.7040,N,00600.7888,E,0.00, 329.39,080303,,*05

5319.7040 is latitude, 00600.7888 is longitude. how can i convert this to mappoint latitude/longitude?

when i put 53,19 as latitude and 6 as longitude in mappoint it is not the right location.
so what is the formule to convert it?

2. Junior Member White Belt
Join Date
Mar 2003
Posts
7
Thats quite easy...!!

You need to read \$GPGLL instead of \$GPRMC

See the definition below for the Latitude and Logitude encoding in the GPGLL syntax:

\$GPGLL
Geographic Position, Latitude / Longitude and time.

eg1. \$GPGLL,3751.65,S,14507.36,E*77
eg2. \$GPGLL,4916.45,N,12311.12,W,225444,A

4916.46,N Latitude 49 deg. 16.45 min. North
12311.12,W Longitude 123 deg. 11.12 min. West
225444 Fix taken at 22:54:44 UTC
A Data valid

eg3. \$GPGLL,5133.81,N,00042.25,W*75
1 2 3 4 5

1 5133.81 Current latitude
2 N North/South
3 00042.25 Current longitude
4 W East/West
5 *75 checksum

\$--GLL,lll.ll,a,yyyyy.yy,a,hhmmss.ss,A llll.ll = Latitude of position

a = N or S
yyyyy.yy = Longitude of position
a = E or W
hhmmss.ss = UTC of position
A = status: A = valid data

U use String manipulation to extract the Lat Long. Be careful to use the North/South or East/West to convert the Value to +/- or +/- respectively.

The you need to process the Latitude Longitue values to the Mappoint format.

You can do that by using the mechanism descibed by Vic in http://mp2kmag.com/mappoint/discussi...&highlight=wgs

dRetVal = Int(sNMEA / 100) + (sNMEA - Int(sNMEA / 100) * 100) / 60

Select Case sTmp
Case "N"
'dRetVal = dRetVal
Case "S"
dRetVal = "-" & dRetVal
Case "E"
'dRetVal = dRetVal
Case "W"
dRetVal = "-" & dRetVal
End Select

<Result to be plotted on Mapoint>= dRetVal

Where sNMEA is the Lattitude or Logitude read from the GPS and sTmp is a string value representing N/S or E/W for latitude or Longitude respectively!!

You need to run the above conversion for latitude and longitude and the resultant location should be accurate enough to be plotted in Mappoint.

Interestingly.. I just figured that out this morning at 5 am :)

Let me know if you ned more help... Oh BTW the GPS should be configured to provide information in WGS 84 datum.

Cheers,
John

3. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137
it works. thanks the problem was that i had to exchange the . in the string with an , because of my windows settings

4. Senior Member Black Belt
Join Date
Jul 2002
Posts
5,137

## why?

You need to read \$GPGLL instead of \$GPRMC

why? is it different data ?

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•