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
Results 1 to 4 of 4

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. #1
    muurman is offline 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. #2
    sm176811 is offline 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
    Sitting still and wishing makes no person great..
    The good lord and sent you fishing but you should dig the bait!!

  3. #3
    Anonymous is offline 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. #4
    Anonymous is offline 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 ?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to get latitude and longitude
    By ma2005pp in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-28-2005, 02:57 AM
  2. Mappoint, postcode to longitude and latitude
    By jimbob in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-16-2005, 09:08 AM
  3. GPS Longitude and Latitude does not agree with MapPoint
    By westbrooks in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-29-2004, 06:20 PM
  4. Can Mappoint 3.0 SDK return Latitude Longitude coordinates?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-27-2004, 06:56 PM
  5. Latitude and Longitude
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-25-2003, 01:52 PM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27