It may be more interesting to use data from $GPRMC NMEA sentences to obtain speed directly from GPS output, instead of processing it based on two consecutive location updates : http://aprs.gids.nl/nmea/#rmc (speed over ground, knots). The rationale is that NMEA updates from ModemManager over DBUS are scheduled every 30 seconds, even if the NMEA stream from hardware is updated more frequently. In such case, processing information obtained from previous location will provide an average speed over the last 30 secs, while $GPRMC data may provide an instantaneous speed every 30 secs.
Also heading. :)
The heading from the GPS is the heading of the course. If you were stopped and turned your device, you wouldn't see good enough information. We can read magnetic variation in that NMEA sentence though.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/geoclue/geoclue/issues/48.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.