• Welcome to Valhalla Legends Archive.
 

GPS Latitude and Longitude values

Started by FrOzeN, June 04, 2007, 01:47 AM

Previous topic - Next topic

FrOzeN

Seeing all these GPS devices everywhere these days, I assume it's fairly easy to acquire the lat/long values of your current location. I was curious if anyone here has worked with, or has any idea on how to get them. On an old laptop I have I thought it'd be fun to feed the lat/long values into it and read them through USB (or anything) then play around with them in a program I'd like to make.
~ FrOzeN

Skywing

I would recommend consulting Google on the subject; there's a lot of information out there.  Most consumer GPS devices either connect to a serial port, or use a powered USB-to-serial converter and show up as a serial port on the computer they are connected to.

The above mentioned Google query should get you started on how to process the data as represented by most GPS devices.

K

I have done some work with GPS (in embedded devices);  if all you are interested in is getting the latitude and longitude from the unit, all you need to do is wait for and  parse the NMEA GGA sentence .

If you want to do more advanced things, you will need to switch into SiRF mode, which is a binary protocol.

The following may or may not be helpful:
C# Code to compute/validate a NMEA checksum
SiRF Protocol Reference
NMEA Reference Manual