【发布时间】:2012-08-01 07:01:09
【问题描述】:
我正在尝试使用 google 地方开发基于位置的应用程序,但每次查询都会重复获得 ZERO_RESULTS。
{
"html_attributions" : [],
"results" : [],
"status" : "ZERO_RESULTS"
}
我最初尝试使用我的代码中的 URL,使用佐治亚州亚特兰大的纬度和经度: https://maps.googleapis.com/maps/api/place/search/json?location=33.7489,-84.3881&radius=50&keyword=coin|numismatic|silver|gold|dealer|pawn&sensor=false&key=
然后尝试了一些更通用和无处不在的东西(米奇 D),但无济于事...... https://maps.googleapis.com/maps/api/place/search/json?location=33.7489,-84.3881&radius=50&keyword=mcdonalds&sensor=false&key=
然后更通用。这会返回结果,但错误(在非洲某处)...... https://maps.googleapis.com/maps/api/place/search/json?location=33.7489,-84.3881&radius=50&type=bank&sensor=false&key=
我知道我的密钥是有效的,因为我没有收到拒绝请求,而且我知道我的结构是正确的,因为我没有收到无效请求。有人知道我在做什么错吗?提前谢谢你
【问题讨论】:
-
请务必尽快重置您的 API 密钥。
-
@saxman 感谢您的提醒。
标签: android string geolocation google-places-api