【发布时间】:2012-10-29 19:11:28
【问题描述】:
您好,我正在使用 GOOGLE maps API for android,并且使用我的 API 密钥我能够绘制地图。
还增加了放大缩小功能。但是当我尝试从 google API 获取数据时,它给了我 REQUEST_DENIED 错误消息。
这是我的查询字符串
https://maps.googleapis.com/maps/api/place/search/json?location=43.666,93.166&radius=5000&sensor=false&types=establishment&name=hotel&key={myKey}
也试过this链接。
在过去两天中遇到此问题需要帮助。
【问题讨论】:
-
您要获取什么数据?因为如果您可以正确呈现 MapView,我认为问题不在于 API 密钥。尝试使用网络服务:maps.googleapis.com/maps/api/geocode/xml?address=" + URL.encode(addressField.getText()) + "&sensor=false
-
这是我之前评论中的链接.....我不知道是什么问题。是的,我可以清楚地看到/绘制地图。
-
Places API 密钥与 Maps API 密钥不同。在控制台页面上启用 Places API
标签: java android google-api android-mapview android-maps