Google Places API不会为印度返回任何结果 [英] Google Places API not returning any results for India

查看:70
本文介绍了Google Places API不会为印度返回任何结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://maps.googleapis.com/maps/api/place/search/json?location=28.635704,77.224982&radius=50000&types=restaurant&language=en&name=&sensor=false& key = [key]



我一直在试图找到Google Places API 3以获得德里餐馆的名单,但到目前为止我还没有运气。有没有人曾经尝试过。它在美国坐标显示良好的结果,但在德里没有什么?

解决方案

我想问题是由业主应用的分类的地方。当我在谷歌地图上搜索餐厅德里时,我得到了很多餐厅,但没有一家被归类为餐厅,它是住宿,餐厅,印度餐厅,非素食餐馆或其他餐厅,但从来没有>餐厅。



不是要求类型 餐馆搜索 / strong> ,你会得到一堆结果。



当你看看这些结果时,大多数结果的类型设置为建立,而不是餐馆

https://maps.googleapis.com/maps/api/place/search/json?location=28.635704,77.224982&radius=50000&types=restaurant&language=en&name=&sensor=false&key=[key]

I have been trying to find Google Places API 3 to get the list of restaurants in Delhi, but so far I have not got any luck. Has anyone tried that before. It shows good results with coordinates in US but nothing in Delhi?

解决方案

I guess the problem is the categorization applied by the owners of the places. When I search for "restaurant delhi" on google-maps I get a lot of restaurants, but none of them is categorized as "restaurant", it's lodging, restaurants-indian,Restaurants - Non - Vegetarian or something else, but never restaurant .

Instead of requesting the types restaurant search for the name restaurant , you'll get a bunch of results.

When you take a look at these results, you'll see, the types of the most results is set to "establishment" , not "restaurant"

这篇关于Google Places API不会为印度返回任何结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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