get location from shared preferences.