ListView 中的 Android 搜索结果
我想弄清楚如何搜索我周围的餐馆并将结果显示在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Google Places api 搜索附近的地点(例如您所在餐厅)围绕特定位置。
You can use google places api to search near by places like in your case restaurant around a particular location.