【问题标题】:Google Places API: Is it possible to specify the establishment (using the filter)Google Places API:是否可以指定机构(使用过滤器)
【发布时间】:2017-12-31 23:54:27
【问题描述】:

所以在Google Places API webpage 上列出了一堆不同类型的过滤器。但是,我见过的唯一使用过的过滤器(国家除外)是“机构”。网页是否已过时?我特别想增加餐厅。这是我目前所拥有的:

    autoCompleteController.delegate = self
    let filter = GMSAutocompleteFilter()
    filter.type = .establishment
    autoCompleteController.autocompleteFilter = filter

感谢您的帮助!

【问题讨论】:

  • 您确定我们正在查看相同的文档吗?您链接的页面清楚地表明有一个餐馆过滤器。

标签: ios swift google-maps-api-3 google-places-api


【解决方案1】:

这看起来像以下链接的副本。我不相信 Places API 允许您限制比建立过滤器更多的限制。至少不用于自动完成。

Google Places Autocomplete, filter by establishments/restaurants

【讨论】:

    猜你喜欢
    • 2020-05-04
    • 1970-01-01
    • 2019-06-21
    • 1970-01-01
    • 2017-06-12
    • 2011-10-11
    • 2017-03-20
    • 1970-01-01
    • 2013-09-19
    相关资源
    最近更新 更多