Skip to content

Instantly share code, notes, and snippets.

View saurshaz's full-sized avatar

saurshaz saurshaz

View GitHub Profile
exports.init = function() {
Ti.Geolocation.purpose = 'Mileage Calculate';
checkGeoPermission();
Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;
//
// SET ACCURACY - THE FOLLOWING VALUES ARE SUPPORTED
//