Added common func for share location feature