zoukankan      html  css  js  c++  java
  • 通过URI协议实现浏览器调用手机app

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
        <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
        <title>测试Android 和 iOS 地图导航</title>
        <link rel="stylesheet" type='text/css' href="../../css/aui.css"/>
    </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>
     
  • 相关阅读:
    通过模板类简单实现Spark的JobServer
    aggregate 和 treeAggregate 的对比
    IntelliJ Idea 常用快捷键列表
    dataframe 数据统计可视化---spark scala 应用
    用java api读取HDFS文件
    .net Core 简单中间件使用
    .Net Core Ocelot网关使用熔断、限流 二
    .Net Core Ocelot网关使用 一
    Docker 问题处理
    CentOS 创建用户
  • 原文地址:https://www.cnblogs.com/zhangchs/p/9166545.html
Copyright © 2011-2022 走看看