Mapstraction Google Geocode调用返回错误代码610 [英] Mapstraction Google Geocode call returns error code 610

查看:118
本文介绍了Mapstraction Google Geocode调用返回错误代码610的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个js代码,我正在使用Mapstraction库显示GMap并通过mapstraction使用它的地址解析器服务.

I have this js code where I am using the Mapstraction library to show GMap and use it's geocoder service via mapstraction as well.

最近,每当我尝试发出地址解析服务呼叫时,我都会开始获取error 610. http code is 200确定,但是返回的json如下:

I have recently started getting error 610 whenever I try to issue the geocode service call. The http code is 200 ok however the json returned is as follows:

_xdc_._8gxa9q7ci && _xdc_._8gxa9q7ci( {
  "Status": {
    "code": 610,
    "request": "geocode"
  }
})

Chromium的检查器显示请求字符串,如下所示:

Chromium's inspector shows the request string as follows:

output:json
oe:utf-8
q:nehru place, , delhi,110048, in
mapclient:jsapi
hl:en
callback:_xdc_._8gxa9q7ci

即使使用新生成的api密钥,问题仍然存在!使用新密钥和旧密钥都可以很好地加载地图!

The issue remains even with a newly generated api key! The map loads just fine with the new key as well as the old key!

因此,如果有人遇到mapstraction的类似问题,请告诉我解决方法(如果有).

So if anyone has run into a similar issue with mapstraction then do let me know the workarounds if any.

我注意到的另一件事是我的旧密钥长86个字符,而我的新密钥长39个字符.对此方向的任何见解将不胜感激.我花了一整天的时间试图让它重新工作.

Another thing that I have noticed is that my old key is 86 characters long whereas my new key is only 39 characters long. Any insights in this direction would be greatly appreciated. I have spent an entire day trying to get it to work again.

更新:我注意到密钥长度为86个字符,请求字符串也具有密钥:MYKEY参数.带有39个字符的长键却不存在!

Update: I have noticed that with a key length of 86 characters, the request string has key: MYKEY param as well. Whereas with the 39 character long key, it's not there!

推荐答案

Mapstraction似乎需要86个字符的api密钥才能与GMap API v2正常工作.

Mapstraction seems to require a 86 character api key to work properly with GMap API v2.

我猜这是36个字符的API密钥,用于v3.

The 36 character API key is for v3 I guess.

如果我转到API控制台,则不会显示为我的域生成的86个字符键.但是,生成86个字符的api密钥的链接很难获得.

If I goto the API console, the 86 character keys generated for my domains isn't shown there. However, the link to generate the 86 character api key is a bit hard to get.

生成后,我通过Mapstraction对GMap的Geocoder的调用现在工作正常.

Once generated, my calls to GMap's Geocoder via Mapstraction are working fine now.

这里是生成v2 API密钥的链接 http://code.google.com/apis/maps/signup.html

Here's the link to generate the v2 API key http://code.google.com/apis/maps/signup.html

请记住滚动到页面底部以填写正确的网址.

Remember to scroll to the bottom of the page to fill in the correct url.

对于Mapstraction,我认为最新版本应该能够使用新的36个字符的API密钥!

As for Mapstraction, I think the latest version should be able to use the new 36 character API key!

这篇关于Mapstraction Google Geocode调用返回错误代码610的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆