对 iPhone 应用程序进行编程,我需要使用 Google map api 来获取方向和路线。不幸的是,Google map 是围绕 JavaScript 工作的。
知道如何做到这一点吗?
最佳答案
在此之前,您应该了解,在付费应用程序中使用 map 数据违反 Google 的条款和条件。
来自http://code.google.com/apis/maps/terms.html
9.1 Free, Public Accessibility to Your Maps API Implementation. Your Maps API Implementation must be generally accessible to users without charge. You may require users to log in to your Maps API Implementation if you do not require users to pay a fee. Unless you have entered into a separate written agreement with Google or obtained Google's written permission, your Maps API Implementation must not:
(a) require a fee-based subscription or other fee-based restricted access; or (b) operate only behind a firewall or only on an internal network (except during the development and testing phase).
10.8 use the Static Maps API other than in an implementation in a web browser;
我也包含了第 10.8 节。这是一个有争议的问题,因为您可能会认为 UIWebView 是一种浏览器,但仍然要意识到这一点。
如果您确实决定继续使用它,那么以下是一个非常好的实现,可以桥接您需要的大部分代码,http://code.google.com/p/iphone-google-maps-component/
关于javascript - 将 Google map 数据导入 iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/938879/