I am writing a program that receives data in the form of GPRMC NMEA sentences and outputs them as indicated by GTFS-realtime.
GTFS-realtime wants to have the value "bearing" and describes it as such:
Bearing in degrees clockwise from the True North, i.e. 0 is North and 90 is East. This may be a compass bearing or direction to the next stop or an intermediate location. This should not be inferred from the sequence of previous positions that customers can calculate from previous data.
The GPRMC NMEA proposals contain three fields that I think are relevant, but my research has revealed many ideas about what they are:
Track angle in degrees True , Course Made Good, True , Track made good in degrees TrueMagnetic Variation , Variation , Magnetic variation degrees (Easterly var. subtracts from true course)Magnetic Variation , East/West , E or W
For completeness, here is the full GPRMC offer, with the corresponding fields in bold:
$GPRMC,123519,A,4807.038,N,01131.000,E,022.4, 084.4 ,230394, 003.1 , W *6A
How can I get real-time GTFS output from the GPRMC NMEA offer?
source share