bratergit / bratergit/webSiteCreation

Implement Functionality to Retrieve User IP and Location in JavaScript

Open
#15 2 comments 0 reactions 1 assignee Claimed by @adalbertobrant View on GitHub
configuration enhancement good first issue hacktoberfest-accepted javascript
Dominant language
JavaScript
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Description:

We need to implement a new feature in our application that involves obtaining the user’s IP address and geographical location using JavaScript. This feature is crucial for personalizing user experience and providing location-based services.

Details:

Objective: The main goal is to accurately fetch the user’s IP address and geographical location (latitude, longitude).
Approach: We can use public IP APIs like ‘ipify’ for getting the IP address and Geolocation APIs like ‘navigator.geolocation’ for getting the location.
Expected Outcome: The functionality should return the user’s IP address and geographical coordinates.
Error Handling: The functionality should handle scenarios where the user denies location access or if the location services are turned off.
Please note that we must respect user privacy and ensure we are in compliance with GDPR and other local regulations while implementing this feature.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.