Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong geolocation #4

Open
amolgorithm opened this issue Jun 3, 2023 · 2 comments
Open

Wrong geolocation #4

amolgorithm opened this issue Jun 3, 2023 · 2 comments

Comments

@amolgorithm
Copy link

The webpage requested my geolocation (I'm assuming it receives the latitude and longitude), but it was greatly off from my actual location. It showed the weather forecast of an area that is 50 km away from where I was, unfortunately showing the wrong temperature (off by 2 Celsius). HTML5 Geolocation is supposed to be accurate to within a kilometre, which means that the Weather API that is used in the project may not have my suburban neighborhood listed in its database. So, it could have gone to the location in its database that was closest to my location, which happened to be 50 km away. Everything other than this issue was fantastic and well done though.

@ery-day-bradly
Copy link

This is interesting... I will see what happens to me...

@ayushgupta-06
Copy link

Hey there!
I also created a Weather App using Vanilla JS using the same API provider.
For the geolocation of a place. I simply asked the user to select city and using the Geocoding API provided by openweathermap I got the latitude and longitude of the city very easily then using that I fetched the accurate weather data.

It would be good to implement this method to get accurated weather details!

I would really appreciate if you check my weather app too, your one view means alot!
My Weather App

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

No branches or pull requests

3 participants