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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2222 - (show annotations) (download)
Sat Sep 20 11:02:26 2014 UTC (9 years, 7 months ago) by torben
File size: 468 byte(s)
Use a conversion helper instead of hardcoded latitude/longitude spans
1 package dk.daoas.fulddaekning;
2
3 public class DaoConstants extends Constants{
4
5 public double getLatitudeMargin() {
6 return GeoPoint.kmToLatitude(3); // 3km
7 }
8
9 public double getLongitudeMargin() {
10 return GeoPoint.kmToLongitude( 3 ); // 3km
11 }
12
13 public double getMaxDistance() {
14 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 }

  ViewVC Help
Powered by ViewVC 1.1.20