I am using JSR-179 (code snippet below), to obtain GPS location. However, I am not too happy with the accuracy of the data. I am getting GPS location, which sometimes varies by close to 100m, even when I have set the HorizontalAccuracy criteria to 10. Can anyone give me some pointers on this, please?
What I am doing :
My Midlet in an E72 phone, records the GPS location and stores it.
I then plot the recorded GPS location, on Google Maps.
Code Snippet in Midlet to obtain GPS location :
// set the criteria and get the location provider
Criteria criteria = new Criteria();
LocationProvider locationProvider = LocationProvider.getInstance(criteria);
Location location = locationProvider.getLocation(20);
Coordinates coordinates = location.getQualifiedCoordinates();
Expected Result :
The GPS location obtained, should be within 10mt radius, of the actual location.
Actual Result :
The GPS location accuracy varies. Sometimes, it is well within 10mt radius. Sometimes, it is varying by close to 100mts.