使用 Google Places API 时的 REQUEST_DENIED [英] REQUEST_DENIED when using the Google Places API

查看:30
本文介绍了使用 Google Places API 时的 REQUEST_DENIED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下网址向 Google Places API 发出请求:https://maps.googleapis.commaps/api/place/search/xml?location=37.77264,-122.409915&radius=500&types=educational%20services&name=everest%20college%20san%20francisco&sensor=false&key=YourApiKey/p>

这是我得到的回复:

<status>REQUEST_DENIED</status></PlaceSearchResponse>

知道上面的网址有什么问题吗?

解决方案

重要提示:转到 api 控制台 在这里,然后到服务并检查您的Places API"是否已开启

I'm trying to make a request to the Google Places API, using the following url: 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

This is the response I get:

<PlaceSearchResponse>
  <status>REQUEST_DENIED</status>
</PlaceSearchResponse>

Any idea what could be wrong with the above URL?

解决方案

IMPORTANT: Go to the api console here, then to SERVICES and check if your 'Places API' is turned ON

这篇关于使用 Google Places API 时的 REQUEST_DENIED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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