const navMap = app.requireModule("navMap");
let navMap = requireModuleJs('navMap');
打开三方导航app
入参说明:params为json形式字符串
{
"mode": "0",//可选 "0" 驾车(默认)"1"(公交) "2"(步行) "3"(骑行)
"origin": {
"lat": "11",//纬度(必输)
"lon": "11",//经度(必输)
"name": ""//"起点名称"//(可选)
},
"destination": {
"lat": "11",//纬度(必输)
"lon": "11",//经度(必输)
"name": ""//"终点名称"//(可选)
}
}
LSApplicationQueriesSchemes</key>
<array>
ng>baidumap</string>
ng>iosamap</string>
</array>