Is it necessary to use geolocation API ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it necessary to use geolocation API ?

In HTML5 , is it necessary to use geolocation API ?

10th Apr 2020, 1:47 PM
Parth Shendge
11 Answers
+ 3
Parth Shendge And dont worry if you haven’t learnt javaScript yet . You can leave geolocation Apis for now as i guess youre learning HTML . When you start learning JS . geolocation will come back itself and you will see how easy it is to comprehend it afterwards . Keep coding .
10th Apr 2020, 2:22 PM
Kash
Kash - avatar
+ 4
I had a weather code snippet i wrote and tried posting that here but sololearn code playground wont let you run it . You need to use codepen.io or github pages for it . Geolocstion is a nice tool though
10th Apr 2020, 2:07 PM
Kash
Kash - avatar
+ 4
Kash I guess that the android (and maybe the ios) app suffers of this limitation (as it suffers of lacks of webstorage and cookies), but it would works fine throug the website version of the code playground... Isn't it ?
10th Apr 2020, 2:10 PM
visph
visph - avatar
+ 3
Nope it doesn’t . Have to use iframe to post it here way back . Some mods answered that it is because of security reasons of the sololearn users at that time . So I dont know if it has changed but back then it didn’t work . https://www.sololearn.com/discuss/814767/?ref=app Here is the post where I asked the same question
10th Apr 2020, 2:16 PM
Kash
Kash - avatar
+ 2
Kash , thank you .
10th Apr 2020, 2:19 PM
Parth Shendge
+ 1
If we create a form , then , do we need user's location ?
10th Apr 2020, 1:57 PM
Parth Shendge
+ 1
For which functions do we need user's location ?
10th Apr 2020, 1:58 PM
Parth Shendge
+ 1
That's not mandatory :D All the more that geolocalisation requires some fallbacks, as user may not allow for website to geolocalize them ^^
10th Apr 2020, 1:58 PM
visph
visph - avatar
+ 1
I feel geolocation API little difficult because I didn't learn JavaScript . Therefore I asked this question . Ok thanks .
10th Apr 2020, 2:10 PM
Parth Shendge
0
Since using GPS navigation is very common nowadays, it has completely changed the way people use maps. Everything is digitalized, and paper version of maps are now outdated. However, with the ability to know exactly where you are, you must agree that you allow the application to do so, because gathering your data without your permission endangers your privacy. That is why applications that use HTML Geolocation will always ask for your permission. So, the user will be prompted with a popup or dialog requesting the user's permission to share the location information. The user can accept or deny the request. The Geolocation API of HTML5 helps in identifying the user's location, which can be used to provide location-specific information or route navigation details to the user.The Geolocation API uses any one of these techniques to identify the user's location.
12th Apr 2020, 2:28 AM
👩‍💻
👩‍💻 - avatar
0
No
12th Apr 2020, 11:50 AM
Anmol
Anmol - avatar