Google has several semantic ways to log lat, long. The current implementation only imports placeVisit.locations.
Use the following JSon for reference.
{
"timelineObjects" : [ {
"activitySegment" : {
"startLocation" : {
"latitudeE7" : 423712157,
"longitudeE7" : -710801235
},
"endLocation" : {
"latitudeE7" : 423889867,
"longitudeE7" : -710885437
},
"duration" : {
"startTimestampMs" : "1580515266408",
"endTimestampMs" : "1580515754966"
},
"distance" : 2353,
"activityType" : "IN_PASSENGER_VEHICLE",
"confidence" : "HIGH",
"activities" : [ {
"activityType" : "IN_PASSENGER_VEHICLE",
"probability" : 81.76090121269226
}, {
"activityType" : "WALKING",
"probability" : 8.278883248567581
}, {
"activityType" : "STILL",
"probability" : 8.125560730695724
}, {
"activityType" : "CYCLING",
"probability" : 1.0427268221974373
}, {
"activityType" : "IN_BUS",
"probability" : 0.3525716718286276
}, {
"activityType" : "MOTORCYCLING",
"probability" : 0.2875321079045534
}, {
"activityType" : "IN_FERRY",
"probability" : 0.0427420309279114
}, {
"activityType" : "RUNNING",
"probability" : 0.03588703693822026
}, {
"activityType" : "IN_TRAM",
"probability" : 0.028896320145577192
}, {
"activityType" : "IN_TRAIN",
"probability" : 0.024446286261081696
}, {
"activityType" : "FLYING",
"probability" : 0.008416806667810306
}, {
"activityType" : "SKIING",
"probability" : 0.005187333226785995
}, {
"activityType" : "SAILING",
"probability" : 0.00476947971037589
}, {
"activityType" : "IN_SUBWAY",
"probability" : 0.0013954329915577546
}, {
"activityType" : "IN_VEHICLE",
"probability" : 7.47239539578004E-5
} ],
"waypointPath" : {
"waypoints" : [ {
"latE7" : 423710594,
"lngE7" : -710801620
}, {
"latE7" : 423863258,
"lngE7" : -710905609
}, {
"latE7" : 423890876,
"lngE7" : -710887298
} ]
}
}
}, {
"placeVisit" : {
"location" : {
"latitudeE7" : 423890312,
"longitudeE7" : -710873334,
"placeId" : "ChIJ1WFe6dBw44kRJUBchSYYOwQ",
"address" : "192 Broadway\nSomerville, MA 02145\nUSA",
"name" : "Pastelaria Vitoria Broadway",
"sourceInfo" : {
"deviceTag" : 584934457
},
"locationConfidence" : 97.59531
},
"duration" : {
"startTimestampMs" : "1580515754966",
"endTimestampMs" : "1580517709770"
},
"placeConfidence" : "HIGH_CONFIDENCE",
"centerLatE7" : 423890592,
"centerLngE7" : -710873954,
"visitConfidence" : 94,
"otherCandidateLocations" : [ {
"latitudeE7" : 423897552,
"longitudeE7" : -710871984,
"placeId" : "ChIJw2tLwdBw44kRFba_DA_Hx1g",
"locationConfidence" : 0.75358087
}, {
"latitudeE7" : 423890312,
"longitudeE7" : -710873334,
"placeId" : "ChIJSVnC7tBw44kR1oS-EJkqp0Y",
"locationConfidence" : 0.42350954
}, {
"latitudeE7" : 423898700,
"longitudeE7" : -710876090,
"placeId" : "ChIJP5glxdBw44kRc1lm9vWMjJQ",
"semanticType" : "TYPE_SEARCHED_ADDRESS",
"locationConfidence" : 0.2731733
}, {
"latitudeE7" : 423906046,
"longitudeE7" : -710868862,
"placeId" : "ChIJaTaVStdw44kRTKBU4LdaEGw",
"locationConfidence" : 0.24667592
} ],
"editConfirmationStatus" : "NOT_CONFIRMED"
}
}, {
"activitySegment" : {
"startLocation" : {
"latitudeE7" : 423888999,
"longitudeE7" : -710879550
},
"endLocation" : {
"latitudeE7" : 423916225,
"longitudeE7" : -710855273
},
"duration" : {
"startTimestampMs" : "1580517709770",
"endTimestampMs" : "1580518069792"
},
"distance" : 362,
"activityType" : "IN_PASSENGER_VEHICLE",
"confidence" : "MEDIUM",
"activities" : [ {
"activityType" : "IN_PASSENGER_VEHICLE",
"probability" : 74.45971369743347
}, {
"activityType" : "STILL",
"probability" : 15.32638967037201
}, {
"activityType" : "WALKING",
"probability" : 8.971372991800308
}, {
"activityType" : "CYCLING",
"probability" : 0.9968267753720284
}, {
"activityType" : "RUNNING",
"probability" : 0.09207993862219155
}, {
"activityType" : "MOTORCYCLING",
"probability" : 0.06667065899819136
}, {
"activityType" : "IN_FERRY",
"probability" : 0.030013773357495666
}, {
"activityType" : "IN_BUS",
"probability" : 0.027368837618269026
}, {
"activityType" : "SKIING",
"probability" : 0.016939605120569468
}, {
"activityType" : "IN_TRAM",
"probability" : 0.004777643334819004
}, {
"activityType" : "FLYING",
"probability" : 0.003842801379505545
}, {
"activityType" : "SAILING",
"probability" : 0.0028253632990526967
}, {
"activityType" : "IN_TRAIN",
"probability" : 0.001140081076300703
}, {
"activityType" : "IN_SUBWAY",
"probability" : 3.529360412812821E-5
}, {
"activityType" : "IN_VEHICLE",
"probability" : 8.94935823225751E-6
} ],
"waypointPath" : {
"waypoints" : [ {
"latE7" : 423890037,
"lngE7" : -710881652
}, {
"latE7" : 423910942,
"lngE7" : -710867080
}, {
"latE7" : 423918151,
"lngE7" : -710858764
} ]
}
}
}
]}