TinyGPS.h compatibility

so my question : Is TinyGPS.h header file compatible with all the arduino gps shields??

Which gps.h header file? I don't see one included with Arduino and I don't think there is an official Arduino GPS Shield.

Most GPS units use NMEA messages to report data to the host. Most GPS libraries will parse some combination of these NMEA messages. There is a good chance that any GPS library you find will work with any GPS module you use, but no guarantee unless the library is provided by that same vendor as the CPS module.

sorry it was "TinyGPS.h" found on this link TinyGPS | Arduiniana

The TinyGPS library parses the $GPGGA and $GPRMC NMEA messages so it should work with many if not all GPS modules and GPS shields.

$GPGGA - Global Positioning System Fix Data


hhmmss.ss = UTC of position
llll.ll = latitude of position
a = N or S
yyyyy.yy = Longitude of position
a = E or W
x = GPS Quality indicator (0=no fix, 1=GPS fix, 2=Dif. GPS fix)
xx = number of satellites in use
x.x = horizontal dilution of precision
x.x = Antenna altitude above mean-sea-level
M = units of antenna altitude, meters
x.x = Geoidal separation
M = units of geoidal separation, meters
x.x = Age of Differential GPS data (seconds)
xxxx = Differential reference station ID

$GPRMC - Recommended minimum specific GPS/Transit data

225446 Time of fix 22:54:46 UTC
A Navigation receiver warning A = OK, V = warning
4916.45,N Latitude 49 deg. 16.45 min North
12311.12,W Longitude 123 deg. 11.12 min West
000.5 Speed over ground, Knots
054.7 Course Made Good, True
191194 Date of fix 19 November 1994
020.3,E Magnetic variation 20.3 deg East
*68 mandatory checksum