Google地方信息自动填充功能,可按照机构/餐馆进行过滤 [英] Google Places Autocomplete, filter by establishments/restaurants

查看:101
本文介绍了Google地方信息自动填充功能,可按照机构/餐馆进行过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用API​​按照其指南( https:/ /developers.google.com/places/ios-api/autocomplete ),但我也知道GMSPlace有一个类型,可以是咖啡店/餐厅。

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.

ios api似乎没有像web服务那样简单的地点搜索,它可以是PlaceID搜索或自动完成。

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

我可以使用Autocomplete并根据类型过滤结果吗?

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

推荐答案

您可以使用 GMSAutocompleteFilter 过滤设置。企业只返回作为企业的地方。

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

这篇关于Google地方信息自动填充功能,可按照机构/餐馆进行过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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