Some Bits: Nelson's log

GPSLogger detailed notes

I’ve been running Mendhak’s GPS Logger for a few weeks now on Android. It’s good! Some details on precisely what it’s logging. I’m using this as notes for building my own GPS tracker for Wanderings. GPS Logger is good but I think it’s better to have a custom one for us.

Bottom line: the CSV format is most complete, GeoJSON has most of what you’d want in a GIS-friendly format. It logs points once a minute by itself in a mix of network and GPS modes. When a location tracking app like Google Maps is also running, GPS logger will logs points as often as once a second. Now the details...

Some of this is configuration dependent; I have it set to Log all 3 sources: GPS/GNSS, network (cell/wifi), and also passive (other apps). Logging once a minute, GPS not turned on between fixes, no distance filter. Accuracy filter dialed down to 200 meters. 60 seconds to get an accurate fix, 120 second timeout on the GPS fix. I’m logging simultaneously to GPX 1.0, CSV, and GeoJSON.

Most of this data comes from 2017-05-26, when I started in Hickory, NC and flew home to San Francisco, CA. Most of these observations are based on the CSV file which the author has said is the most comprehensive.

The data files are one-per-day. They seem to contain data from local midnight to local midnight. There are sometimes gaps of several hours, I believe related to low power / sleep modes in the phone. Particularly common in the middle of the night when I’m not moving.

On 2017-05-26 the CSV file has 6975 data points.

When I’m sitting idle in my hotel most of the fixes are of type “network”. There’s typically one entry per minute (with frequently two duplicated rows). The CSV file for those populates time, lat, lon, elevation, accuracy (typically around 20), and battery. Occasionally a fix of type “gps” also shows up; those have an accuracy of about 10. They also add bearing and speed, although when not moving those are presumably nonsense. Also HDOP VDOP PDOP and GeoidHeight, GPS-specific measurements. There’s a field for ‘satellites’ but it always seems to be 0.

Once I start driving around 14:50Z I also turned on Google Maps for routing. At that point all the fixes switch to GPS and I’m getting one a second. Accuracy is around 3 and satellites still 0; no HDOP/VDOP etc though. Plausible bearing and speed data. I’m guessing these are points GPS Logger got passively? This pattern is repeated a second time on a longer drive. Google Maps for navigation again then although I’d made an effort to turn the screen off for part of the drive.

During my flight from CLT to SFO I had the phone in airplane mode and in various pockets, etc with varying ability to see the sky. GPS Logger seems to be trying to record 1 point a minute. When it succeeds there’s two duplcate rows in the CSV, one with HDOP/VDOP data and one without. Altitude, speed, and bearing all look plausible. I mostly have no data from when I had the phone in my pants’ pocket; shirt pocket is better for obvious reasons.

Last bit of the day was me in an Uber, no Google Maps running. Odd mix of GPS and Network fixes about once a minute. It’s possible the Uber app was doing location tracking in the background, I’m not sure.

The 2019-07-26 GeoJSON file also has 6975 data samples in it. Every point has lat, lon, time, time_long, provider, accuracy. Almost every point has altitude (6759), 5032 have speed, 4094 have bearing.

The GPX 1.0 file also has 6975 data samples in it. lat, lon, elevation, time, and provider for almost all points. course and speed for GPS points also. There is no accuracy logged.

A special note on elevation: these seem to be WGS84 altitudes, before the geoid correction. (I have Use MSL instead turned off in the app.) That’s putting me underwater frequently in San Francisco, even the points from network sources. Need to think more carefully about geoid correction if I want to use this data.

Summary of all fields available by log type:

  • lat / lon: all
  • time: all
  • provider: all
  • accuracy: csv, geojson
  • altitude: all
  • speed / bearing: all (GPS source only?)
  • battery: csv
  • hdop/vdop/pdop: csv
  • GPS satellites: none (csv has them, but always 0)
  • GeoidHeight: csv