Weather App location advice

[Advice]

Hi

I just started the weather app project and I found out that you cannot use Chrome + Codepen to get the users location. You’ll get this error on the dev tools “getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.(anonymous function) @ pen.js:4j @ jquery.min.js:2k @ jquery.min.js:2”

You can use firefox.

Yes I had the same issue… you may have to use $getJSON or Ajax … people get stuck here because Free Code Camp only gives one page on this…

Check out this video for a primer---- https://youtu.be/3hN4PrJ7R6A

Let me know when you get stuck…

Yeah, it sucks. You can get around it by using IP address for locating user, or simply (like I did) let them locate themselves. I was too lazy at the time, so my project ended up being ugly, with popup window asking for user input. Although, that approach (maybe without popup - you could use simple input field) gives more flexibility - you can get the weather for any location in the world, not just your…