当前URL从Google位置历史记录下载KML数据? [英] Current URL To Download KML Data From Google Location History?

查看:184
本文介绍了当前URL从Google位置历史记录下载KML数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在一段时间内以kml下载谷歌位置历史数据。



直到2015年8月26日,这种格式的网址才起作用:

  https://maps.google.com/locationhistory/b/0/kml?startTime=$start_seconds&endTime=$end_seconds 

现在该格式的链接失败。



我怀疑问题与谷歌改变其网站显示位置历史记录的方式,尽管这一变化发生在7月22日前近一个月。



在谷歌产品论坛<上的评论者建议这样做:


他KML代可以做多天,所以只需编辑URL



例如
https://www.google.co m / maps / timeline / kml?authuser = 0& pb =!1m8!1m3!1i2015!2i7!3i1!2m3!1i2015!2i7!3i8
给出7天。


突出显示日期的部分:
pb =!1m8!1m3!1i 2015年!2i 7
3i 8 !2m3!1i 2015 !2i 7 !3i 8



注意这个月是以零为基础的,所以一个正常的,0 = 1月,11 = Dec

评论者错误地认为上述链接提供了七天。它似乎只给出三个,但也许这个评论者是在正确的轨道上。



我已经为评论者的网址中的字段尝试了不同的值,这些值与日期相关不明显,但尚未找到能够返回带有数据的kml文件的URL我有几张使用位置历史记录数据的地图,它们现在全部坏掉了。



编辑:这里有一个类似的问题:从时间线上浏览Google位置记录

解决方案

转至 https: //takeout.google.com/settings/takeout 并仅选择位置记录和KML格式。点击下一步,然后点击创建档案。
过了一段时间,它会让你下载一个带有KML格式的位置历史记录的压缩文件。



我试过并能够下载更多比我一年的地点还要多:我可能在一年多前选择了位置历史记录服务......


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

解决方案

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...

这篇关于当前URL从Google位置历史记录下载KML数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆