JSON 和 KMLGoogle "Takeout" 位置数据中的经度错误
Bug with Longitude in JSON & KMLGoogle "Takeout" Location data
位置历史数据(从 Google Takeout 下载)在 JSON 和 KML 导出中报告的经度不正确。 纬度正确,但经度显示在 304 到 305 范围内(除以 107 后),而不是它应该的负数我的情况。好像经度数据只是"too high",乘以430(×107).
问题显示在我几天前检索到的 JSON 位置历史记录中;今天我尝试在 JSON
和 KML
中重新生成下载,但两者仍然受到此问题的影响。
大约 4 天前,其他人 here 也报告了同样的问题,但这是我在网上能找到的关于此问题的唯一其他提及。
关于如何进行的想法?
找到一个 solution:(不感谢 Google 这个!)
They seem to have an integer overflow error in preparing the data for
the takeout (downloading the kml directly from google maps for a
specific day works correct).
If the number is greater than 1800000000 (for latitude, also comparing
to 900000000 would work) you need to subtract 2^32 (=4294967296) and
you get the correct latitudeE7 or longitudeE7.
Example:
latitudeE7 = 4233738877 - 4294967296 = -61228419 (= 6.12 South)
longitudeE7 = 1066510714 (= 106.7 East, no conversion here)
位置历史数据(从 Google Takeout 下载)在 JSON 和 KML 导出中报告的经度不正确。 纬度正确,但经度显示在 304 到 305 范围内(除以 107 后),而不是它应该的负数我的情况。好像经度数据只是"too high",乘以430(×107).
问题显示在我几天前检索到的 JSON 位置历史记录中;今天我尝试在 JSON
和 KML
中重新生成下载,但两者仍然受到此问题的影响。
大约 4 天前,其他人 here 也报告了同样的问题,但这是我在网上能找到的关于此问题的唯一其他提及。
关于如何进行的想法?
找到一个 solution:(不感谢 Google 这个!)
They seem to have an integer overflow error in preparing the data for the takeout (downloading the kml directly from google maps for a specific day works correct).
If the number is greater than 1800000000 (for latitude, also comparing to 900000000 would work) you need to subtract 2^32 (=4294967296) and you get the correct latitudeE7 or longitudeE7.
Example:
latitudeE7 = 4233738877 - 4294967296 = -61228419 (= 6.12 South) longitudeE7 = 1066510714 (= 106.7 East, no conversion here)