Added location error handling.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Refactor**
- Updated location retrieval functionality:
- Renamed function for clarity.
- Enhanced location information to include latitude and longitude.
- Improved error handling for smoother user experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>