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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2200 - (hide annotations) (download)
Thu Sep 11 08:14:40 2014 UTC (9 years, 8 months ago) by torben
File size: 475 byte(s)
Generalize solution so it also works with BK - all distributor specific values are moved to Constants system
1 torben 2200 package dk.daoas.fulddaekning;
2    
3     public class DaoConstants extends Constants{
4    
5     public static final double LATITUDE_MARGIN = 0.02702703; // 3 km margin
6     public static final double LONGUTUDE_MARGIN = 0.046875; // 3 km margin
7    
8     public double getLatitudeMargin() {
9     return LATITUDE_MARGIN;
10     }
11    
12     public double getLongitudeMargin() {
13     return LONGUTUDE_MARGIN;
14     }
15    
16     public double getMaxDistance() {
17     return 6.0; // vi gemmer ikke afstande over 6 km
18     }
19    
20     }

  ViewVC Help
Powered by ViewVC 1.1.20