地点自动补全是 Maps JavaScript API 中地点库的一项功能。
借助自动补全,您可以让自己的应用具有 Google 地图搜索字段的“即输即找”功能。自动补全服务可以根据完整字词和子字符串进行匹配,从而解析地点名称、地址和 Plus Codes。这样,应用就可以在用户输入内容时发送查询,从而即时进行地点预测。
您可以使用地点自动补全 widget 或地点自动补全数据 API 将自动补全功能添加到应用或网页中。
[[["易于理解","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):2024-12-22。"],[[["Place Autocomplete, a feature of the Places library within the Maps JavaScript API, provides a type-ahead search function similar to the Google Maps search field, matching place names, addresses, and plus codes."],["You can implement Place Autocomplete using either the Place Autocomplete Widget, which offers a pre-built UI, or the Place Autocomplete Data API, which allows for more customization."],["The Place Autocomplete Widget creates a text input with place predictions in a dropdown, returning details upon selection, ideal for a self-contained autocomplete interface on your webpage."],["The Place Autocomplete Data API enables programmatic retrieval of place predictions, granting greater flexibility for building custom user interfaces."]]],[]]