From b8eeccbf17d74e4dc098819320aeea44726e0fb1 Mon Sep 17 00:00:00 2001 From: rongchao Date: Sun, 26 Apr 2020 10:20:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/elink/esua/epdc/commons/tools/utils/GPSUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/GPSUtils.java b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/GPSUtils.java index ad1e5f9..f851e67 100644 --- a/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/GPSUtils.java +++ b/epdc-commons-tools/src/main/java/com/elink/esua/epdc/commons/tools/utils/GPSUtils.java @@ -48,10 +48,12 @@ public class GPSUtils { } public static boolean outOfChina(double lat, double lon) { - if (lon < 72.004 || lon > 137.8347) + if (lon < 72.004 || lon > 137.8347) { return true; - if (lat < 0.8293 || lat > 55.8271) + } + if (lat < 0.8293 || lat > 55.8271) { return true; + } return false; }