2 |
|
|
3 |
public class DaoConstants extends Constants{ |
public class DaoConstants extends Constants{ |
4 |
|
|
|
public static final double LATITUDE_MARGIN = 0.02702703; // 3 km margin |
|
|
public static final double LONGUTUDE_MARGIN = 0.046875; // 3 km margin |
|
|
|
|
5 |
public double getLatitudeMargin() { |
public double getLatitudeMargin() { |
6 |
return LATITUDE_MARGIN; |
return GeoPoint.kmToLatitude(3); // 3km |
7 |
} |
} |
8 |
|
|
9 |
public double getLongitudeMargin() { |
public double getLongitudeMargin() { |
10 |
return LONGUTUDE_MARGIN; |
return GeoPoint.kmToLongitude( 3 ); // 3km |
11 |
} |
} |
12 |
|
|
13 |
public double getMaxDistance() { |
public double getMaxDistance() { |
14 |
return 6.0; // vi gemmer ikke afstande over 6 km |
return 6.0; // vi gemmer ikke afstande over 6 km |
15 |
} |
} |
16 |
|
|
17 |
|
|
18 |
|
public int getMinPostnr() { |
19 |
|
return 6000; |
20 |
|
} |
21 |
|
|
22 |
|
public int getMaxPostnr() { |
23 |
|
return 9550; |
24 |
|
} |
25 |
|
|
26 |
} |
} |