更新时间: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