Google Places API:更具体的类型?

时间:2016-03-21 10:04:57

标签: google-places-api

当我谷歌“贾斯汀”时,我可以看到它被列为“法国餐厅”。 (See screenshot

当我使用Google Places API获取有关同一地点的详细信息时,我只会看到包含“餐厅”和“酒吧”等高级字词的“类型”列表,但我看不到像“法语”这样的特定类型餐厅”。

有谁知道是否有可能获得这些数据?

谢谢!

1 个答案:

答案 0 :(得分:0)

我想您可能需要检查api上的文本搜索方法。 https://developers.google.com/places/documentation/search#TextSearchRequests

因此,您的请求最终会看起来像下面这样,限制在特定区域

https://maps.googleapis.com/maps/api/place/textsearch/json?query=French +餐厅& sensor = true& location = yourLocationHere& radius = 20& key = yourKeyHere

然而,这将返回该地区的所有其他法国餐馆,所以如果您只想返回一个结果,我会使用地方详情请求