Google Places API餐厅类型 [英] Google places api restaurant types
问题描述
当您在Google地方搜索餐馆并转到商家资料时(即: https://plus.google.com/107507038669791289691/about?hl=zh_CN ),该餐厅有一个标签(在本例中为墨西哥餐厅).但是当使用Google Places API时,我只能看到一个类型列表
When you search for a restaurant in Google places and go to the business profile (i.e.: https://plus.google.com/107507038669791289691/about?hl=en) the restaurant has a tag (in this case Mexican Restaurant). But when using the Google places api all I can see is a types list
"types" : [ "restaurant", "food", "establishment" ]
有人知道是否可以以某种方式获得墨西哥餐厅"标签吗?
Anyone know if it's possible to get the tag "Mexican Restaurant" somehow?
我了解受支持的类型( https://developers.google.com/places/documentation/supported_types).这不是超级有帮助.
I know about the supported types (https://developers.google.com/places/documentation/supported_types). It is not super helpful.
推荐答案
我认为您可能必须恢复到api上的文本搜索方法.
I think you would probably have to revert to the text search method on the api..
https://developers.google.com/places/documentation/search#TextSearchRequests
所以您的请求最终看起来像以下内容,仅限于特定区域
So your request would end up looking something like the below, restricted down to a specific area
但是,这将返回该地区所有其他墨西哥餐馆,因此,如果您只想返回一个结果,我会改用地点详细信息"请求.
However this will return all other Mexican restaurants in the area, so if you just want to return the one result I would use the Place Details request instead.
这篇关于Google Places API餐厅类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!