“地点自动补全”功能使用会话令牌将用户自动补全搜索的查询和选择阶段归入不同的会话,以便进行结算。会话在用户开始输入查询内容时开始,并在用户选择地点并执行对“地点详情”的调用时结束。在每个会话中,用户可以输入多项自动补全查询,并最终选择一个地点。在一个会话中,每个请求使用的 API 密钥都必须属于同一 Google Cloud 控制台项目。会话结束后,令牌将失效;您的应用必须为每个会话生成一个新的令牌。如果您省略 sessiontoken 参数或重复使用会话令牌,系统会按未提供会话令牌的情况为会话计费(每个请求均单独结算)。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-21。"],[[["Place Autocomplete uses session tokens to group user search queries and selections into a single billable session."],["Each session requires a unique token, starting when the user begins typing and ending with a Place Details call after place selection."],["Using session tokens ensures all related requests are billed as one, reducing costs compared to individual request billing."],["Session tokens expire after the session concludes and should not be reused; a new token is needed for each new session."],["Omitting or reusing session tokens results in individual request billing under the Autocomplete - Per Request SKU."]]],["Place Autocomplete uses session tokens to group user search queries and place selections for billing. A session, initiated when a user starts typing, includes multiple autocomplete queries and one place selection. A unique token is required for each session. Using the same token or omitting it results in individual billing per request. Each session is terminated when a place is selected. If a user does not make a selection, then only the search queries are charged. Each API key used in the session must be from the same project.\n"]]