【问题标题】:What's wrong with google MAP Api?谷歌 MAP Api 有什么问题?
【发布时间】:2013-10-01 12:36:15
【问题描述】:

这是我指的 Uri:

string.Format("http://maps.googleapis.com/maps/api/geocode/{1}?address={0}&sensor=false", HttpUtility.UrlEncode(address), OutputType)

这是我在服务器中得到的响应:

    <GeocodeResponse>
           <status>OVER_QUERY_LIMIT</status>.
           <error_message>You have exceeded your daily request quota for this API.</error_message>
</GeocodeResponse>

EDIT: Please notice i have done only 1 request.

我做错了什么?我只需要 Longitude/Latitude

【问题讨论】:

  • 他们最近将免费通话次数减少到每天 2500 次。你只是超出了限制吗?

标签: c# geolocation location


【解决方案1】:

Google 将您对其地理编码 API 的使用限制为每个 IP 地址每天 2500 个请求

https://developers.google.com/maps/documentation/geocoding/#Limits

Google 在回复中告诉您您已超出该限制。其他人必须在您的网络上使用该 api。

【讨论】:

  • 它完全在服务器上,我还没有看到任何东西我该如何修复它?顺便说一句,它对我 m8 没有帮助。
  • 您是否尝试过使用不同的网络/IP 地址?我刚刚尝试成功:`maps.googleapis.com/maps/api/geocode/xml?address=1600pennsylvania avenue Washington dc&sensor=false'
  • 是的,我有,而且它确实有效,但是如何在我的网络服务器上修复它?
  • 您的 Web 服务器可能处于共享托管环境中吗?如果是这样,您将与其他人共享这 2500 个地理编码请求限制,并且您唯一可用的解决方案是使用具有自己 IP 地址的私有主机 VM。
  • 另外我还要补充一点,您还可以购买 Maps API for business,它将使用 ClientId 而不是 IP 地址 (developers.google.com/maps/documentation/business/webservices/…) 跟踪您的请求
【解决方案2】:

每秒也有 10 个请求的限制。您可以在此处查看所有限制:

https://developers.google.com/maps/documentation/business/faq?hl=pt-br#usage_limits

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-30
    相关资源
    最近更新 更多