什么原因?哪位知道?
On 3月11日, 下午7时38分, Fei Chen <phinix.c...@gmail.com> wrote:
> 最好使用域名注册API密钥,不要使用IP注册
>
> 2009/3/11 @@ <ask...@gmail.com>
>
>
>
>
>
> > 你访问的时候是通过这个ip来访问的吗?
>
> > 2009/3/6 fireflyc <firef...@gmail.com>
> > >> ABQIAAAAaMEXiDlKmhgnTKgmfok6GRSgigK_a4swfpoiI__BB1n3bV0x4hSbaGISB5TowMd67UV-KGuegzs371w
>
> > >> 什么原因?哪位知道?- 隐藏被引用文字 -
>
> - 显示引用的文字 -
google地图服务器API服务器拒绝了你的请求,原因,本站所用的API密钥已经由另一网站抢注。
为什么会这样呢?第一次申请啊
我找到了一个解决办法:
查找下面的字符串
sensor=true_or_false&
然后删除。
这样这个提示就没有了。
我已经测试通过。
Use of the Google Maps API now requires that you indicate whether your application is using a
sensor (such as a GPS locator) to determine the user's location. This is especially important for
mobile devices. Applications must pass a required sensor parameter to the
<script> tag when including the Maps API javascript code, indicating whether or not
your application is using a sensor device.
Applications that determine the user's location via a sensor must pass&sensor=true
when loading the Maps API JavaScript via either the http://maps.google.com/maps
or with the Common Loader.
Note that even if your device does not use a sensing device, you must still pass this parameter, setting
its value to false.
目前拷贝注册api时生成的javascript脚本代码时需要注意这个问题。
因为目前生成的脚本代码对于sensor的设置是不正确的,同时javascript的错误提示也不太对应。
不方便找到原因。
On 4月7日, 上午10时15分, Fei Chen <phinix.c...@gmail.com> wrote:
> 2009/4/3 wenxin.ren <calid...@gmail.com>
>
> > 我找到了一个解决办法:
> > 查找下面的字符串
> > sensor=true_or_false&
> > 然后删除。
> > 这样这个提示就没有了。
> > 我已经测试通过。
>
> sensor是一个必须要有的参数,如果你的API应用没有使用传感器设备,简单设置sensor=false即可,不建议去掉
>
> 下面是文档中关于这个参数的说明:
>
> Use of the Google Maps API now requires that you indicate whether your
> application is using a sensor (such as a GPS locator) to determine the
> user's location. This is especially important for mobile devices.
> Applications must pass a required sensor parameter to the <script> tag when
> including the Maps API javascript code, indicating whether or not your
> application is using a sensor device.
>
> Applications that determine the user's location via a sensor must pass
> &sensor=true when loading the Maps API JavaScript via either thehttp://maps.google.com/mapsor with the Common Loader.
还是没有解决方案吗?
> > &sensor=true when loading the Maps API JavaScript via either thehttp://maps.google.com/mapsorwith the Common Loader.
> > > &sensor=true when loading the Maps API JavaScript via either thehttp://maps.google.com/mapsorwiththe Common Loader.