fix method
This commit is contained in:
parent
0f8b5cc14a
commit
56450a5302
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ public class GeocodingUtilities {
|
||||||
|
|
||||||
public double getDistanceP() {
|
public double getDistanceP() {
|
||||||
if(point != null && searchPoint != null) {
|
if(point != null && searchPoint != null) {
|
||||||
return MapUtils.getDistance(point, searchPoint);
|
//return MapUtils.getDistance(point, searchPoint);
|
||||||
|
return Math.sqrt(point.distSquare));
|
||||||
} else {
|
} else {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue