从适用于iOS的Google Places访问位置图像 [英] Accessing the place image from Google Places for iOS

查看:34
本文介绍了从适用于iOS的Google Places访问位置图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从Google Places上获取位置的图片。JSON输出如下所示,但我不知道如何访问每个位置的图像。我想将此图像放在一个表视图中,并列出每个位置的列表。

  {
  "html_attributions" : [
    "Listings by u003ca href="http://www.yellowpages.com.au/"u003eYellow Pagesu003c/au003e"
  ],
  "results" : [
    {
      "geometry" : {
        "location" : {
          "lat" : -33.8719830,
          "lng" : 151.1990860
        }
      },
        "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
        "id" : "677679492a58049a7eae079e0890897eb953d79b",
        "name" : "Zaaffran Restaurant - BBQ and GRILL, Darling Harbour",
        "rating" : 3.90,
        "reference" : "CpQBjAAAAHDHuimUQATR6gfoWNmZlk5dKUKq_n46BpSzPQCjk1m9glTKkiAHH_Gs4xGttdOSj35WJJDAV90dAPnNnZK2OaxMgogdeHKQhIedh6UduFrW53wtwXigUfpAzsCgIzYNI0UQtCj38cr_DE56RH4Wi9d2bWbbIuRyDX6tx2Fmk2EQzO_lVJ-oq4ZY5uI6I75RnxIQJ6smWUVVIHup9Jvc517DKhoUidfNPyQZZIgGiXS_SwGQ1wg0gtc",
        "types" : [ "restaurant", "food", "establishment" ],
        "vicinity" : "Harbourside Centre 10 Darling Drive, Darling Harbour, Sydney"
    },
    {
      "geometry" : {
        "location" : {
          "lat" : -33.8722580,
          "lng" : 151.1986550
        }
      },
        "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
        "id" : "27ea39c8fed1c0437069066b8dccf958a2d06f19",
        "name" : "Criniti's Darling Harbour",
        "rating" : 3.60,
        "reference" : "CnRwAAAA-5kh5WZ3m1CMTO3LslvhRtAYsrOcQP7wB9AE1bV5R6Bd46NN5wB16MtImXWQ9eS1nWVbV_j-8iXYXRpU13Efp1t_d-Dp4WfEsFcYj-_g6db1SC1vAukyeCyotjS5xrwhzqWWAhgmA4qIliWeev2u1BIQprWzxl_hkj_w3QdTiUBYKxoUDVTjF4RugJdaJWkC4n6w6pSajKw",
        "types" : [ "restaurant", "food", "establishment" ],
        "vicinity" : "Shop 461, 2-10 Darling Drive, Harbourside Shopping Centre, DARLING HARBOUR"
    },
    ...additional results...
  ],
  "status" : "OK"
}

https://developers.google.com/maps/documentation/places/

推荐答案

Google Places API当前不支持此功能。如果您认为这将是一项有用的功能,您可以在此处提交‘Places API-Feature Request’:

http://code.google.com/p/gmaps-api-issues/issues/entry?template=Places%20API%20-%20Feature%20Request

这篇关于从适用于iOS的Google Places访问位置图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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