“地点自动补全”功能使用会话令牌将用户自动补全搜索的查询和选择阶段归入不同的会话,以便进行结算。会话在用户开始输入查询内容时开始,并在用户选择地点并执行对“地点详情”的调用时结束。在每个会话中,用户可以输入多项自动补全查询,并最终选择一个地点。在一个会话中,每个请求使用的 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-04-08。"],[[["Place Autocomplete uses session tokens to group the query and selection phases of a user search into a single billable session."],["Session tokens help reduce billing by bundling multiple autocomplete queries and one place selection into a single request."],["Each session requires a unique session token; reusing tokens or omitting them results in individual billing for each request."],["A session starts when a user begins typing and ends when they select a place, after which the token becomes invalid."],["Ensure all API keys used within a session belong to the same Google Cloud console project for proper billing."]]],["Place Autocomplete uses session tokens to group a user's search query and place selection into a single session for billing. A session begins with the first user input and concludes with a place selection. Generate a fresh token for each new session using a version 4 UUID. Multiple autocomplete queries within a session use one token, then a Place Details call concludes it. If omitted or reused, requests are billed separately. API keys must match the same Google Cloud project.\n"]]