Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

90
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda