9

我正在寻找一个 google api 来获取用户位置历史记录,我知道 google 正在存储用户位置历史记录,我们能够从 -

https://maps.google.com/locationhistory/b/0

但是谷歌是否提供了一个api,我们可以通过它通过一个应用程序访问这个用户历史记录,我认为谷歌纬度只习惯了这一点,但我不确定它是否会被关闭。

4

3 回答 3

6

据我所知,没有 API 可以实现您所追求的。我什至认为 latitude API 没有为其他用户提供跟踪。

从逻辑上讲,如果它确实存在,它可能有点侵犯隐私。大多数人在安装应用程序时不会阅读 T&C 或权限,并且很容易将其用于错误目的。

于 2013-12-19T11:57:00.470 回答
2

尽管没有可供使用的 API,但可以一起构建一个基于 Curl 的脚本,该脚本设置正确的 cookie 并检索 Terence Eden [LINK]所描述的内容。

另一种方法 - 虽然不太适合应用程序 - 是创建您的 Google 帐户信息的存档(仅选择位置历史信息以使其保持较小),然后获取包含所有位置信息的 Json 文件。

于 2014-05-27T08:36:42.077 回答
-2

我在 GOOGLE MAP 网站上找到了这个。还有其他类也像多边形。我没有尝试过,但希望它会起作用。

// Instantiates a new Polyline object and adds points to define a rectangle    
 PolylineOptions rectOptions = new PolylineOptions()
            .add(new LatLng(37.35, -122.0))
            .add(new LatLng(37.45, -122.0))      
// North of the previous point, but at the same     
    longitude.add(new LatLng(37.45, -122.2))      
// Same latitude, and 30km to the west    
            .add(new LatLng(37.35, -122.2))      
// Same longitude, and 16km to the south    
            .add(new LatLng(37.35, -122.0));     
// Closes the polyline.    
// Get back the mutable Polylineenter code here
Polyline polyline = myMap.addPolyline(rectOptions);
于 2019-11-19T04:21:55.920 回答