# Weather App location advice

**URL:** <https://forum.freecodecamp.org/t/weather-app-location-advice/54736>\
**Category:** General\
**Created:** [November 12, 2016, 9:37pm UTC](https://forum.freecodecamp.org/t/weather-app-location-advice/54736 "2016-11-12T21:37:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazzacarrot](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@kazzacarrot](https://forum.freecodecamp.org/u/kazzacarrot)\
**Post date:** [November 12, 2016, 9:37pm UTC](https://forum.freecodecamp.org/t/weather-app-location-advice/54736/1 "2016-11-12T21:37:26Z")

</div>

[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](https://goo.gl/rStTGz) for more details.(anonymous function) @ pen.js:4j @ jquery.min.js:2k @ jquery.min.js:2”

You can use firefox.

---

<div class="post-metadata">

**Author:** ![Docwali777](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/docwali777/32/65065_2.png) [@Docwali777](https://forum.freecodecamp.org/u/Docwali777)\
**Post date:** [November 12, 2016, 9:51pm UTC](https://forum.freecodecamp.org/t/weather-app-location-advice/54736/2 "2016-11-12T21:51:18Z")

</div>

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](https://youtu.be/3hN4PrJ7R6A)

Let me know when you get stuck…

---

<div class="post-metadata">

**Author:** ![pilgrim011](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pilgrim011/32/16352_2.png) [@pilgrim011](https://forum.freecodecamp.org/u/pilgrim011)\
**Post date:** [November 12, 2016, 11:08pm UTC](https://forum.freecodecamp.org/t/weather-app-location-advice/54736/3 "2016-11-12T23:08:22Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 5:31am UTC](https://forum.freecodecamp.org/t/weather-app-location-advice/54736/4 "2021-01-16T05:31:32Z")

</div>


