Detection of the current location