-1
我想限制谷歌地方自動完成到印度,但無法過濾,有人可以請建議幫助。
我的GoogleMap的框架, #進口無法過濾谷歌地圖
GMS_ASSUME_NONNULL_BEGIN
/**
* The type filters that may be applied to an autocomplete request to restrict results to different
* types.
*/
typedef NS_ENUM(NSInteger, GMSPlacesAutocompleteTypeFilter) {
/**
* All results.
*/
kGMSPlacesAutocompleteTypeFilterNoFilter,
/**
* Geeocoding results, as opposed to business results.
*/
kGMSPlacesAutocompleteTypeFilterGeocode,
/**
* Geocoding results with a precise address.
*/
kGMSPlacesAutocompleteTypeFilterAddress,
/**
* Business results.
*/
kGMSPlacesAutocompleteTypeFilterEstablishment,
/**
* Results that match the following types:
* "locality",
* "sublocality"
* "postal_code",
* "country",
* "administrative_area_level_1",
* "administrative_area_level_2"
*/
kGMSPlacesAutocompleteTypeFilterRegion,
/**
* Results that match the following types:
* "locality",
* "administrative_area_level_3"
*/
kGMSPlacesAutocompleteTypeFilterCity,
};
/**
* This class represents a set of restrictions that may be applied to autocomplete requests. This
* allows customization of autocomplete suggestions to only those places that are of interest.
*/
@interface GMSAutocompleteFilter : NSObject
/**
* The type filter applied to an autocomplete request to restrict results to different types.
* Default value is kGMSPlacesAutocompleteTypeFilterNoFilter.
*/
@property(nonatomic, assign) GMSPlacesAutocompleteTypeFilter type;
/**
* The country to restrict results to. This should be a ISO 3166-1 Alpha-2 country code (case
* insensitive). If nil, no country filtering will take place.
*/
@property(nonatomic, copy) NSString *GMS_NULLABLE_PTR INDIA;
@end
GMS_ASSUME_NONNULL_END
我試圖限制谷歌的地方自動完成到印度,但無法過濾,可以有人請建議幫助。