New course! Every coder should learn Generative AI!
Try a free lesson+ 3
How can a use Geolocation API?
2 Answers
+ 12
if you want to use it asynchronously see here:
https://code.sololearn.com/WTOMV5z2pZ3x/?ref=app
+ 11
HTML5? Geolocation.getCurrentPosition() is the method you should use.