1.1 --- a/geo/src/main/java/net/java/html/geo/Position.java Fri Jul 04 09:07:45 2014 +0200
1.2 +++ b/geo/src/main/java/net/java/html/geo/Position.java Fri Jul 04 09:08:20 2014 +0200
1.3 @@ -90,24 +90,46 @@
1.4 this.data = data;
1.5 }
1.6
1.7 + /**
1.8 + * @return geographic coordinate specified in decimal degrees.
1.9 + */
1.10 public double getLatitude() {
1.11 return ((Number)JsG.get(data, "latitude")).doubleValue(); // NOI18N
1.12 }
1.13
1.14 + /**
1.15 + * @return geographic coordinate specified in decimal degrees.
1.16 + */
1.17 public double getLongitude() {
1.18 return ((Number)JsG.get(data, "longitude")).doubleValue(); // NOI18N
1.19 - }
1.20 + }
1.21
1.22 + /**
1.23 + * The accuracy attribute denotes the accuracy level of the latitude
1.24 + * and longitude coordinates. It is specified in meters.
1.25 + * The value of the accuracy attribute must be a non-negative number.
1.26 + *
1.27 + * @return accuracy in meters
1.28 + */
1.29 public double getAccuracy() {
1.30 return ((Number)JsG.get(data, "accuracy")).doubleValue(); // NOI18N
1.31 }
1.32
1.33 - /** @return may return null, if the information is not available */
1.34 + /** Denotes the height of the position, specified in meters above the ellipsoid.
1.35 + * If the implementation cannot provide altitude information,
1.36 + * the value of this attribute must be null.
1.37 + * @return value in meters, may return null, if the information is not available
1.38 + */
1.39 public Double getAltitude() {
1.40 return (Double)JsG.get(data, "altitude"); // NOI18N
1.41 }
1.42
1.43 - /** @return may return null, if the information is not available */
1.44 + /** The altitude accuracy is specified in meters.
1.45 + * If the implementation cannot provide altitude information,
1.46 + * the value of this attribute must be null. Otherwise, the value
1.47 + * must be a non-negative real number.
1.48 + * @return value in meters; may return null, if the information is not available
1.49 + */
1.50 public Double getAltitudeAccuracy() {
1.51 return (Double)JsG.get(data, "altitudeAccuracy"); // NOI18N
1.52 }