I am using the plugin for geolocation of cordova and it all works , except the altitude . is my problem or it is not possible to have this value ? This is the plugin code and my:
var onSuccess = function (posizione) {
alert ('Latitudine:' + position.coords.latitude + '\ n' +
'Longitude:' + position.coords.longitude + '\ n' +
'Altitudine:' + position.coords.altitude + '\ n' +
'Precisione:' + position.coords.accuracy + '\ n' +
'Altitude Precisione:' + position.coords.altitudeAccuracy + '\ n' +
'Intestazione:' + position.coords.heading + '\ n' +
'Speed:' + position.coords.speed + '\ n' +
'Timestamp:' + position.timestamp + '\ n');
};
// OnError Callback riceve un oggetto PositionError
//
Funzione onError (errore) {
alert ('codice:' + error.code + '\ n' +
'Messaggio:' + Error.message + '\ n');
}
navigator.geolocation.getCurrentPosition (onSuccess, onError, {enableHighAccuracy: true});
I repeat , it does not work just that.