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

Categories

0 votes
1.0k 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 Reply

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>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...