Skip to content

Commit

Permalink
Improvement to GPS Accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
kblairwhite committed Jun 6, 2014
1 parent 4e26702 commit 5e8db97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/location.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ var error;
//Turn on the GPS
if (Ti.Geolocation.locationServicesEnabled) {
Ti.Geolocation.purpose = 'Determine Location';
Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST;
//Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST; //this line seems to be buggy
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_NEAREST_TEN_METERS;
Ti.Geolocation.distanceFilter = 0;
Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;
//error = false;
Expand Down

0 comments on commit 5e8db97

Please sign in to comment.