Method for triggering an action, according to a current geographical location of a mobile device of a user, the current geographical location being affected by error of measurements and/or insufficient accuracy for distinguishing between a plurality of places, the method comprises the following steps executed by the mobile device: • obtaining (S100, S110) a first set of information related to the user; • obtaining (S100, S110), according to the current geographical location, a second set of places; • for each place of the second set, determining (S100, S120), a combined posterior probability distribution that the user is currently located in said place, according to the first set of information, a first posterior probability distributions based on a set of parameters related to general habits of users, a second posterior probability distributions based on a set of parameters related to personal user habits of the user, and a third posterior probability distributions based on a set of parameters related to local habits of the user; • triggering at least one action, executed by the mobile device, according to the combined posterior probability distribution; the method further comprising a learning step comprising: • obtaining (S300, S310) a third set of information related to the user, the third set comprising information useful for identifying static stays of the user in the places of the second set of places; • Identifying (S300, S320) static stays of the user, according to the third set of information • for each static stay previously identified, updating the set of parameters related to general habits of users, the set of parameters related to personal habits of the user, and/or the set of parameters related to local habits of the user, according to information of the third set related to said static stay. • obtaining (S100, S110) a first set of information related to the user; • obtaining (S100, S110), according to the current geographical location, a second set of places; • for each place of the second set, determining (S100, S120), a combined posterior probability distribution that the user is currently located in said place, according to the first set of information, a first posterior probability distributions based on a set of parameters related to general habits of users, a second posterior probability distributions based on a set of parameters related to personal user habits of the user, and a third posterior probability distributions based on a set of parameters related to local habits of the user; • triggering at least one action, executed by the mobile device, according to the combined posterior probability distribution; • obtaining (S300, S310) a third set of information related to the user, the third set comprising information useful for identifying static stays of the user in the places of the second set of places; • Identifying (S300, S320) static stays of the user, according to the third set of information • for each static stay previously identified, updating the set of parameters related to general habits of users, the set of parameters related to personal habits of the user, and/or the set of parameters related to local habits of the user, according to information of the third set related to said static stay.