I need to download google location history data in kml for a period of time.
Up until August 26, 2015, a URL in this format worked:
https://maps.google.com/locationhistory/b/0/kml?startTime=$start_seconds&endTime=$end_seconds
Now a link in that format fails.
I suspect the problem is related to google changing the way its website displays location history, though that change happened nearly a month earlier on July 22.
A commenter on the google products forum suggested this:
[T]he KML generation can do multiple days, so just edit the URL
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
The commenter is wrong that the above link gives seven days. It appears to only give about three, but perhaps the commenter is on the right track.
I have tried different values for the fields in the commenter's URL that are not obvious date-related but have not been able to find a URL that returns a kml file with data for more that a few days.
I have several maps that use location history data, they are now all broken.
Edit: There's a similar question here: Extfiltrating Google Location History from Timeline