从谷歌api获取图像

时间:2014-08-11 05:32:54

标签: ios json

{
geometry: 
{
   location: 
   {
      lat: 20.012256,
      lng: 73.761541
   }
},
icon: "http://maps.gstatic.com/mapfiles/place_api/icons/fitness-71.png",
id: "3e59d6a764e44c969e632c659e0d4284e7bd2561",
name: "AYURVEDIC PANCHKARMA & GARBHASANSKAR",
photos: [
{
height: 1024,
html_attributions: ["From a Google User"],
photo_reference: "CpQBjQAAAIn74syEAB4wtDfRxQqHrEuETcQYYJ2PgAy-uCtQ5UjSsfmWhGLvij6zL4rdHCEUSHOvKOyyhcOO7N-i-mcYpAjZKMNgbfNEaBNWPPRl6MTRf3BHb8DZ8i8bO-F3-IVF5kEvo4-8GQwDGsvNiIXdmkyTi0ugzo0Tj3K9Zicy-cakr25sgy8Mp-UeBqyPABv_AhIQIJzI11nBcIQWVHPBnSVMihoU69ou9PsrnIrvldruNVJma9EGnRU",
width: 768
}
],
place_id: "ChIJmx2FRZDr3TsRgNITjVbXAyU",
reference: "CpQBhQAAAH6wIR1m39e0NaDGqSvFAb6LHjcY3YzZbHJV33RRScqspe4s6NPNpMQZbufkMHhDv7-zhbYriOct-s1jX1Uy_tP4a6cgPboaBITMpgLR_uQO7j-k8ngDgvYuIeU70So0m-RygRMwK5Wsxj-j-dW6UswEIGiyctBvWD_eIW7j1dHh9GfS1YhBGAjDcEZuAOjNARIQOgtBWeqaHi6rPsZgc7g9TBoUBuz5fgZnaIwkGgZP8MiZG97fRl0",
scope: "GOOGLE",
types: [
"gym",
"health",
"establishment"
],
vicinity: "'Anand -Leela', 37, Kamal Society, Near Kusumagraj Pratishtan, Gangapur Road, Na, Nashik"
}

我正在使用以下网络服务,我希望通过该服务访问photo_reference以获取图片,API采用JSON格式。如何从photo_reference中检索图像

提前致谢。

0 个答案:

没有答案