jfill89
asked on
Convert NMEA Lat and Lon to........
I need to convert NMEA Lat and Lon values to.....well I don't know. I need to convert them to the typical format I am used to seeing.
Right now I am getting them in the following formats:
Latitude, ddmm.mmmm format.
Longitude, dddmm.mmmm format.
I need to put them in the format traditional people are used to seeing:
Like:
lat ="42.938660";
long="-85.486363";
Can you help me or point me to the formula for this.
Thanks
jfill
Right now I am getting them in the following formats:
Latitude, ddmm.mmmm format.
Longitude, dddmm.mmmm format.
I need to put them in the format traditional people are used to seeing:
Like:
lat ="42.938660";
long="-85.486363";
Can you help me or point me to the formula for this.
Thanks
jfill
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes you can...... -ve Longitude means you are in west.... and you will be receiving your longitudes as xxx.xxxxW
Imran
Imran
ASKER
lat ="42.938660";
long="-85.486363";
And going to:
lat ="42.907554";
long="-85.512090";
If I look at the data coming in it is not returning the long as a negitive number? It is returning it as a positive. Do I just need to mult. by -1??
jfill