Skip to content

Conversation

Priya-creates
Copy link
Contributor

Implemented automatic city detection using the browser's geolocation API.

Screenshot 2025-10-15 225413 Screenshot 2025-10-15 225837
  • Requests user permission to access location.
  • Reverse-geocodes latitude/longitude to get city name using OpenWeatherMap API.
  • Automatically fetches and displays weather for detected city.
  • Falls back to 'London' if location is blocked or unsupported.

Fixes #22

Copy link

vercel bot commented Oct 15, 2025

@Priya-creates is attempting to deploy a commit to the venisha-kalola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Hrishikesh-Dalal
Copy link
Contributor

Hey Priya! There appears to be some merge conflicts that are occurring. If you can folk the latest version of the repo and append the changes - that would be great!

@Priya-creates
Copy link
Contributor Author

Sure sir. I will make the changes and update you shortly.

@Priya-creates Priya-creates force-pushed the feature/geolocation-weather branch from 41f8513 to a611d62 Compare October 16, 2025 17:06
@Priya-creates
Copy link
Contributor Author

Hello @Hrishikesh-Dalal ! I have tried to merge the conflicts. Kindly review it.

@Hrishikesh-Dalal Hrishikesh-Dalal merged commit c71d944 into commitra:main Oct 16, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Weather.jsx: Add geolocation to auto-detect user city

2 participants