filmov
tv
Lesson - 53 | HTML geolocation API | How to get user's location | HTML Tutorial For Beginners

Показать описание
In this tutorial video, How to get a user's current location and live location by using html & javascript.
-geolocation api is used to locate the user's position.
-getCurrentposition method is used to return the user's location.
1)Handling Error and rejection:-
-showerror parameter is used to handle errors. If the user's location cannot be determined, it provides a function to execute. we use switch case here.
2)watchposition:-
-it's return the position of the user and continues to return updated position as the user moves.
-ex. car,bike we use smartphone for check destination.
Checkout my Previous lession : [
Follow us on below links.
-geolocation api is used to locate the user's position.
-getCurrentposition method is used to return the user's location.
1)Handling Error and rejection:-
-showerror parameter is used to handle errors. If the user's location cannot be determined, it provides a function to execute. we use switch case here.
2)watchposition:-
-it's return the position of the user and continues to return updated position as the user moves.
-ex. car,bike we use smartphone for check destination.
Checkout my Previous lession : [
Follow us on below links.