X
Tap here to go to the mobile version of the site.

Support Forum

Firefox geolocation returns wrong coordinates

Posted

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implementation. Link: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation

Compared to Chrome, Firefox sometimes returns the wrong coordinates. For example yesterday (13/03/2020) the coordinates were wrong all day. Today (14/03/2020) the coordinates are right. The coordinates are crucial for the success of the app. I use Firefox 74.0

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implementation. Link: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation Compared to Chrome, Firefox sometimes returns the wrong coordinates. For example yesterday (13/03/2020) the coordinates were wrong all day. Today (14/03/2020) the coordinates are right. The coordinates are crucial for the success of the app. I use Firefox 74.0
Quote

Additional System Details

Installed Plug-ins

Plugins: 1. OpenH264 Video Codec provided by Cisco Systems, Inc.

   version: 1.8.1.1
   last update: 2 December 2019
   link: https://www.openh264.org/

2. Widevine Content Decryption Module provided by Google Inc.

   version: 4.10.1582.2
   last update:  13 March 2020
   link: https://www.widevine.com/

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36

More Information

FredMcD
  • Top 10 Contributor
4398 solutions 61718 answers

What do these websites say about your location?

http://whatismyipaddress.com/ Under the map, look for Location Not Accurate?

http://browserleaks.com/geo

https://whatismyipaddress.com/geolocation

https://html5demos.com/geo/

https://www.iplocation.net/find-ip-address

How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502

What do these websites say about your location? http://whatismyipaddress.com/ Under the map, look for '''Location Not Accurate?''' http://browserleaks.com/geo https://whatismyipaddress.com/geolocation https://html5demos.com/geo/ https://www.iplocation.net/find-ip-address How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502
Was this helpful to you? 0
Quote
jscher2000
  • Top 10 Contributor
8962 solutions 73440 answers

Helpful Reply

Hi Sergiu, on Windows, Firefox usually determines your precise location by asking Windows for information on nearby wi-fi hotspots and sending that to a web service, usually Google's. So I can't think of a good reason for that feature to differ from Chrome for a day unless some link in that chain was broken: permission denied to obtain precise location; bad or obsolete information from Windows; or bad or obsolete information from the web service.

Hi Sergiu, on Windows, Firefox usually determines your precise location by asking Windows for information on nearby wi-fi hotspots and sending that to a web service, usually Google's. So I can't think of a good reason for that feature to differ from Chrome for a day unless some link in that chain was broken: permission denied to obtain precise location; bad or obsolete information from Windows; or bad or obsolete information from the web service.
Was this helpful to you? 1
Quote

Question owner

FredMcD said

What do these websites say about your location? http://whatismyipaddress.com/ Under the map, look for Location Not Accurate? http://browserleaks.com/geo https://whatismyipaddress.com/geolocation https://html5demos.com/geo/ https://www.iplocation.net/find-ip-address How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502


I have used the suggested website to locate my position on the map but none of them got it right, all of them have different GSP coordinates. I live in London, by the way, as a reference. I suppose they use the IP to determine the location.

''FredMcD [[#answer-1297537|said]]'' <blockquote> What do these websites say about your location? http://whatismyipaddress.com/ Under the map, look for '''Location Not Accurate?''' http://browserleaks.com/geo https://whatismyipaddress.com/geolocation https://html5demos.com/geo/ https://www.iplocation.net/find-ip-address How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502 </blockquote> I have used the suggested website to locate my position on the map but none of them got it right, all of them have different GSP coordinates. I live in London, by the way, as a reference. I suppose they use the IP to determine the location.

Modified by Sergiu Mare

Was this helpful to you?
Quote
FredMcD
  • Top 10 Contributor
4398 solutions 61718 answers

Did you check out the : Location Not Accurate? on the first link I posted?

Did you check out the : '''Location Not Accurate?''' on the first link I posted?
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17876 solutions 161748 answers

Those test website usually do a reverse DNS lookup or use online databases and may not be using GPS coordinates from you own device as this would require special permission for local access. For an online Geo location service the accuracy usually depends of whether they have your IP range in their database. Precise GPS within a few meters is normally used on mobile devices and not on desktop or laptop devices.

Those test website usually do a reverse DNS lookup or use online databases and may not be using GPS coordinates from you own device as this would require special permission for local access. For an online Geo location service the accuracy usually depends of whether they have your IP range in their database. Precise GPS within a few meters is normally used on mobile devices and not on desktop or laptop devices.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.