Cannot use HTML5 geolocation with Chrome

Cannot use HTML5 geolocation with Chrome
0

#1

I see that Chrome 50+ no longer supports the HTML5 geolocation unless from a secured endpoint. The W3C Schools example webpage (https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation) 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?

Thanks…


#2

This site might help https://ipinfo.io/developers
I used this method to get that information

$.getJSON(‘https://ipinfo.io’, function(data){
console.log(data)
})


#3

Thanks, @koldavi1 – I’ll check that out