English 中文(简体)
修改google 地图高海拔返回数据
原标题:modifying google maps elevation return data

我想知道是否有一种更可取的方法来略微修改谷歌地图 v3 梯度的海拔数据返回结果。 如果给两个点,每个点有一个拉特/升, i 愿意给每个点加20米。 如果下面的回答是一个点的高度,

{
  "status": "OK",
  "results": [ {
    "location": {
      "lat": 45.371093,
      "lng": -114.381159
    },
    "elevation": 2255.52
  } ]
}

我正想修改上面的返回结果-- 高端关键数据。 我似乎找不到或想不出任何其他方法。 它似乎有效,但感觉像是黑客。

最佳回答

可以理解的是,对乱用你从谷歌收集的数据感到有些不自在,但我认为你对这个案例没有意见。每当我同样关注的时候,我通过确保两件事来检查自己:

  1. You must remain solidly within the TOS constraints (which you say you have)
  2. You must try to make sure that you: Don’t modify objects you don’t own.

在您的假想中,您可以从谷歌中检索到一套 JSON 数据,只要您不修改数据,然后将其传递给用户(或者,如果修改过,请说明已经修改过),您可以自由地使用结果数据,以满足一项要求,或在谷歌地图 < /坚固 > 中执行“坚固”使用案例。

在您的假想中, Elegation Service 的响应已简单成为应用程序状态数据,您正在使用这些数据来做一些计算。这是一个完全独立的数据集,如果需要,您总是可以再次检索数据。谷歌不会以 JavaScript 库、 地图图纸覆盖, 甚至图像文件的同样方式被谷歌所覆盖。 许多应用程序都呼叫 Geocoder 或呼叫 Places API, 然后调整数据为: 改变地图的界限, 设置地图的中心, 添加在天上生成的自定义覆盖到地图上 - 全部基于以某种方式调整的结果数据 。

当然, 您不能更改数值, 然后在 < code> InfoWindow 中显示这些数值, 或者将其用作标记标签; 在这些情况下, 您正在向用户提供数据 。 只要您留在托盘的好一边, 并且不玩弄自己不拥有的东西, 您就会觉得自己没事 。

问题回答

暂无回答




相关问题
Why do I get "map.set_center is not a function"?

This code have been working until I updated last night. The code works perfectly on my localhost, but I get an error on my test server. The error message (from Firebug) is "map.set_center is not a ...

The state of GMaps v3

I m about to start a Google map based project and am wondering if the release version of GMaps v3 has most of the features that are available in v2, or if it would be best to stick with v2 for now. Is ...

Bouncy marker in Google Maps v3

In Google Maps API v2 we can set to marker an option bouncy:true. It adds to marker eye-candy ability - after dragging this marker, it is bouncing. Is it possible to do in API v3 ?

GUnload() a single Google Map

I ve got some Javascript/HTML code which displays a variable number of maps dependent on what the user selects. I ve worked how to dynamically create multiple maps on a page - that s well documented. ...

How to change Gmap markers color?

I ve a custom google map with different points: Markers[0] = new Array(new GMarker(new GLatLng(45.0, 9.0)), "Location1", "<strong>Address Line</strong><br/>Some information"); ...

热门标签