diff --git a/src/osm/jp/coverage/police/Police.java b/src/osm/jp/coverage/police/Police.java index 65a3c51..27f2cc2 100644 --- a/src/osm/jp/coverage/police/Police.java +++ b/src/osm/jp/coverage/police/Police.java @@ -126,7 +126,7 @@ while (rset2.next()) { double lat2 = rset2.getDouble("lat"); double lon2 = rset2.getDouble("lon"); - double dd = Japan.distanceKm(lat,lat2,lon,lon2); + double dd = Japan.distanceKm(lat,lon,lat2,lon2); if (dd < distance) { distance = dd; idref = rset2.getString("idref"); diff --git a/src/osm/jp/coverage/postoffice/Postoffice.java b/src/osm/jp/coverage/postoffice/Postoffice.java index 7687beb..389ce01 100644 --- a/src/osm/jp/coverage/postoffice/Postoffice.java +++ b/src/osm/jp/coverage/postoffice/Postoffice.java @@ -101,7 +101,7 @@ while (rset2.next()) { double lat2 = rset2.getDouble("lat"); double lon2 = rset2.getDouble("lon"); - double dd = Japan.distanceKm(lat,lat2,lon,lon2); + double dd = Japan.distanceKm(lat,lon,lat2,lon2); if (dd < distance) { distance = dd; idref = rset2.getString("idref");