… | |
… | |
21 | /**
|
21 | /**
|
22 | * Simple VO class to store latitude/longitude information.
|
22 | * Simple VO class to store latitude/longitude information.
|
23 | */
|
23 | */
|
24 | public class Location2
|
24 | public class Location2
|
25 | {
|
25 | {
|
26 | private BigDecimal latitude;
|
26 | private BigDecimal latitude;
|
27 | private BigDecimal longitude;
|
27 | private BigDecimal longitude;
|
28 |
|
28 |
|
29 | /**
|
29 | /**
|
30 | * Creates a new instance of <code>Location</code> with the given parameters.
|
30 | * Creates a new instance of <code>Location</code> with the given parameters.
|
31 | *
|
31 | *
|
32 | * @param latitude
|
32 | * @param latitude
|
33 | * the latitude, in degrees, of this location. North latitude is positive, south negative.
|
33 | * the latitude, in degrees, of this location. North latitude is positive, south negative.
|
34 | * @param longitude
|
34 | * @param longitude
|
35 | * the longitude, in degrees of this location. East longitude is positive, west negative.
|
35 | * the longitude, in degrees of this location. East longitude is positive, west negative.
|
36 | */
|
36 | */
|
37 | public Location2(String latitude, String longitude)
|
37 | public Location2(String latitude, String longitude)
|
38 | {
|
38 | {
|
39 | this.latitude = new BigDecimal(latitude);
|
39 | this.latitude = new BigDecimal(latitude);
|
40 | this.longitude = new BigDecimal(longitude);
|
40 | this.longitude = new BigDecimal(longitude);
|