Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Geo-location is completely wrong

  • 6 respostas
  • 2 têm este problema
  • 1 visualização
  • Última resposta por Tonnes

more options

Hi,

When I am using a website that has access to the geo-location is says I am in France. Sadly I am stuck in the Netherlands, so it is off by a little over 1000 kilometers. This also happens to a coworker of mine, we used this site to test: https://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-geolocation

I have attached a couple off screenshots to illustrate my problem. By the way, Chrome and Edge work fine.

Thanks in advance!

Hi, When I am using a website that has access to the geo-location is says I am in France. Sadly I am stuck in the Netherlands, so it is off by a little over 1000 kilometers. This also happens to a coworker of mine, we used this site to test: https://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-geolocation I have attached a couple off screenshots to illustrate my problem. By the way, Chrome and Edge work fine. Thanks in advance!
Capturas de ecrã anexadas

Modificado por thomas479 a

Solução escolhida

Does the website use SSL? As of Firefox 55, "Sites that don’t use SSL can no longer access Geolocation APIs to determine a user’s physical location" (see the associated bug). This may also be true for Chrome, but switched off.

Did your geolocation work properly in Firefox when you were in France, and with the same version? That would indicate some cached location is used, which you might be able to pinpoint by quickly creating a new profile.

Ler esta resposta no contexto 👍 0

Todas as respostas (6)

more options

What is shown isn't your actual location, but the location of your ISP, or maybe you're using a proxy.

Go to Advanced/Network/Connection and make sure No Proxy is selected.

more options

Hi mattcamp,

I have the network proxy turned off. As you can see on my screenshot (the right bit), my ISP is located in Coevorden, The Netherlands based on Geo IP. That is about 1050km away from the location reported by Firefox to the JavaScript API. Chrome/Edge report my location correctly, both in by the Geo IP and the JavaScript API.

more options

Solução escolhida

Does the website use SSL? As of Firefox 55, "Sites that don’t use SSL can no longer access Geolocation APIs to determine a user’s physical location" (see the associated bug). This may also be true for Chrome, but switched off.

Did your geolocation work properly in Firefox when you were in France, and with the same version? That would indicate some cached location is used, which you might be able to pinpoint by quickly creating a new profile.

more options

Tonnes said

Does the website use SSL? As of Firefox 55, "Sites that don’t use SSL can no longer access Geolocation APIs to determine a user’s physical location" (see the associated bug). This may also be true for Chrome, but switched off.

Yes, I tried using it on the site mentioned in the OP.

Did your geolocation work properly in Firefox when you were in France, and with the same version? That would indicate some cached location is used, which you might be able to pinpoint by quickly creating a new profile.

I have never been to that particular location in my live and this is a new laptop, with a new profile (with Sync though). I will try using a new profile, I will edit this message to report back in a bit

more options

I switched profile and now everything is working as it should. Very strange!

Thanks guys!

more options

Thanks for your feedback, glad to see it works now.

One question though: did you use the profile you were using for 56 (and perhaps 55) Beta for 54 release again (at least once) after using it for any of those versions? If so, that may have caused parts of the profile to be corrupt, possibly including geolocation related settings or info. On the other hand, that would rather affect 54 versions after downgrading.

If not, it may just have been a per-website or global permissions issue (geo.enabled?) that you can still get a hold of when your other profile is still accessible, which may prevent you from migrating settings and add-ons. See this question for more on that, as well as the Page Info page / support article.