【发布时间】:2014-02-26 04:59:13
【问题描述】:
我想从 Google Places API 中获取所有热门地点,并按升序排列,评分最高。 (休斯顿附近搜索美国纬度 = 29.760193 , lng = -95.36939) 我试过这个
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=29.760193,-95.36939&rankby=prominence%20&types=food&sensor=false&key=AIzaSydfgfdgdfgdfgdfgdgdfgcDBuNWG4
note: rankby=prominence
但它会像这样输出
{
"html_attributions" : [],
"results" : [],
"status" : "INVALID_REQUEST"
}
但是当rankby=distance时它给了我有效
我哪里做错了。
我希望所有热门地点的评分最高。
【问题讨论】:
-
您确定您的密钥正确吗?
-
是的。当我请求 rankby=distance 时,它给了我正确的输出。
-
你能不能把你的日志猫也发过来发一下
-
@QadirHussain 你找到解决办法了吗