码迷,mamicode.com
首页 > 移动开发 > 详细

通过URI协议实现浏览器调用手机app

时间:2016-05-16 12:27:09      阅读:341      评论:0      收藏:0      [点我收藏+]

标签:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <br />
    <br />
    <br />
    <h1>百度地图</h1>
    ios:
    <a href="baidumap://map/direction?mode=driving&origin=30.29168339102277,120.15934515331212&destination=杭州火车东站®ion=杭州">ios百度地图</a>
    android:
    <a href="bdapp://map/direction?origin=latlng:30.29168339102277,120.15934515331212|name:当前位置&destination=杭州火车东站&mode=driving&region=杭州&src=JXAPP">android百度地图</a>
    <br />
    <br />
    <br />
    <h1>高德地图</h1>
    ios:
    <a href="iosamap://path?sourceApplication=applicationName&sid=BGVIS1&slat=30.29168339102277&slon=120.15934515331212&sname=当前位置&did=BGVIS2&dlat=30.297047&dlon=120.21935&dname=杭州火车东站&dev=0&m=0&t=0">ios高德地图</a>
    android:
    <a href="androidamap://route?sourceApplication=softname&slat=30.29168339102277&slon=120.15934515331212&sname=当前位置&dlat=30.297047&dlon=120.21935&dname=杭州火车东站&dev=0&m=0&t=0">android高德地图</a>
    <br />
    <br />
    <br />
    <h1>Apple地图</h1>
    ios:
    <a href="http://maps.apple.com/?saddr=东方豪园&daddr=杭州火车东站">Apple地图</a>
</body>
</html>

  

通过URI协议实现浏览器调用手机app

标签:

原文地址:http://www.cnblogs.com/pangjie/p/5497500.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!