给出一个google位置历史记录,生成一个工作历史的csv。
location-history-total的Python项目详细描述
位置历史记录总计
给出一个google位置历史记录,生成一个工作历史的csv。
需要Python3.6+。
示例用法
创建一份您感兴趣的文档:
# Format is lat, long, radius # '#' can be used to comment a line out 38.8100121,-104.6792472, 0.04 39.1355552,-121.3484781, 0.1
谷歌地图将方便地确定地点的纬度和经度。
使用google takeout导出您的位置历史记录。
(可选)确定您输入的时间段,并获取开始和停止日期的Unix时间戳
运行脚本假设您的poi位于
area.txt
,则您的位置历史记录位于history.json
,日期范围为2018年10月1日至2019年3月1日:# Dump information to screen location-history-total history.json --area=area.txt --time=1538373600,1551423600 # Or to a CSV location-history-total history.json --area=area.txt --time=1538373600,1551423600 --output=results.csv