GooglePlacesSwift Framework Reference
CoordinateRegionRestriction
Specifies that the coordinate region can be used as a search restriction.
Warning
This should not be conformed to by types outside of GooglePlacesSwift. Doing so may
result in a fatal error.
-
Returns the region restriction as URLQueryItem
.
Declaration
Swift
func restriction() -> 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 2024-05-06 UTC.
[null,null,["Last updated 2024-05-06 UTC."],[[["`CoordinateRegionRestriction` protocol enables using a coordinate region to limit search areas within Google Places."],["It is crucial to avoid conforming to this protocol outside of the `GooglePlacesSwift` framework to prevent potential fatal errors."],["The `restriction()` function transforms the region restriction into a `URLQueryItem` for use in queries."]]],[]]