Parent Directory | Revision Log
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 |