从Google Places Api获取地点的照片 [英] Getting a photo of a place from Google Places Api

查看:74
本文介绍了从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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆