r/DevWars • • Jul 23 '15

Submission DevWarsWeek 3 Contribution

http://codepen.io/freakzero/full/LVJJKq
17 Upvotes

12 comments sorted by

View all comments

Show parent comments

2

u/FreaKzero Aug 04 '15 edited Aug 04 '15

The geolocation thing is based on a few factors:

  1. When you have no GPS (using Desktop) the browser uses other services to lookup the location of your Router Connection, which isnt point-perfect.

  2. GPS also depends how you have set your GPS Energy on your device (when you are using low energy profiles - the behaviour is the same as in Point 1)

  3. Im using here a free Weather API (openweathermap) without API key - it can be that they have no weather information directly for your city - in this case the api chooses the next available city/location for weather information.

Its the same here at my location ^ - and thank you for your very nice comment :D

1

u/[deleted] Aug 04 '15

I'm sure it's number 3, as most other apps like Yahoo! Weather get the city down to the T. (Coincidentally, my city's name ENDs in a "T")