iOS 应用程序中的 Google Places API
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5535361/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Google Places API in iOS application
提问by Mustafa
Let me share my findings before asking the question.
在问这个问题之前,让我分享一下我的发现。
Google Places API documentation says: "Note: To use the Google Places API you must first request a Maps API client ID and cryptographic key which you must use to sign your request URLs. For information on signing URL requests, please see the URL Authentication documentation within the Web Service APIs home page."
Google Places API 文档说:“注意:要使用 Google Places API,您必须首先请求 Maps API 客户端 ID 和加密密钥,您必须使用它来签署请求 URL。有关签署 URL 请求的信息,请参阅 URL 身份验证文档在 Web 服务 API 主页中。”
The Google Places API is still in developer preview. http://code.google.com/apis/maps/documentation/places/
We need a Client ID (required) and a Signature (required) to use the Google Places API. http://code.google.com/apis/maps/documentation/webservices/index.html#URLSigning
And, to get the Signature, we need a Google Adsense account to get Adsense publisher id (required). http://gmaps-ws-console.appspot.com/
You can find the requirements to use the Google Places API here. http://code.google.com/apis/maps/documentation/places/index.html#Requirements
The Signup page for Google Maps API suggest that, "Your service must be freely accessible to end users. To use Google mapping technology in other types of applications, please use Google Maps API Premier. See this FAQ for more information." http://code.google.com/intl/it-IT/apis/maps/signup.html
Google Places API 仍处于开发者预览阶段。 http://code.google.com/apis/maps/documentation/places/
我们需要一个客户端 ID(必需)和一个签名(必需)才能使用 Google Places API。 http://code.google.com/apis/maps/documentation/webservices/index.html#URLSigning
而且,要获得签名,我们需要一个 Google Adsense 帐户来获取 Adsense 发布商 ID(必需)。 http://gmaps-ws-console.appspot.com/
您可以在此处找到使用 Google Places API 的要求。 http://code.google.com/apis/maps/documentation/places/index.html#Requirements
Google Maps API 的注册页面建议:“最终用户必须可以免费访问您的服务。要在其他类型的应用程序中使用 Google 地图技术,请使用 Google Maps API Premier。有关更多信息,请参阅此常见问题解答。” http://code.google.com/intl/it-IT/apis/maps/signup.html
Now, here's what i want to know.
现在,这就是我想知道的。
I'm planning on using Google Places API in my iOS application. I don't want to use Adsense. Can i still access the Google Places API for free? How?
我计划在我的 iOS 应用程序中使用 Google Places API。我不想使用 Adsense。我仍然可以访问谷歌的Places API的免费的吗?如何?
If i can't access the Google Places API for free, what are the costs associated with using this service, and the available payment models? I wasn't able to find any particular resources for this information.
如果我无法免费访问 Google Places API,使用此服务的相关费用是多少?可用的付款模式是什么?我无法找到有关此信息的任何特定资源。
Here's a specific scenario. What if my iOS application is free. The free version uses Google Places API. But... my iOS application has some additional features which are exposed using In-app Purchase (paid features). The paid features do not use Google Places API. Is this acceptable?
这是一个特定的场景。如果我的 iOS 应用程序是免费的怎么办。免费版本使用 Google Places API。但是...我的 iOS 应用程序有一些使用应用内购买(付费功能)公开的附加功能。付费功能不使用 Google Places API。这是可以接受的吗?
回答by Thor Mitchell
We opened up the Google Places API to all developers this week at Google I/O and simplified the Terms and authentication:
本周,我们在 Google I/O 上向所有开发人员开放了 Google Places API,并简化了条款和身份验证:
http://googlegeodevelopers.blogspot.com/2011/05/places-everybody-show-is-about-to-begin.html
http://googlegeodevelopers.blogspot.com/2011/05/places-everybody-show-is-about-to-begin.html
You no longer need to sign your requests, but instead just use a key obtained using the Google APIs console. An AdSense ID is no longer required, but you will need to go though a credit card based identity check in order to upgrade from 1,000 to 100,000 request per day.
您不再需要对请求进行签名,而只需使用通过 Google API 控制台获取的密钥即可。不再需要 AdSense ID,但您需要通过基于信用卡的身份检查才能将每天的请求从 1,000 升级到 100,000。
You can use the Places API in mobile apps that are free or sold online through a mobile app store such as the Apple App Store or Android Market. For fee desktop apps however will require a Maps API Premier license which will be offered once the Places API graduates from Google Code Labs.
您可以在免费或通过移动应用商店(例如 Apple App Store 或 Android Market)在线销售的移动应用中使用 Places API。但是,付费桌面应用程序需要 Maps API Premier 许可证,一旦 Places API 从 Google Code Labs 毕业,就会提供该许可证。
For information on getting started, see the docs:
有关入门的信息,请参阅文档:
http://code.google.com/apis/maps/documentation/places/
http://code.google.com/apis/maps/documentation/places/
HTH,
哈,
Thor
雷神