checkGeoLoc function

function to check the geographical location