H5唤起web地图导航

1.使用高德导航

**示例链接:**
	http://uri.amap.com/marker?position=lng,lat&name=address&coordinate=gaode&callnative=1
**标准参数链接:**
	http://uri.amap.com/marker?position=116.1414,39.1414&name=地址&coordinate=gaode&callnative=1
**更多参数了解:**
	[https://lbs.amap.com/api/uri-api/gettingstarted](https://lbs.amap.com/api/uri-api/gettingstarted)

2.使用腾讯导航

**示例链接:**
	http://apis.map.qq.com/uri/v1/marker?marker=coord:36.1414,116.1414;addr:山东省聊城市 
**标准参数链接:**
	http://apis.map.qq.com/uri/v1/marker?marker=coord:lat,lng;addr:address
**更多参数了解:**
	[https://lbs.qq.com/uri_v1/guide.html](https://lbs.qq.com/uri_v1/guide.html)

3.使用百度导航

**示例链接:**
	http://api.map.baidu.com/marker?location=纬度,经度&title=所在位置名称&content=所在位置的简介&output=html
**标准参数链接:**
	http://api.map.baidu.com/marker?location=40.047669,116.313082&title=我的位置&content=百度奎科大厦&output=html
**更多参数了解:**
	http://lbsyun.baidu.com/index.php?title=uri/api/web#service-page-anchor2

此三种方式仅限于在web页面打开地图导航,但是实际上在自己的APP中webview打开h5页面想要获取手机导航APP的时候并不建议这样做,原生Android或者IOS做的好更好一点,他们可以找到地图上已安装的地图APP并供客户自己选择,但是链接的话比较麻烦,比如有以下的坑:
1.微信浏览器打开导航的时候要求使用浏览器打开,客户体验极差
2.QQ打开高德地图链接,明明手机上已经有高德地图并且已经唤起了高德APP,但是又会跳到浏览器高德地图下载页面,返回QQ页面也是显示的高德下载(Android 小米8)
3.建议:小程序使用自带的手机导航方法打开非常便捷;APP中内嵌h5页面唤起导航APP交给原生Android/iOS去做吧

个人观点,如有不当,请帮忙纠正_

你可能感兴趣的:(Web)