【问题标题】:Google api to fetch the location history of a userGoogle api 获取用户的位置历史记录
【发布时间】:2014-01-07 19:34:08
【问题描述】:

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

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

但是 google 是否提供了一个 api,通过它我们可以通过应用程序访问此用户历史记录,我认为 google latitude 只习惯了这种情况,但我不确定它是否会以任何方式关闭。

【问题讨论】:

    标签: google-maps google-api google-latitude


    【解决方案1】:

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

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

    【讨论】:

      【解决方案2】:

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

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

      【讨论】:

        【解决方案3】:

        我在 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);
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2022-09-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多