Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
707 views
in Technique[技术] by (71.8m points)

Web端如何调用百度地图app?

最近做一个导航的功能,想从web端携带目的地的经纬度等参数跳到百度app,
location.href="http://api.map.baidu.com/marker?location="+latitude+","+longitude+"&title=我的位置&content="+address+"&output=html";
这样写的话跳到的是百度地图web端,怎么样才可以跳到百度地图APP,求解,谢谢。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

文档:https://lbsyun.baidu.com/index.php?title=uri/api/ios

//网页应用调起iOS百度地图方式举例
<a href="baidumap://map/marker?location=40.047669,116.313082&title=我的位置&content=百度奎科大厦&src=ios.baidu.openAPIdemo">地图标点</a>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...