Extfiltrating Google Location History from Timeline

前端 未结 2 422
予麋鹿
予麋鹿 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. <when>2015-09-01T12:15:37.836-07:00</when>

    So your requests may need to take that into account.

    0 讨论(0)
  • 2021-01-31 12:56

    This will give the latest points, I believe:

     https://www.google.com/maps/timeline/kml
    
    0 讨论(0)
提交回复
热议问题