javascript - 将 Google map 数据导入 iPhone

标签 javascript iphone google-maps maps

对 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/

相关文章:

javascript - 使用 jquery 选择器时按钮值为空

javascript - 遇到 JavaScript Array.indexOf 的奇怪现象(在 Node.js 中)

javascript - 在 headless 服务器云上运行的特定网站上的 Puppeteer 超时

iphone - 为用户提供激活飞行模式的选项

android - 如何在 android 中将 google map api key 从调试更改为发布?

javascript - Angular js 浏览器问题

iphone - 关闭模态视图 Controller

ios - UICollectionView 自定义单元格未重新加载

ios - 表格 View 中的空单元格

javascript - 使用谷歌地图自动完成时,ng 模型仅在点击后更新输入