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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-27 UTC.
[null,null,["Last updated 2025-08-27 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGMSPlaceLocationBias\u003c/code\u003e protocol is used to specify a location as a search bias.\u003c/p\u003e\n"],["\u003cp\u003eThis protocol provides a method, \u003ccode\u003elocationBiasURLQueryItem\u003c/code\u003e, that returns the location bias as a \u003ccode\u003eNSURLQueryItem\u003c/code\u003e for use in URL requests.\u003c/p\u003e\n"]]],["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"],null,["# GooglePlaces Framework Reference\n\nGMSPlaceLocationBias\n====================\n\n @protocol GMSPlaceLocationBias \u003cNSObject, NSCopying\u003e\n\nProtocol for specifying that the location can be used as search bias.\n- `\n ``\n ``\n `\n\n ### [-locationBiasURLQueryItem](#/c:objc(pl)GMSPlaceLocationBias(im)locationBiasURLQueryItem)\n\n `\n ` \n Returns the location bias as `NSURLQueryItem`. \n\n #### Declaration\n\n Swift \n\n func locationBiasURLQueryItem() -\u003e URLQueryItem\n\n Objective-C \n\n - (nonnull NSURLQueryItem *)locationBiasURLQueryItem;"]]