Adding altituteAccuracy into Coordinates object

This commit is contained in:
macdonst
2010-08-28 01:49:54 +08:00
committed by Bryce Curtis
parent 86d6053d2d
commit b1af7d8739
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -14,7 +14,7 @@ function Position(coords, timestamp) {
this.timestamp = new Date().getTime();
}
function Coordinates(lat, lng, alt, acc, head, vel) {
function Coordinates(lat, lng, alt, acc, head, vel, altacc) {
/**
* The latitude of the position.
*/
@@ -39,6 +39,10 @@ function Coordinates(lat, lng, alt, acc, head, vel) {
* The velocity with which the device is moving at the position.
*/
this.speed = vel;
/**
* The altitude accuracy of the position.
*/
this.altitudeAccuracy = (altacc == "undefined") ? altacc : null;
}
/**