Using the Geolocation API to get the coordinates and address of a user with JavaScript

Tutorial: https://www.youtube.com/watch?v=JdJ2VBbYYTQ

In this tutorial, I will show you how to use the navigator.geolocation API and the OpenCage API in JavaScript to get the user’s coordinates, address, and city.

We will then use this to improve the weather app from last video
▶ Build a Weather App - https://youtu.be/WZNG8UomjSI

We will make the weather app display the weather for the user’s current location as soon as they open the page.

Follow me on Twitter for JavaScript tips and quizzes!
https://twitter.com/DenverCoder1

👨‍💻 My code
https://github.com/DenverCoder1/weather-app-tutorial

What topics should I cover next?

Let me know in the comments what you want to see next in my tutorials!

🖥 More Web Development tutorials
https://www.youtube.com/playlist?list=PL9YUC9AZJGFFAErr_ZdK2FV7sklMm2K0J

💻 More tutorials
https://www.youtube.com/playlist?list=PL9YUC9AZJGFHTUP3vzq4UfQ76ScBnOi-9

🙋‍♂️ Find me on other channels
Reddit 👽 https://www.reddit.com/r/DevProTips/
Twitter ✍ https://twitter.com/DenverCoder1
Github 👨‍💻 https://github.com/DenverCoder1
Sponsor 💞 https://github.com/sponsors/DenverCoder1
One-time donation ☕ https://ko-fi.com/jlawrence

💖 SPONSORS 💖
Get your username or a link to your channel here by sponsoring on Github
https://github.com/sponsors/DenverCoder1

🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS
https://bit.ly/jlawrencepromos

#webdev #geolocation #javascript #api #tutorial

Getting the user's location with JavaScript (Geolocation API tutorial)
40.45 GEEK