GMSAutocompleteResultsViewController 显示有限的结果?

GMSAutocompleteResultsViewController shows limited results?

我正在使用 GMSAutocompleteResultsViewController google 自动完成搜索位置。当我用它搜索时,它显示非常有限 results.It 不显示所有结果。此外,当它用于 android 时,它会显示很多结果。请让我知道我缺少什么。

 override func viewDidLoad() {
        super.viewDidLoad()

        resultsViewController = GMSAutocompleteResultsViewController()
        resultsViewController?.delegate = self

        searchController = UISearchController(searchResultsController: resultsViewController)
        searchController?.searchResultsUpdater = resultsViewController

        // Put the search bar in the navigation bar.
        searchController?.searchBar.sizeToFit()
        navigationItem.titleView = searchController?.searchBar

        // When UISearchController presents the results view, present it in
        // this view controller, not one further up the chain.
        definesPresentationContext = true
        // Prevent the navigation bar from being hidden when searching.
        searchController?.hidesNavigationBarDuringPresentation = false
    }

我自己找到了答案。 Google API for iOS 仅提供 5 个搜索结果,而 Android 则提供更多结果。您可以参考下面link

https://developers.google.com/places/web-service/autocomplete#place_autocomplete_responses