flutter | 百度地图api sdk-凯发k8官方旗舰厅

浏览器版本低!无法浏览完整内容,建议升级或更换浏览器。
更新时间:2021年02月26日
poi详情短串分享

使用示例如下:

// 构造检索参数
bmfpoidetailshareurloption poidetailshareurloption = 
    bmfpoidetailshareurloption(uid: 'ba97895c02a6ddc7f60e775f');  
// poi详情短串分享检索 
bmfpoidetailshareurlsearch poidetailshareurlsearch = bmfpoidetailshareurlsearch(); 
// poi详情短串分享检索信息结果回调
poidetailshareurlsearch.ongetpoidetailshareurlresult( 
    callback: (bmfshareurlresult result, bmfsearcherrorcode errorcode) { 
      print( 
        `poi详情短串分享检索信息 result = ${result.tomap()}  \n errorcode = ${errorcode}`);  
        // 解析reslut,具体参考demo 
    });  
// 发起检索 
bool flag = await poidetailshareurlsearch.poidetailshareurlsearch(poidetailshareurloption);   
逆地理编码短串分享

使用示例如下:

// 构造检索参数
bmfreversegeoshareurloption reversegeoshareurloption =  
    bmfreversegeoshareurloption(  
      location: bmfcoordinate(40.0498500000, 116.2799200000), 
      name: '位置检索', 
      snippet: '北京市海淀区西北旺东路10号院'
    );  
// 检索实例 
bmfreversegeoshareurlsearch reversegeoshareurlsearch = bmfreversegeoshareurlsearch(); 
// 检索回调 
reversegeoshareurlsearch.ongetreversegeoshareurlresult( 
    callback: (bmfshareurlresult result, bmfsearcherrorcode errorcode) {  
      print( 
        ` 获取逆地理编码短串分享url result = ${result.tomap()}  \n errorcode = ${errorcode}`); 
      // 解析reslut,具体参考demo 
    }); 
// 发起检索
bool flag = await reversegeoshareurlsearch.reversegeoshareurlsearch(reversegeoshareurloption); 
路线规划短串分享

使用示例如下:

// 构造检索参数
bmfplannode start = bmfplannode(cityid: 131, name: '百度大厦');
bmfplannode end = bmfplannode(cityid: 131, name: '天安门');  
// 路线规划短串分享检索信息类 
bmfrouteplanshareurloption routeplanshareurloption = 
    bmfrouteplanshareurloption( 
      from: start, 
      to: end, 
    // cityid: 131, 
    // routeindex: 0, 
    routeplantype: bmfrouteplanshareurltype.drive
    ); 
// 检索实例 
bmfrouteplanshareurlsearch routeplanshareurlsearch = bmfrouteplanshareurlsearch();
// 检索回调 
routeplanshareurlsearch.ongetrouteplanshareurlresult(  
    callback: (bmfshareurlresult result, bmfsearcherrorcode errorcode) {  
      print( 
        `获取路线规划短串分享url result = ${result.tomap()}  \n errorcode = ${errorcode}`); 
      // 解析reslut,具体参考demo 
    }); 
// 发起检索
bool flag = await routeplanshareurlsearch.routeplanshareurlsearch(routeplanshareurloption); 
//mapopen-website-wiki.bj.bcebos.com/flutter/static2/video/share.mp4
  • 文档根本没法用

  • 文档水平很差

  • 文档水平一般

  • 文档不错

  • 文档写的很好

如发现文档错误,或对此文档有更好的建议,请在下方反馈。问题咨询请前往反馈平台提交工单咨询。

提交反馈

拖动标注工具

添加矩形标注

添加箭头标注

完成

取消

"));
网站地图