How to use the latitude and longitude together with the weather API?

How to use the latitude and longitude together with the weather API?
0.0 0

#1

Hi,

I’ve tried to use the Geo-location code but not sure how to use them with the Weather API.


#2

I don’t know what to tell you, but I stumbled upon this the other day when I was having trouble playing around with the feature myself:
Geolocation API Removed from Unsecured Origins in Chrome 50

It may or may not be related to your problem.


#3

This is indeed the issue. Just slap in https:// in front of your codepen link. You can see what is going on by opening up dev tools (ctrl + shift + j). Apparently you are importing bootstrap and jquery in the wrong order and need to import tether as well in order to have bootstrap’s javascript run properly.


#5

I got it working! thanks