Google Places Autocomplete, filter by establishments/restaurants

瘦欲@ 提交于 2019-12-24 00:23:23

问题


I can use the API to search by establishments as shown in their guides(https://developers.google.com/places/ios-api/autocomplete), however I also know that a GMSPlace has a type, which can be a coffee shop/restaurant.

The ios api doesn't seem to have a simple "place search" like the web service does, it's either PlaceID search, or autocomplete.

Can I use the Autocomplete and filter my results based on the type?


回答1:


You can use GMSAutocompleteFilter to filter out establishment. establishment returns only places that are businesses.



来源:https://stackoverflow.com/questions/32638469/google-places-autocomplete-filter-by-establishments-restaurants

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!