GooglePlaces Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GMSPlaceLocationBias
@protocol GMSPlaceLocationBias <NSObject, NSCopying>
Protocol for specifying that the location can be used as search bias.
-
Returns the location bias as NSURLQueryItem.
Declaration
Swift
func locationBiasURLQueryItem() -> URLQueryItem
Objective-C
- (nonnull NSURLQueryItem *)locationBiasURLQueryItem;
[null,null,["Last updated 2025-08-27 UTC."],[],["The `GMSPlaceLocationBias` protocol allows a location to be used as a search bias. It contains a method, `locationBiasURLQueryItem`, which returns the location bias as an `NSURLQueryItem`. This protocol can be implemented in both Swift and Objective-C, using the specified function signature for Swift and the method signature for Objective-C. It is also specified that it implements `NSCopying`.\n"]]