feiyu02
2025-03-07 db447bb757b51f8d03e62d6ae4f183b4608723ef
src/main/kotlin/com/flightfeather/uav/lightshare/service/impl/SceneServiceImpl.kt
@@ -1,6 +1,7 @@
package com.flightfeather.uav.lightshare.service.impl
import com.flightfeather.uav.common.location.LocationRoadNearby
import com.flightfeather.uav.domain.entity.GridCell
import com.flightfeather.uav.domain.entity.SceneInfo
import com.flightfeather.uav.domain.repository.SceneInfoRep
import com.flightfeather.uav.lightshare.bean.AreaVo
@@ -21,4 +22,10 @@
    override fun searchByCoordinate(lng: Double, lat: Double, radius: Double): List<SceneInfo?> {
        return locationRoadNearby.searchByRadius(Pair(lng, lat), radius)
    }
    override fun searchByGrid(gridCell: GridCell): List<SceneInfo?> {
        // 首先用网格中心点以及网格对角线的长度求取四至范围,筛选该范围内的场景点位
        // 再通过计算坐标点是否落在多边形内
        TODO()
    }
}