GooglePlacesSwift Framework Reference
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
      
        
          
            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 2025-08-27 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-27 UTC."],[],["The `CoordinateRegionRestriction` protocol defines a coordinate region as a search restriction. It's designed for internal use within GooglePlacesSwift and should not be implemented externally to avoid errors. The core action is the `restriction()` method, which returns the region restriction as a `URLQueryItem`. This function provides the necessary data for use in location based searches.\n"]]