2 |
|
|
3 |
public class DaoConstants extends Constants{ |
public class DaoConstants extends Constants{ |
4 |
|
|
5 |
|
final double MAX_DISTANCE = 6.0; |
6 |
|
|
7 |
public double getLatitudeMargin() { |
public double getLatitudeMargin() { |
8 |
return GeoPoint.kmToLatitude(3); // 3km |
return GeoPoint.kmToLatitude( MAX_DISTANCE/2 ); // 3km |
9 |
} |
} |
10 |
|
|
11 |
public double getLongitudeMargin() { |
public double getLongitudeMargin() { |
12 |
return GeoPoint.kmToLongitude( 3 ); // 3km |
return GeoPoint.kmToLongitude( MAX_DISTANCE/2 ); // 3km |
13 |
} |
} |
14 |
|
|
15 |
public double getMaxDistance() { |
public double getMaxDistance() { |
16 |
return 6.0; // vi gemmer ikke afstande over 6 km |
return MAX_DISTANCE; // vi gemmer ikke afstande over 6 km |
17 |
} |
} |
18 |
|
|
19 |
|
|
24 |
public int getMaxPostnr() { |
public int getMaxPostnr() { |
25 |
return 9550; |
return 9550; |
26 |
} |
} |
27 |
|
|
28 |
|
public String getTableExtension() { |
29 |
|
return ""; |
30 |
|
} |
31 |
|
|
32 |
|
public boolean doExtendedLookup() { |
33 |
|
return false; |
34 |
|
} |
35 |
|
|
36 |
|
public boolean doCheckHO() { |
37 |
|
return false; |
38 |
|
} |
39 |
|
|
40 |
} |
} |