AI-generated Key Takeaways
- 
          AutocompleteRequestis a struct used to request autocomplete suggestions based on a partial query.
- 
          It includes properties for the query, an optional session token for billing, and an optional filter to refine results. 
- 
          You can use AutocompleteRequestwithPlacesClientto fetch autocomplete suggestions.
- 
          The filterproperty uses theAutocompleteFilterstruct to narrow down the suggestions based on location or place type.
- 
          The sessionTokenproperty leveragesAutocompleteSessionTokento track and manage billing for autocomplete requests within a session.
AutocompleteRequest
struct AutocompleteRequestextension AutocompleteRequest : SendableThe request for autocomplete suggestions based on a given partial query along with additional configuring properties.
- 
                  
                  The AutocompleteFilterto apply to the results.DeclarationSwift var filter: AutocompleteFilter? { get }
- 
                  
                  Request object to use with PlacesClientto fetch autocomplete suggestions.DeclarationSwift init(query: String, sessionToken: AutocompleteSessionToken? = nil, filter: AutocompleteFilter? = nil, inputOffset: Int = 0)ParametersqueryThe partial text to autocomplete. sessionTokenThe AutocompleteSessionTokento associate requests to a billing session.filterThe AutocompleteFilterto apply to the results.inputOffsetThe character offset for the input string. Indicates the completion starting position. 
- 
                  
                  The character offset for the input string. Indicates the completion starting position. DeclarationSwift var inputOffset: Int { get }
- 
                  
                  The partial text to autocomplete. DeclarationSwift var query: String { get }
- 
                  
                  The AutocompleteSessionTokento associate requests to a billing session.DeclarationSwift var sessionToken: AutocompleteSessionToken? { get }