26 |
|
|
27 |
package geocode; |
package geocode; |
28 |
|
|
29 |
|
import geocode.kdtree.KDNodeComparator; |
30 |
import static java.lang.Math.cos; |
import static java.lang.Math.cos; |
31 |
import static java.lang.Math.sin; |
import static java.lang.Math.sin; |
32 |
import static java.lang.Math.toRadians; |
import static java.lang.Math.toRadians; |
|
import geocode.kdtree.KDNodeComparator; |
|
33 |
|
|
34 |
import java.util.Comparator; |
import java.util.Comparator; |
35 |
|
|
57 |
} |
} |
58 |
|
|
59 |
|
|
|
@Override |
|
|
protected boolean isNodeCompatible(GeoPoint other) { |
|
|
return true; |
|
|
} |
|
60 |
|
|
61 |
@Override |
@Override |
62 |
protected double squaredDistance(GeoPoint other) { |
protected double squaredDistance(GeoPoint other) { |