could be done by hand parsing all the strings, but http://catb.org/gpsd/ does it probably better and with less hassle