Cannot use HTML5 geolocation with Chrome

I see that Chrome 50+ no longer supports the HTML5 geolocation unless from a secured endpoint. The W3C Schools example webpage ( doesn’t work, even though it’s https.

And when I tried to use it in CodePen, I get this deprecation warning:

I was using HTTPS in CodePen; Is this still the preferred method for the “Local Weather” challenge?


1 Like

This site might help
I used this method to get that information

$.getJSON(‘’, function(data){

Thanks, @koldavi1 – I’ll check that out