Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
JavaScript getCurrentPosition accuracy vs Android Maps app

This is on Android 11, latest Chrome (96.4664.104). I call navigator.geolocation.getCurrentPosition. If the accuracy is low I call it again. A similar geolocation object is returned, just with a new timestamp.

However if I start the Google Maps Android app between the first and the second call to navigator.geolocation.getCurrentPosition then I get a more accurate position in the second call.

Is there something I can do in JavaScript instead to get a more accurate position?

Here is the options used in the call to getCurrentPosition. The time between the calls is at least 2 seconds.

  const optPosition = {
    maximumAge: 1000,
    timeout: 1000,
    enableHighAccuracy: true,
  }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!