【发布时间】:2019-01-24 00:18:07
【问题描述】:
我正在从 google Places API 获取地点数据,它一次返回 20 个结果。我正在将数据显示到 recyclerview 中。那么在不超过 google api 的每日配额的情况下,在 recyclerview 中显示所有 20 个地点图像的最佳方法是什么。
我已经尝试过了,但它不起作用,我无法弄清楚它为什么不起作用。
String url = "https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference="
+ places.getPhotoRefrence() + "&sensor=true&key=" + key;
Glide.with(context)
.load(url)
.into(holder.placeListIV);
谢谢!
【问题讨论】:
标签: android google-maps google-maps-api-3 google-places-api android-glide