首页 / 浏览问题 / 移动GIS / 问题详情
使用这个ServiceQueryParameter 进行距离查询时 如何设置中心点
19EXP 2024年05月02日
使用这个ServiceQueryParameter 进行距离查询时 如何设置中心点

1个回答

要设置查询中心点,可以通过ServiceQueryParameter.setQueryDistance(double distance) 设置查询的距离,再用目标点构造一个geocircle,再用geocircle.convertToRegion(int segmentCount) 将圆几何对象转换为面几何对象,参数为圆弧段数,再设置查询几何对象
3,465EXP 2024年05月06日
这个不是设置距离吗  我意思是如何根据当前的定位 作为查询的中心点  然后查询方圆300米之类的
设置查询面后,范围依然剩生效
...