从Google Places Api获取地点的照片 [英] Getting a photo of a place from Google Places Api
问题描述
我一直试图在Android中使用JSON获取附近位置的照片,如下所示:
这是我用于获取图像的路径:
在调用之前我应该做些什么图像路径还是我缺少什么?
我找到了一个解决方案,都感谢@MaharithAdityaSS。基本上我只需要启用我的Google Places API Web服务,因为我只有Google Places API for Android才能启用。它现在可以显示照片。
I've been trying to get photos of nearby locations using JSON in android as directed here: Place Photos, and the path photo returns
This is the path I used for my attempt to get an image: Image Path .
This is my JSON structure:
Is there something I should do before calling the image path or am I missing something?
I Found a solution, all thanks to @MaharithAdityaSS. Basically I only needed to enable my Google Places API Web Service, as I only had Google Places API for Android only enabled. It now can display photos.
这篇关于从Google Places Api获取地点的照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!