Backup before Placemark bugfixing

This commit is contained in:
Lennart Hensler committed 2012-01-17 13:39:04 +01:00
1 parent ec3ed3d677
commit fc05cda6fa
11 files changed
+66 -32

No files matched your search

@@ -13,6 +13,7 @@ import com.sap.sailing.geocoding.impl.ReverseGeocoderImpl;
public interface ReverseGeocoder {
final ReverseGeocoder INSTANCE = new ReverseGeocoderImpl();
final String GEONAMES_USER = "sailtracking";
final double POSITION_CACHE_DISTANCE_LIMIT_IN_KM = 5.0;
/**
* Returns the nearest {@link Placemark} towards the given {@link Position}.
@@ -34,7 +34,7 @@ public class ReverseGeocoderImpl implements ReverseGeocoder {
* The first number is the distance in kilometers and the second number is a needed calculation factor and mustn't
* be changed! To change the distance just change the first number!
*/
private final double POSITION_CACHE_DISTANCE_LIMIT = 5.0 * 0.00899928005759539236861051115911;
private final double POSITION_CACHE_DISTANCE_LIMIT = ReverseGeocoder.POSITION_CACHE_DISTANCE_LIMIT_IN_KM * 0.00899928005759539236861051115911;
private final int XKM_RADIUS = 5;
private final int ROWS_PER_XKM_RADIUS = 15;