Getting Current Location in Javascript

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Hey Everyone, In this video, we will learn how to get the user's current location.
    Weather API: www.weatherapi...
    Connect With Me: bio.link/piyus...
    My Gears
    ► My Girlfriend: amzn.to/3WD6FRp
    ► Apple MacBook Laptop: amzn.to/3WBJgQn
    ► Blue Yeti Microphone: amzn.to/3YKZ9FT
    ► External 27” Monitor: amzn.to/3Vp3xaO
    ► Logitech MK295 Wireless Keyboard and Mouse: amzn.to/3DuL1bB
    ► Seagate Expansion 1TB External HDD: amzn.to/3QMm5Q8
    ► Tripod: amzn.to/3S4OwK4
    ► Ring Light: amzn.to/3YLf8DR
    Disclaimer: All the links above are affiliate links.
    More Playlists
    ► Complete ReactJS Tutorial Series - • Complete React Tutoria...
    ► Complete Firebase & React Tutorial Series - • Firebase with Reactjs ...
    Social Links
    ► Twitter - / piyushgarg_dev
    ► LinkedIn - / piyushgarg195
    Video Titles
    What is Javascript?
    What is Promise?
    Async in Javascript
    Await in Javascript
    API Calling in Javascript
    Hashtags
    #javascript #fullstackdevelopers #javascriptinhindi #frontenddeveloper #frontend #js #webdevelopment #webdesign #webdev #api #apicall

Комментарии • 35

  • @piyushgargdev
    @piyushgargdev  Год назад +7

    Correction - We are using callbacks in navigator get user location, so there is no need for the handler function to be async. Sorry I forgot to mention this in video.

    • @Theshivanshseth
      @Theshivanshseth 10 месяцев назад +1

      donkey

    • @Tech24_07
      @Tech24_07 3 месяца назад +1

      Bro I am not getting my location instead I am getting my ISP location How can I resolve it

    • @jaydipprajapati3590
      @jaydipprajapati3590 27 дней назад

      ​@@Tech24_07 same here bro did you find any solution?

    • @Tech24_07
      @Tech24_07 24 дня назад

      ​@@jaydipprajapati3590 Not yet bro 😅

  • @IasAjeers-li9rj
    @IasAjeers-li9rj 10 месяцев назад +1

    Brother u will soon reach million views...your way of explanation is awesome and thank you ❤

  • @shi-nee7966
    @shi-nee7966 Год назад +2

    more power to your consistency bbhaiya ek number

  • @user-vi3kl8js7k
    @user-vi3kl8js7k Месяц назад

    Hi sir I'm from mirzapur your explanation is very good

  • @AnkitSharma-sc3kp
    @AnkitSharma-sc3kp Год назад +2

    Can you please tell me why you have make the function async?

    • @piyushgargdev
      @piyushgargdev  Год назад

      Yes you are correct, we are using callbacks for response so no need for async function. I have made a pinned comment for that. Thanks 😀

    • @AnkitSharma-sc3kp
      @AnkitSharma-sc3kp Год назад +1

      @@piyushgargdev i like how you accept your mistake, wishing you luck and growth 🤗

  • @rishiraj2548
    @rishiraj2548 2 месяца назад

    great! thanks.

  • @sayanchakraborty2194
    @sayanchakraborty2194 6 месяцев назад

    what if i want to show my longitude and latitude on the body part or on the website when I clicking the get location. by any chance

  • @user-xb2wp1qt3z
    @user-xb2wp1qt3z 8 месяцев назад

    How to set the geolocation in order to test different scenarios for different countries

  • @Bitchforbl2706
    @Bitchforbl2706 6 месяцев назад

    Sir wont this code track users live location??

  • @Bhushantbn
    @Bhushantbn 7 месяцев назад

    Bhaiya VS Code theme konsi he btado?

  • @salonipawar6905
    @salonipawar6905 6 месяцев назад

    Sir please post weather app complete video

  • @ajayypalsingh
    @ajayypalsingh Год назад +1

  • @poojaagrawal4514
    @poojaagrawal4514 7 месяцев назад +1

    Can't get ur previous video

  • @AbhishekSharma-fg1ho
    @AbhishekSharma-fg1ho 11 месяцев назад +1

    in my case its not asking location and i am facing error which is can not access location and site is also not secure what i do

    • @ScrollWithPodcast24
      @ScrollWithPodcast24 3 месяца назад

      Same problem, please anyone help to solve this problem

    • @abhimatkala4468
      @abhimatkala4468 3 месяца назад

      @@ScrollWithPodcast24 Permission for location is only asked once, so after clicking on the button, just check whether you have given permission or not. If you have denied it then click on to "continue allowing this site to access your location"

  • @RashiSurma
    @RashiSurma Год назад +2

    yeh yt channel meko pehle kyu ni aaya suggestion m 🤧

  • @EmifirE123
    @EmifirE123 7 месяцев назад

    What if user deny?

  • @JaswantSingh-om4ph
    @JaswantSingh-om4ph Год назад

    Sir please upload source code files of this playlist it would help me learn faster .

    • @as_if
      @as_if 3 месяца назад +1

      How can a source code make you learn faster

  • @salonipawar6905
    @salonipawar6905 6 месяцев назад

    Can't find previous video

    • @krishna_singh454
      @krishna_singh454 5 месяцев назад +1

      check the playlist section .you will get ultimate JavaScript course playlist.

  • @showsshorts4696
    @showsshorts4696 6 месяцев назад +1

    sir yeh exact location share nahi karta hai

  • @MrPandeyG.O.A.T
    @MrPandeyG.O.A.T 3 месяца назад

    Azeeb Bakchodi hai. Jab Permission hi leke Location janni hai to Google maps ka use kar lena jyada Sahi hai

  • @user-xb2wp1qt3z
    @user-xb2wp1qt3z 8 месяцев назад

    How to set the geolocation in order to test different scenarios for different countries