Hi guys,
I got from a GPS device, a string including lat and long coordinates but it is not in a format that GETLOCATION recognize.
It looks like "...,4648.914,N,7113.7715,W,..."
What can I do with it? Formulas?
This is a discussion on GPS coordinates within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi guys, I got from a GPS device, a string including lat and long coordinates but it is not in ...
Hi guys,
I got from a GPS device, a string including lat and long coordinates but it is not in a format that GETLOCATION recognize.
It looks like "...,4648.914,N,7113.7715,W,..."
What can I do with it? Formulas?
Hi,
This is NMEA0183 format. To compute it into the format mappoint need is very simple. I explain:
The format you have is for latitude:
ddmm.ffff
and for longitude:
dddmm.ffff
and N/S, E/W is the hemishpere.
dd(d) are the degrees
mm are the minutes
ffff are the fractions of the minutes
So you exctract the degrees (2 char's for latitude, 3 for longitude) and add them to a double. Then you thake the minutes including fractions (watch that the decimal separator mach your computer's locales or workaround it), divide it by 60 and add it to the degrees.
Then check the hemishpere. S - beyond equator so latitude = -latitude, and W is left of meridiane, so longitude = - longitude.
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)