/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/DaoConstants.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/DaoConstants.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2200 by torben, Thu Sep 11 08:14:40 2014 UTC revision 2231 by torben, Wed Oct 8 08:44:56 2014 UTC
# Line 2  package dk.daoas.fulddaekning; Line 2  package dk.daoas.fulddaekning;
2    
3  public class DaoConstants extends Constants{  public class DaoConstants extends Constants{
4                    
5          public static final double LATITUDE_MARGIN = 0.02702703; // 3 km margin          final double MAX_DISTANCE = 6.0;
         public static final double LONGUTUDE_MARGIN = 0.046875; // 3 km margin  
6                    
7          public double getLatitudeMargin() {          public double getLatitudeMargin() {
8                  return LATITUDE_MARGIN;                  return GeoPoint.kmToLatitude( MAX_DISTANCE/2 ); // 3km
9          }          }
10                    
11          public double getLongitudeMargin() {          public double getLongitudeMargin() {
12                  return LONGUTUDE_MARGIN;                  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            
20            public int getMinPostnr() {
21                    return 6000;
22            }
23            
24            public int getMaxPostnr() {
25                    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  }  }

Legend:
Removed from v.2200  
changed lines
  Added in v.2231

  ViewVC Help
Powered by ViewVC 1.1.20