MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




NMEA latitude/longitude and mappoint latitude/longitude

This is a discussion on NMEA latitude/longitude and mappoint latitude/longitude within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-08-2003
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-08-2003
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-09-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
it works. thanks the problem was that i had to exchange the . in the string with an , because of my windows settings
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 11-22-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
why?

You need to read $GPGLL instead of $GPRMC


why? is it different data ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/nmea-latitude-longitude-mappoint-latitude-longitude-1275.html

Posted By For Type Date
gprmc online Mapping | VIRGILIO Ricerca | Web This thread Refback 3 Weeks Ago 09:45 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to get latitude and longitude ma2005pp MapPoint 2006/2009 Discussion 3 09-28-2005 01:57 AM
Mappoint, postcode to longitude and latitude jimbob MapPoint 2006/2009 Discussion 3 01-16-2005 08:08 AM
GPS Longitude and Latitude does not agree with MapPoint westbrooks MapPoint 2006/2009 Discussion 1 02-29-2004 05:20 PM
Can Mappoint 3.0 SDK return Latitude Longitude coordinates? Anonymous MapPoint 2006/2009 Discussion 1 01-27-2004 05:56 PM
Latitude and Longitude Anonymous MapPoint 2006/2009 Discussion 1 11-25-2003 12:52 PM


All times are GMT -5. The time now is 09:08 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Three Valleys France
The Three Valleys in France have a great reputation for great skiing. Holiday Hypermarket has just added another reason for you to go, a range of great prices from top travel operators.

Greece Weather
Check Turkey Weather before you travel. We provide information on Turkey including weather, flights and accommodation.

Holidays Jamaica
Holidays to Jamaica are a great way to immerse yourself in a different culture. Soak up some sun, indulge in some shopping, and relax at a beach resort. Use dealchecker.co.uk.

Holidays in Cyprus
Holidays in Cyprus are enriched by the abundance of churches, ruins and natural wonders. Book a holiday with us today!

Cheap Portugal Holidays
Want to know what the best time to book cheap Portugal holidays is? Well have a look on ulookubook.com for some useful information to save your cash. Golf, tennis and cycling are all very popular here.

Family activity holidays
Family holidays can be full of fun activity. Check out your options at Travel.co.uk

Cheap Sharm el Sheikh Holidays
Visit the Red Sea Riviera! Info on cheap Sharm el Sheikh holidays, found at On The Beach.


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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51