GooglePlacesSwift Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
CoordinateRegionBias
Specifies that the coordinate region can be used as a search bias.
Warning
This should not be conformed to by types outside of GooglePlacesSwift. Doing so may
result in a fatal error.
-
Returns the region bias as URLQueryItem
.
Declaration
Swift
func bias() -> URLQueryItem
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\u003e\u003ccode\u003eCoordinateRegionBias\u003c/code\u003e is a protocol used to specify a coordinate region for search bias within Google Places.\u003c/p\u003e\n"],["\u003cp\u003eConforming to this protocol outside of \u003ccode\u003eGooglePlacesSwift\u003c/code\u003e may lead to a fatal error.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003ebias()\u003c/code\u003e function to retrieve the region bias as a \u003ccode\u003eURLQueryItem\u003c/code\u003e for use in search queries.\u003c/p\u003e\n"]]],["The `CoordinateRegionBias` protocol allows a coordinate region to be used as a search bias within GooglePlacesSwift. It defines a single function, `bias()`, which returns the region bias as a `URLQueryItem`. External types should not conform to this protocol to avoid potential fatal errors. The primary action is to obtain the search bias as a URL query item through the `bias()` method.\n"],null,["# GooglePlacesSwift Framework Reference\n\nCoordinateRegionBias\n====================\n\n protocol CoordinateRegionBias : ../Protocols.html#/s:17GooglePlacesSwift16CoordinateRegionP\n\nSpecifies that the coordinate region can be used as a search bias. \nWarning\nThis should not be conformed to by types outside of GooglePlacesSwift. Doing so may result in a fatal error.\n- `\n ``\n ``\n `\n\n ### [bias()](#/s:17GooglePlacesSwift20CoordinateRegionBiasP4bias10Foundation12URLQueryItemVyF)\n\n `\n ` \n Returns the region bias as `URLQueryItem`. \n\n #### Declaration\n\n Swift \n\n func bias() -\u003e URLQueryItem"]]