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.googl
Go to https://takeout.google.com/settings/takeout and select only "Location History" with "KML format". Click "Next" and, then, "Create archive". After a while it will let you download a zip file with your (presumably entire) location history in KML format.
I tried and was able to download more than one year of my locations: I probably opted in the Location History service a little more than one year ago...
Undocumented changes to stable Google geo products are why I've been moving my personal and work projects from Google to open source products like Leaflet.
I've also been trying to figure how to get old-school location history kmls, but I'm not having any luck. The kml header information reflects that you have asked it to download a longer period of time, but it only actually includes placemarks for a few days.
A short term workaround is to download this app: https://play.google.com/store/apps/details?id=com.homedev.locationhistory
It's able to download 1-7 days of history, which you can then export as a kml. I'm not sure if the devs have cracked the url formatting or if they just loop through the short timespan data several times to make it look like it is downloading a week at a time.
Looks like that the maximum date range is 5 days. If I request the bigger period it returns me kml without any coordinates. Is there any way to get the entire location history?
You could use the Timeline exporter Google Chrome plugin. It enables you to view, filter and export your Google timeline data for a selected time span.