GooglePlacesSwift Framework Reference

  • 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.

CoordinateRegionRestriction

protocol CoordinateRegionRestriction : CoordinateRegion

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