ListView 中的 Android 搜索结果

发布于 2024-12-21 19:09:19 字数 153 浏览 5 评论 0原文

我想弄清楚如何搜索我周围的餐馆并将结果显示在 ListView 中。我发现了提到使用地理编码器的简短线索。我不确定如何使用它,或者这是否正确。基本上,我希望我的用户搜索“麦当劳”,而我的应用程序会为其提供周围的麦当劳。我应该使用 Google 地图搜索还是有更好的方法?任何信息都有用!谢谢!

I am trying to figure out how to search for restaurants around me and have the results show up in a ListView. I have found short leads that mentioned using a GeoCoder. I am not sure how to use this, or if this is correct. Basically I want my user to search "McDonalds", and my app gives it the McDonald's around it. Should I use Google Maps Search or is there a better way? Any information is useful! Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

女皇必胜 2024-12-28 19:09:19

您可以使用 Google Places api 搜索附近的地点(例如您所在餐厅)围绕特定位置。

You can use google places api to search near by places like in your case restaurant around a particular location.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文