Page Summary
-
CoordinateRegionRestrictionprotocol enables using a coordinate region to limit search areas within Google Places. -
It is crucial to avoid conforming to this protocol outside of the
GooglePlacesSwiftframework to prevent potential fatal errors. -
The
restriction()function transforms the region restriction into aURLQueryItemfor use in queries.
CoordinateRegionRestriction
protocol CoordinateRegionRestriction : CoordinateRegionSpecifies 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