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

preview_player
Показать описание
Using the Geolocation API to get the coordinates and address of a user with JavaScript

We will then use this to improve the weather app from last video

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!

👨‍💻 My code

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

💻 More tutorials

🙋‍♂️ Find me on other channels

💖 SPONSORS 💖
Get your username or a link to your channel here by sponsoring on Github

🎁 GET FREE STUFF WHILE SUPPORTING MY TUTORIALS
Рекомендации по теме
Комментарии
Автор

Thanks, this API for reverse geolocalization is amazing, i was recently looking for something like that

Recomeçar-Denovo
Автор

Thank so much for your help. I was wondering for your next video if you could show us how to integrate a future daily or hourly forecast of the city. :)

Angelily
Автор

Hi I am looking something to get geolocation of the user to create a region pop-up and redirection. and As a user when landing on a page that is outside my region, I would like to be notified that I am on a page outside my region.I am not looking for paid API. I am looking for something native code using javascript

sanjanapatil
Автор

Do you know how to change the celsius to farenheight?

DarkPurpleElixr
Автор

it seems like getting current location doesn't work any more due to some change on Chrome. Could you suggest any alternative?

naturients
Автор

It worked. Thank you. But can you please tell me how can I access this location outside of the function? I couldn't find any solution.

bharatigogoi
Автор

hey i am unable to authoroze to the api key can uh help me out

RAMGOPALGARUDKARBDS
Автор

Bro ur video is good
But when ur doing something or u gonna teach something start from starch

martinemmanual
join shbcf.ru