Parent Directory | Revision Log
Use a conversion helper instead of hardcoded latitude/longitude spans
1 | package dk.daoas.fulddaekning; |
2 | |
3 | public class BKConstants extends Constants { |
4 | |
5 | @Override |
6 | public double getLatitudeMargin() { |
7 | return GeoPoint.kmToLatitude(30); // 30 km |
8 | } |
9 | |
10 | @Override |
11 | public double getLongitudeMargin() { |
12 | return GeoPoint.kmToLongitude(30); |
13 | } |
14 | |
15 | @Override |
16 | public double getMaxDistance() { |
17 | return 30.0; //max 200 km |
18 | } |
19 | |
20 | public int getMinPostnr() { |
21 | return 1000; |
22 | } |
23 | |
24 | public int getMaxPostnr() { |
25 | return 4999; |
26 | } |
27 | |
28 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |