Android 列出附近的地方

Android 列出附近的地方,android,google-maps,google-maps-android-api-2,Android,Google Maps,Google Maps Android Api 2,我已经能够检索不同的附近的地方,但我想把他们放在列表中,用户可以看到和选择使用该列表的地方 我使用以下方法检索这些位置: static String makeURL1() throws UnsupportedEncodingException { StringBuilder googlePlacesUrl = new StringBuilder("https://maps.googleapis.com/maps/api/place/nearbysearch/json?&qu

我已经能够检索不同的附近的地方,但我想把他们放在列表中,用户可以看到和选择使用该列表的地方

我使用以下方法检索这些位置:

 static String makeURL1() throws UnsupportedEncodingException {

    StringBuilder googlePlacesUrl = new StringBuilder("https://maps.googleapis.com/maps/api/place/nearbysearch/json?");
    googlePlacesUrl.append("location=" + latitude + "," + longitude);
    googlePlacesUrl.append("&radius=" + radiusplace.inputtedradius);
    googlePlacesUrl.append("&type=" + "art_gallery");
    googlePlacesUrl.append("&sensor=true");
    googlePlacesUrl.append("&key=" + "AIzaSyCx8-ZK6m5FTgEoTaSRaUuALV-5Vnz1Co4");
    Log.d("getUrl", googlePlacesUrl.toString());
    return (googlePlacesUrl.toString());
}

public void getplaces() {
    String url = null;


    try {
        url = makeURL1();
     

    } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
    }
    placesAsyncTask download = new placesAsyncTask(url);
   
    download.execute();

}
如何在地图上显示的列表中放置所有位置

我的想法是这样的


我在顶部有一个按钮过滤器,用户可以在其中自由管理他想看的地方,在内容中,它将显示图片和有关特定位置的信息,了解如何使用
回收视图显示数据参见此


这种操作在android应用程序中非常常见。因此,如果你用谷歌搜索你的查询,那么它必须为你提供其他开发人员在他们的博客或其他StackOverflow问题上已经提供的所需帮助。

使用
ListView
RecyclerView
。我知道我会使用ListView或RecycleView,我正在寻找将位置放入列表的指南。所谓指南,你指的是关于
RecycleView
的某种教程,它解释了如何使用它显示数据?是的,关于如何将位置的数据放入RecycleView。希望这能帮助你