新的Google API Key“Google Maps API v3”不适用于Google Places API? [英] New Google API Key "Google Maps API v3" doesn't work for Google Places API?

查看:121
本文介绍了新的Google API Key“Google Maps API v3”不适用于Google Places API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Places API(https://developers.google.com/places/documentation/search),并已生成一个新的Google API Key,其中包含允许任何IP。当我尝试获取以下API服务URL的结果时,我收到了拒绝请求的错误消息。

I am working with the Google Places API (https://developers.google.com/places/documentation/search), and have generated a new Google API Key with 'Any IP Allowed'. When I try to get the results of the API service URLs below, I am getting a REQUEST DENIED error.

https://maps.googleapis.com/maps/ API /地点/搜索/ JSON位置= -33.8670522,151.1957362&安培;半径= 500安培;传感器=假安培;键= AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts

HTTPS:/ /maps.googleapis.com/maps/api/place/search/xml?key=AIzaSyA3vtFM8AMlIO853ra82KzryBs752VIWts&location=-33.8670522,151.1957362&radius=1000&sensor=false

我已经尝试了请求参数的所有组合,但没有任何结果。

I have tried all combinations of the request parameters, but nothing has worked.

推荐答案

您也必须激活API控制台的地方服务。

You must also activate the places-service in the API-console.

这篇关于新的Google API Key“Google Maps API v3”不适用于Google Places API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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