使用示例如下:
// 构造检索参数BMFPoiDetailShareURLOption poiDetailShareURLOption =BMFPoiDetailShareURLOption(uid: 'ba97895c02a6ddc7f60e775f');// poi详情短串分享检索BMFPoiDetailShareUrlSearch poiDetailShareUrlSearch = BMFPoiDetailShareUrlSearch();// poi详情短串分享检索信息结果回调poiDetailShareUrlSearch.onGetPoiDetailShareURLResult(callback: (BMFShareURLResult result, BMFSearchErrorCode errorCode) {print(`poi详情短串分享检索信息 result = ${result.toMap()}, 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()}, 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()}, errorCode = ${errorCode}`);// 解析reslut,具体参考demo});// 发起检索bool flag = await routePlanShareUrlSearch.routePlanShareUrlSearch(routePlanShareURLOption);
上一篇
下一篇
本篇文章对您是否有帮助?