为什么老实提示“google地图服务器API服务器拒绝了你的请求”

103 views
Skip to first unread message

fireflyc

unread,
Mar 6, 2009, 4:03:09 AM3/6/09
to 谷歌地图 API 中文论坛
google地图服务器API服务器拒绝了你的请求,原因,本站所用的API密钥已经由另一网站抢注。
无论我的key应该是没有问题的
http://192.168.2.34/
google为我生成了
ABQIAAAAaMEXiDlKmhgnTKgmfok6GRSgigK_a4swfpoiI__BB1n3bV0x4hSbaGISB5TowMd67UVKGuegzs371w

什么原因?哪位知道?

@@

unread,
Mar 11, 2009, 5:36:54 AM3/11/09
to Google-Map...@googlegroups.com
你访问的时候是通过这个ip来访问的吗?

2009/3/6 fireflyc <fire...@gmail.com>

Fei Chen

unread,
Mar 11, 2009, 7:38:04 AM3/11/09
to Google-Map...@googlegroups.com
最好使用域名注册API密钥,不要使用IP注册

2009/3/11 @@ <ask...@gmail.com>

Brightman

unread,
Mar 12, 2009, 2:32:22 AM3/12/09
to 谷歌地图 API 中文论坛
我也出现这样的错误,我是拿域名注册密钥的

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>

C.Little

unread,
Mar 30, 2009, 4:44:52 AM3/30/09
to 谷歌地图 API 论坛
我也是用域名申请的,但是老是提示我去重新生成,从哪里生成啊??

> > >> ABQIAAAAaMEXiDlKmhgnTKgmfok6GRSgigK_a4swfpoiI__BB1n3bV0x4hSbaGISB5TowMd67UV-KGuegzs371w
>
> > >> 什么原因?哪位知道?- 隐藏被引用文字 -
>
> - 显示引用的文字 -

ncu...@gmail.com

unread,
Mar 31, 2009, 5:56:50 AM3/31/09
to 谷歌地图 API 论坛
我的也出现了这个问题,

google地图服务器API服务器拒绝了你的请求,原因,本站所用的API密钥已经由另一网站抢注。


为什么会这样呢?第一次申请啊

wenxin.ren

unread,
Apr 3, 2009, 11:27:42 AM4/3/09
to 谷歌地图 API 论坛
确实有这个问题。
用域名注册也会出现问题。

wenxin.ren

unread,
Apr 3, 2009, 11:44:46 AM4/3/09
to 谷歌地图 API 论坛
我找到了一个解决办法:
查找下面的字符串
sensor=true_or_false&amp;
然后删除。
这样这个提示就没有了。
我已经测试通过。

Fei Chen

unread,
Apr 6, 2009, 10:15:54 PM4/6/09
to Google-Map...@googlegroups.com


2009/4/3 wenxin.ren <cali...@gmail.com>

我找到了一个解决办法:
查找下面的字符串
sensor=true_or_false&amp;
然后删除。
这样这个提示就没有了。
我已经测试通过。

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 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.

更多信息可以参考:
http://code.google.com/apis/maps/documentation/#SpecifyingSensor

http://code.google.com/apis/maps/faq.html#tos_reporting

 

wenxin.ren

unread,
Apr 7, 2009, 1:42:50 AM4/7/09
to 谷歌地图 API 论坛
谢谢。
下面我把sensor的一些情况介绍一下。
sensor这个参数是新版本的API添加的功能。
旧版本的暂时没有影响。
但是新申请的还是必须要添加的。
senor主要用于表明网站是不是采用包含了一些定位的硬件设备,如GPS,WIFI,手机的Cell ID来定位。
目前适用于javascript 版本的地图API与静态地图API。flash版本的暂不提供。
请注意,由于最近才引入传感器参数,因此之前存在的网站不会因无法定义参数而被禁用。但是要求开发人员尽快开始报告参数。
所以将原来的sensor=true_or_false修改成
正面的情况:
如果是普通网站:sensor=false
如果是浏览的用户带有定位功能的网站:sensor=true(如果专门为IPHONE的GPS功能开发的网站)

目前拷贝注册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&amp;
> > 然后删除。
> > 这样这个提示就没有了。
> > 我已经测试通过。
>
> 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.

threem0126

unread,
May 7, 2009, 11:17:30 PM5/7/09
to 谷歌地图 API 论坛
我们也遇到这个问题了

还是没有解决方案吗?

> > &sensor=true when loading the Maps API JavaScript via either thehttp://maps.google.com/mapsorwith the Common Loader.

Fei Chen

unread,
May 8, 2009, 12:37:27 AM5/8/09
to Google-Map...@googlegroups.com
有问题请把你的链接贴出来,这样别人就可以帮你看看问题出在哪里了

2009/5/8 threem0126 <three...@gmail.com>

wenxin.ren

unread,
May 8, 2009, 4:17:35 AM5/8/09
to 谷歌地图 API 论坛
上面的回贴已经说明了解决放案了。
仔细看一下。

> > > &sensor=true when loading the Maps API JavaScript via either thehttp://maps.google.com/mapsorwiththe Common Loader.

Reply all
Reply to author
Forward
0 new messages