Python 如何将long/lat整数从google history JSON转换为google map格式?

Python 如何将long/lat整数从google history JSON转换为google map格式?,python,google-maps,gps,Python,Google Maps,Gps,Google History JSON exporeted api返回两个整数表示纬度和经度,文件如下所示: { "locations" : [ { "timestampMs" : "1525631885005", "latitudeE7" : 511052047, "longitudeE7" : 207459413, "accuracy" : 16 }, ... ] } 我有一个搜索JSON的脚本,我想测试它是否找到了正确的位置,那么我如何将这

Google History JSON exporeted api返回两个整数表示纬度和经度,文件如下所示:

{
  "locations" : [ {
    "timestampMs" : "1525631885005",
    "latitudeE7" : 511052047,
    "longitudeE7" : 207459413,
    "accuracy" : 16
  },
  ...
  ]
}
我有一个搜索JSON的脚本,我想测试它是否找到了正确的位置,那么我如何将这些数字转换成可以复制粘贴到google map web app进行测试的值呢?

latitudeE7和Longtudee7是纬度和经度乘以10e7 10^7

要得到纬度和经度,请将它们除以10e7。即纬度:51.1052047,经度:20.7459413


那将是波兰的布利恩。

谢谢,我刚刚还找到了这个R代码,但它使用的是1e7