Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
Find which method browser used to find location

I am fetching location using navigator.geolocation.getCurrentPosition. I am thinking about ignore this location output into account if location is fetched using other ways than GPS (Like wifi, mobile tower etc). Is there a way to figure out how the browser fetched location? My code is given bellow.

  var locate = function() {
    showMessage('fetching_location')
    navigator.geolocation.getCurrentPosition(function(location) {
        send({
          latitude: location.coords.latitude,
          longitude: location.coords.longitude,
          accuracy: location.coords.accuracy,
          status: "geolocated"
        }, 'location_reported')
      },
      function(error) {
        if(error.code == 1)
          send({
            status: "permission_denied"
          }, 'permission_denied')
        else
          send({
            status: 'geolocation_error'
          }, 'not_geolocated')
      },
      {
        maximumAge:10000, timeout: 20000, enableHighAccuracy: true
      }
    );
  }
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda