Geolocation Refreshing to Current Location in map in Titanium

Titanium.Geolocation.purpose = "Recieve User Location";
Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
 
// Set Distance filter. This dictates how often an event fires based on the distance the device moves. This value is in meters.
Titanium.Geolocation.distanceFilter = 10;
//set the mapview with the current location
var mapview = Titanium.Map.createView({
    mapType: Titanium.Map.STANDARD_TYPE,
    animate:true,
    region: {latitude:39.30109620906199, longitude:-76.60234451293945, latitudeDelta:0.1, longitudeDelta:0.1},
    regionFit:true,
    userLocation:true,
    visible: true,
});
 
function getLocation(){
//Get the current position and set it to the mapview
Titanium.Geolocation.getCurrentPosition(function(e){
        var region={
            latitude: e.coords.latitude,
            longitude: e.coords.longitude,
            animate:true,
            latitudeDelta:0.001,
            longitudeDelta:0.001
        };
        mapview.setLocation(region);
});
}
 
win.add(mapview);
 
Titanium.Geolocation.addEventListener('location',function(){
    getLocation();
});

How to change the name and email from terminal in Mac ?

By using this command we can check the current user name and email.

cat .gitconfig

For changing or updating the user name and email use below command in terminal.

git config –global user.name “Arun Tiwari”

git config –global user.email “arun.tiwari@laitkor.com”