I\'m trying to get current localisation using phonegap javascript api. Here is a sample code taken from phonegap website:
If you are seeing the error in Android, you want to add the enableHighAccuracy flag:
navigator.geolocation.getCurrentPosition(onSuccess, onError, { enableHighAccuracy: true });
if you are trying it on android device then altitudeAccuracy property is not support by Android devices, it will always return null.
I have just tried it on PhoneGap 1.4.1, iOS Simulator 5.0 and it works fine.
What kind of error are you getting ?