Skip to content

Location History

KNSG edited this page Nov 16, 2019 · 1 revision

1. Location History (JSON)

  • location logs with estimated activities
  • Takeout provides location logs as JSON or KML format, here is JSON
{
  "locations": [
    {
      "timestampMs": "1486110600090",
      "latitudeE7": 356617253,
      "longitudeE7": 1396787215,
      "accuracy": 8,
    },
    {
      "timestampMs": "1486105895000",
      "latitudeE7": 356617327,
      "longitudeE7": 1396785506,
      "accuracy": 8,
      "velocity": 0,
      "heading": 145,
      "altitude": 98,
      "activity": [
        {
          "timestampMs": "1486105892533",
          "activity": [
            {
              "type": "still",
              "confidence": 75
            },
            {
              "type": "onFoot",
              "confidence": 10
            },
            {
              "type": "inVehicle",
              "confidence": 5
            },
            {
              "type": "onBicycle",
              "confidence": 5
            },
            {
              "type": "unknown",
              "confidence": 5
            },
            {
              "type": "walking",
              "confidence": 5
            },
            {
              "type": "running",
              "confidence": 5
            }
          ]
        }
      ]
    }
  ]
}
  • locations : (array/object) location point array
  • timestampMs : (string) timestamp in msec
  • latitudeE7 : (integer) latitude value in integer. latitudeE7 / 10,000,000 = latitude in degree
  • longitudeE7 : (integer) longitude value in integer. longitudeE7 / 10,000,000 = longitude in degree
  • accuracy : (integer) accuracy value defined in Android SDK? Android SDK
  • velocity : (integer) velocity value (m/s or km/h?). sometimes missing
  • heading : (integer) heading direction ? (0 - 360 deg?)
  • altitude : (integer) altitude value (m?). sometimes missing
  • verticalAccuracy : (integer) vertical accuracy ?
  • activity : (array/object) estimated activity or transportation mode. (JSON key was updated from activitys to activity)
    • timestampMs : (string) timestamp in msec.
    • activity : (array/object) activity contents (JSON key was updated from activities to activity)
      • type : (string) activity type. (e.g. still, onFoot, walking, running, inVehicle, onBicycle, unknown, ...)
      • confidence : (integer) confidence value of estimation ?
Clone this wiki locally