在Google Places API for iOS上显示地方描述 [英] Displaying a Place Description on Google Places API for iOS

查看:143
本文介绍了在Google Places API for iOS上显示地方描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果已经回答,我道歉。我无法找到它,而且我对iOS版GooglePlaces API非常陌生。

My apologies if this has been answered already. I cannot find it and I'm very new to the GooglePlaces API for iOS.

问题:如何使用Places API获取地点的描述并在iOS上显示app?

Question: How do I get a place's description using the Places API and display on an iOS app?

我不确定这是否可能,但我想知道。请参阅附图,了解我所说的描述。

I'm not sure if this is even possible but I'd like to find out. Please see the attached image as to what I mean by place "description."

Google地方描述示例

推荐答案

您必须放置详细信息请求,这是以下表单的HTTP网址,包含必需的参数

You have to make Place Details request which is an HTTP URL of the following form with required parameter:

https://maps.googleapis.com/maps/api/place/details/json? placeid = ChIJN1t_tDeuEmsRUsoyG83frY4& key = YOUR_API_KEY

key (YOUR_API_KEY) - 您的应用程序的API密钥。此密钥标识您的应用程序以进行配额管理,以便从您的应用程序添加的地点立即可用于您的应用程序。

key (YOUR_API_KEY) — Your application's API key. This key identifies your application for purposes of quota management and so that places added from your application are made immediately available to your app.

placeid ( ChIJN1t_tDeuEmsRUsoyG83frY4) - 从地方搜索返回的唯一标识地点的文本标识符。有关地点ID的详细信息,请参阅地点ID概述。

参考 - 一个文字标识符,用于唯一标识从地方搜索返回的地点。

placeid (ChIJN1t_tDeuEmsRUsoyG83frY4) — A textual identifier that uniquely identifies a place, returned from a Place Search. For more information about place IDs, see the place ID overview. OR reference — A textual identifier that uniquely identifies a place, returned from a Place Search.

您可以以JSON或XML格式请求输出;

You can request output in JSON or XML format;

以下网站的所有上述信息,请通过它
https://developers.google.com/places/web-service/details

All above info from below site, please go through it: https://developers.google.com/places/web-service/details

这篇关于在Google Places API for iOS上显示地方描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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