api - 使用 Google Places API 时的 REQUEST_DENIED

标签 api google-maps google-maps-api-3

我正在尝试使用以下网址向 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/

相关文章:

ios - 正在获取YouTube api iOS的访问 token “Error”: “invalid_request”

rest - 如何将 IFormFile 作为 ViewModel 对象的一部分发送到 Web API

typescript - 带有标记聚类的 Angular 8 和 Google map - 类型错误markercluster is not a constructor

javascript - 多边形或/和信息窗口中的标记簇编号

javascript - Google map 未在 JS Fiddle 中显示(RefererNotAllowedMapError)

javascript - 从 Google Maps API 到 php 表单的坐标变量

用于真实帐户任务的 API(Outlook.com 日历)

azure - 使用 Azure 数据工厂进行 API 调用时出现错误 500

postgresql - Postgis 经度、纬度转几何 postgresql

javascript - 谷歌地图 API v3 上的单图 block WMS 图层