问题标签 [gmsautocomplete]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - 仅过滤要在 GMSAutocompleteViewController 中显示的健身房
Gym 存在于 Google 网站上提到的受支持类型中。
https://developers.google.com/places/supported_types。
我似乎无法弄清楚如何过滤特定类型以显示结果。
到目前为止,我已经尝试过:
swift - SWIFT limit google maps placeAPI autocomplete to certain country
I have implemented google maps place API GMSAutocomplete. It works fine. However, every time when I input a address number I see a lot of foreign addresses which are not relevant. I was wondering if it is possible to set a limit to the place API so the result only shows the addresses in a country? e.g. Canada?
In my button tapped func (to autocompleteViewController) I have:
My viewdidLoad I have:
My autocomplete function is:
}
Do I need something like "locationManager.distanceFilter = 500" or is there a recommended method?