可以在最近的搜索请求使用此类型和添加地方时因为是表演在你的链接
表1:在地方搜索和添加
您可以使用该类型的以下值筛选的地方 搜索和添加地方时支持的类型。
不是GMSPlacesAutocompleteTypeFilter
,这些都是值可以在GMSPlacesAutocompleteTypeFilter类型一起使用,我觉得你的情况必须使用establishment
/**
* The type filters that may be applied to an autocomplete request to restrict results to different
* types.
*/
public enum GMSPlacesAutocompleteTypeFilter : Int {
/**
* All results.
*/
case noFilter
/**
* Geeocoding results, as opposed to business results.
*/
case geocode
/**
* Geocoding results with a precise address.
*/
case address
/**
* Business results.
*/
case establishment
/**
* Results that match the following types:
* "locality",
* "sublocality"
* "postal_code",
* "country",
* "administrative_area_level_1",
* "administrative_area_level_2"
*/
case region
/**
* Results that match the following types:
* "locality",
* "administrative_area_level_3"
*/
case city
}
希望这有助于你