我正在尝试使用以下网址向 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>
知道上面的 URL 可能有什么问题吗?
最佳答案
重要提示:转到 api 控制台 here ,然后转到 SERVICES 并检查您的“Places API”是否已打开
关于api - 使用 Google Places API 时的 REQUEST_DENIED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8427980/