Session tokens are user-generated strings (or objects) that track Autocomplete (New)
calls as sessions. Autocomplete (New) uses session tokens to group the query
and selection phases of a user autocomplete search into a discrete session for
billing purposes.
Users are responsible for creating session tokens for each session. Session
tokens must be URL- and filename-safe base64 strings. Users can generate session
tokens in any manner, although Google recommends using version 4 universally
unique identifiers (UUIDs) for session tokens.
The session begins with a call to Autocomplete (New), and concludes with a call
to Place Details (New) or Address Validation. Each session can have
multiple Autocomplete (New) queries, followed by one request to Place Details
(New) or Address Validation. The API key(s) used for each request within a
session must belong to the same Google Cloud Console project.
Session tokens terminate in the following ways:
Place Details (New) is called.
Address Validation is called.
The session is abandoned.
Once a session has concluded, the token is no longer valid; your app must
generate a fresh token for each new session. If the sessionToken parameter is
omitted, or if you reuse a session token, the new session is charged as if no
session token was provided (each request is billed separately).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-29 UTC."],[[["Session tokens track Autocomplete (New) calls as sessions for billing purposes, grouping query and selection phases."],["Users must create URL- and filename-safe base64 strings as session tokens for each session, ideally using version 4 UUIDs."],["A session starts with an Autocomplete (New) call and ends with a Place Details (New) or Address Validation call, allowing multiple Autocomplete queries within the session."],["Session tokens expire after a Place Details (New) or Address Validation call, if abandoned, or if reused; a new token is needed for each session."],["Omitting or reusing session tokens results in each request being billed separately, instead of as a session."]]],[]]