Extfiltrating Google Location History from Timeline

前端 未结 2 423
予麋鹿
予麋鹿 2021-01-31 12:01

Note, due to changes to Google\'s \"Timeline\" this previous answer no longer works.


Google offers a \"Timeline\" service which allows users to access their phon

2条回答
  •  日久生厌
    2021-01-31 12:46

    According to this question - Current URL To Download KML Data From Google Location History? - the URL format is:

    Eg https://www.google.com/maps/timeline/kml?authuser=0&pb=!1m8!1m3!1i2015!2i7!3i1!2m3!1i2015!2i7!3i8 gives 7 days.

    Highlighting the parts of the date: pb=!1m8!1m3!1i2015!2i7!3i8!2m3!1i2015!2i7!3i8

    Note the month is zero based, so one off normal, 0=Jan, 11=Dec

    So, in order to get today's date (2015-09-01) the URL needs to be

    https://www.google.com/maps/timeline/kml?authuser=0&pb=!1m8!1m3!1i2015!2i8!3i1!2m3!1i2015!2i8!3i1

    i.e.

    pb=!1m8!1m3!1iYYYY!2iMM!3iDD!2m3!1iYYYY!2iMM!3iDD

    Where MM is a Javascript style zero-based month.

    Within the KML, the times are West Coast USA - e.g. 2015-09-01T12:15:37.836-07:00

    So your requests may need to take that into account.

提交回复
热议问题