refined get user city by ip logic