demo-url:
api:http://indoor.popsmart.cn:8084/sxswsw/api/site_model/within?location=120.58645186143931&location=29.991567318555767&location=1.1677126884460454&type=BUILDING
demo:http://indoor.popsmart.cn:8084/sxswsw-sx/
type 返回都是相应坐标的参数
BUILDING: 建筑物 -> 只返回建筑物数据
FLOOR: 楼层 -> 只返回楼层数据 - 多边形数据为null, 把找到坐标房间信息返回给前端
ROOM: 房间 -> 只返回房间数据
type=null -> 返回相应参数的建筑物.楼层.房间数据
服务器信息
/阿里云-四维时代-官网测试服务器-120.25.146.52/root/user/java/jar_run/
aip: http://127.0.0.1:9294/indoor/aa/api/images/1288
221.4.210.172:9294/indoor/aa/api/images/1288
#API
https://testlaser.4dkankan.com/indoor/test1/api/site_model/within?location=120.58629809780416&location=29.991469096442984&location=2.050019474815037&type=FLOOR
https://testlaser.4dkankan.com/indoor/test1/api/site_model/within?location=120.58629809780416&location=29.991469096442984&location=2.050019474815037&type=FLOOR
http://127.0.0.1:9294/indoor
https://testlaser.4dkankan.com/indoor
http://indoor.popsmart.cn:8084/sxswsw/api/site_model/within?location=120.58629809780416&location=29.991469096442984&location=2.050019474815037&type=FLOOR
http://test.4dkankan.com:9294/indoor/{test1}/api/images/{id}
# 测试计算最小距离
http://127.0.0.1:9294/indoor/test1/api/images/filter?hidden=false&lat=29.99150810503829&limit=1&lon=120.58627208336249&z=2.050019474815037
# 有半径的
http://127.0.0.1:9294/indoor/test2/api/images/filter?hidden=false&lat=22.3668029722544&lon=113.595671720124&radius=20&site_model_entity=
# 2021-07-15
这个接口还有问题:
https://testlaser.4dkankan.com/indoor/test1/api/images/filter?hidden=false&lat_max=29.99143363257292&lat_min=29.991244191301476&lon_max=120.5867345486961&lon_min=120.58598839339827&site_model_entity=2&site_model_entity=&spacing=1.56
https://testlaser.4dkankan.com/indoor/test1/api/images/filter?hidden=false&lat_max=29.99143363257292&lat_min=29.991244191301476&lon_max=120.5867345486961&lon_min=120.58598839339827&site_model_entity=2&site_model_entity=&step=4&spacing=1.56
这两个接口,一个有值,一个没有,这个不应该,都应该有值才对。估计是没有step这个参数导致的,这里要改改,step可以没有。
# 2021-07-16
filte查询接口, 测试过是成功的
http://127.0.0.1:9294/indoor/test1/api/filter/filter?dataset=45&hidden=false&limit=100&site_model_entity=17&sort_by=asc&sort_order=file_id
导入数据是,嵌套数据的id不需要改成_id