HERE API 自动建议地理编码搜索
我希望使用 HERE 地理编码自动建议。我了解 API 的工作原理,也是我寻求指导的 Flutter 实现。
以前的版本有一个 Javascript 示例,
https://developer.here.com/documentation/examples/rest/geocoding_suggestions
这演示了调用和 Json 返回,但我想知道在显示数据时是否有任何 Flutter 示例/实现指南。
例如,API 返回“伦敦”的地址结果,Flutter 是否具有内置功能来向用户显示这些结果(例如 TypeAheadField),例如在输入字段下方的下拉样式框中,如下面的此处屏幕截图,其中用户可以选择正确的建议吗?这个函数的调用是如何实现的呢?
我想我会利用 onChanged
/SetState
风格的函数来调用和显示,但它是如何在用户输入时进行调用然后显示返回的建议
我会发现一个有用的例子。
欢迎任何资源/提示
谢谢
I am looking to use the HERE Geocoding Autosuggest. I understand how the API works and it is the implementation in Flutter I seek guidance on.
There is a Javascript example for the previous version
https://developer.here.com/documentation/examples/rest/geocoding_suggestions
This demonstrates the call and Json return, but I wondered if there were any Flutter examples/ guidance on implementation when it comes to displaying the data.
For example, the API returns address results for 'London', does Flutter have build in functionality to display these to the user (Such as TypeAheadField), in a dropdown style box below entry field for example, like the HERE screenshot below, where the user can select the correct suggestion? How would the call be implemented with this function?
I presume I will utilise an onChanged
/SetState
style function to call and display, but it is how to make the call as user types and then display the returned suggestion
that I would find an example useful.
Any resources/ tips welcome
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请检查下面的代码,它解释了颤振中自动建议的使用。
有关更多详细信息,请检查 在此处输入链接描述
Please check the below code ,which explains the use of auto suggest in the flutter.
For more details please check enter link description here