android 自7.4.0 版本之后新增了检索建筑物检索接口,可以检索出3d楼块数据。
使用说明:
该服务为高级权限,需申请权限后才可以使用,请给我们。
实现步骤:
buildingsearch mbuildingsearch =buildingsearch.newinstance();
ongetbuildingsearchresultlistener ongetbuildingsearchresultlistener =newongetbuildingsearchresultlistener(){@overridepublicvoidongetbuildingresult(buildingresult result){// 返回结果处理}};
mbuildingsearch.setongetbuildingsearchresultlistener(ongetbuildingsearchresultlistener);
buildingsearchoption buildingsearchoption =newbuildingsearchoption();buildingsearchoption.setlatlng(newlatlng(23.02738,113.748139));mbuildingsearch.requestbuilding(buildingsearchoption);
mbuildingsearch.destroy();
具体使用示例可参考官方demo中的building3dprismdemo类
上一篇
下一篇
本篇文章对您是否有帮助?