amap高德地图利用uri api实现商家名片、去这里的功能

高德地图web api使用过程中,经常需要在地图为某个商家标注marker,自然而然就有了点击marker弹出“导航去商家”的需求。

以前在amap的开发社区一直找这个接口,因为开发过程中我们都是使用javascript api进行业务开发,所以总是在js api中寻找,实际高德专门准备了uri api实现商家名片、去这里的功能。

高德地图URI API地址:http://lbs.amap.com/api/uri-api/summary/



调用地址:http://uri.amap.com/marker?position=116.473195,39.993253&name=商家名称,uri.amap.com会自动根据当前设备(pc或移动端)跳转到ditu.amap.com或者m.amap.com,手机端效果如下:


猜你喜欢

转载自blog.csdn.net/eclothy/article/details/77411259