src/main/java/com/yssh/service/LocationService.java
@@ -9,11 +9,6 @@ import java.util.ArrayList; import java.util.List; /** * @author wMeng * @date 2022/10/30 13:25 * @version 1.0 */ @Service public class LocationService { @Resource @@ -50,8 +45,9 @@ } List<Location> list = new ArrayList<>(); // 1米=0.0000089932 for (Location loc : vocAddrs) { if (Math.abs(loc.getLon() - x) <= 0.00009 && Math.abs(loc.getLat() - y) <= 0.00009) { if (Math.abs(loc.getLon() - x) <= 0.0009 && Math.abs(loc.getLat() - y) <= 0.0009) { list.add(loc); } }