更新时间:2022-12-26 10:50:21
您可以使用
I tried many code snippets but all the example takes too much time to provide latitude and longitude .
I want to get current latitude in every 5 seconds .
You can use this post to achieve what you are looking for. Look at the setInterval(5000) will do that