GooglePlacesSwift Framework Reference
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
      
        
          
            IsPlaceOpenRequest
              
                
                  struct IsPlaceOpenRequest
extension IsPlaceOpenRequest : Sendable
                 
               
            Represents an IsPlaceOpenRequest definition to be sent via PlacesClient.
          
          
            
              
                - 
                  
                  
                    
                    
                      
                      
                        The Date to be used for the request. If no date is provided, the current date and time is
used.
                       
                      
                        Declaration
                        
                          Swift
                          var date: Date? { get }
                         
                       
                    
                   
                 
                - 
                  
                  
                    
                    
                      
                      
                        Initializes the request with a Place and an optional Date.
                       
                      
                        Declaration
                        
                          Swift
                          init(place: Place, date: Date? = nil)
                         
                       
                      
                        Parameters
                        
                          
                            
                              
                                
                                place
                                
                               | 
                              
                                
                                  The Place to be used for the request. 
                                 
                               | 
                            
                            
                              
                                
                                date
                                
                               | 
                              
                                
                                  The date to to be used for the request. If no date is provided, the current date
and time is used. 
                                 
                               | 
                            
                          
                        
                       
                    
                   
                 
                - 
                  
                  
                    
                    
                      
                      
                        Initializes the request with a placeID and an optional Date.
                       
                      
                        Declaration
                        
                          Swift
                          init(placeID: String, date: Date? = nil)
                         
                       
                      
                        Parameters
                        
                          
                            
                              
                                
                                placeID
                                
                               | 
                              
                                
                                  The place ID to be used for the request. 
                                 
                               | 
                            
                            
                              
                                
                                date
                                
                               | 
                              
                                
                                  The date to be used for the request. If no date is provided, the current date and
time is used. 
                                 
                               | 
                            
                          
                        
                       
                    
                   
                 
                - 
                  
                  
                    
                    
                      
                      
                        The Place to be used for the request.
                       
                      
                        Declaration
                        
                          Swift
                          var place: Place? { get }
                         
                       
                    
                   
                 
                - 
                  
                  
                    
                    
                      
                      
                        The place ID to be used for the request.
                       
                      
                        Declaration
                        
                          Swift
                          var placeID: String? { get }
                         
                       
                    
                   
                 
              
                       
        
      
     
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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."],[],["`IsPlaceOpenRequest` facilitates checking if a place is open. It can be initialized using either a `Place` object or a `placeID` string, both with an optional `Date`. If no `Date` is supplied, the current date/time is used. The request then utilizes the `place` or `placeID` to query the place's open status for the specified date. It contains variables for place and placeID.\n"]]