【发布时间】:2012-01-15 17:05:06
【问题描述】:
我正在尝试使用以下网址向 Google Places API 发出请求:https://maps.googleapis.com/maps/api/place/search/xml?location=37.77264,-122.409915&radius=500&types=educational%20services&name=everest%20college%20san%20francisco&sensor=false&key=YourApiKey
这是我得到的回复:
<PlaceSearchResponse>
<status>REQUEST_DENIED</status>
</PlaceSearchResponse>
知道上面的网址有什么问题吗?
【问题讨论】:
-
您是否在 API 控制台中验证了您的密钥是否有效:code.google.com/apis/console ?
-
您有必填字段:radius、sensor、key、location=geo 和 key,所以它对我来说是正确的。
-
自动完成搜索 Google API 需要“服务器应用程序密钥”。
标签: api google-maps google-maps-api-3