Refactoring geolocation code so we can get the user's location even if the map is disabled

...he map is disabled