从HTML页面链接到iPhone地图应用程序 [英] Link to iPhone map App from HTML page
本文介绍了从HTML页面链接到iPhone地图应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法从html页面链接到iPhone地图应用程序中的路线?
Is there a way to link to directions in the iPhone map app from a html page?
我们正在添加一个iPhone应用程序,它将链接到我们网站上的移动页面 - 我们想添加一个方向链接,到目前为止谷歌搜索一直没有发现。
We're placing an add in an iPhone app which will link to a mobile page on our website - we'd like to add a directions link, thus far google searches have been unrevealing.
推荐答案
这是一个创建链接的javascript函数:
function mapLink(myAddress) {
return 'http://maps.google.com/maps?q='+escape(myAddress);
}
这适用于iPhone。
This works great on the iPhone.
这篇关于从HTML页面链接到iPhone地图应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文