Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Az oldal korlátolt funkcionalitással fog rendelkezni, amíg elvégezzük a felhasználói élményt javító karbantartást. Ha egy leírás nem oldja meg a problémáját, és kérdést tenne fel, akkor a támogatási közösségünk a @FirefoxSupport Twitter oldalon tud segíteni, vagy az /r/firefox oldalon a Redditen.

Támogatás keresése

Kerülje el a támogatási csalásokat. Sosem kérjük arra, hogy hívjon fel egy telefonszámot vagy osszon meg személyes információkat. Jelentse a gyanús tevékenységeket a „Visszaélés bejelentése” lehetőséggel.

További tudnivalók

A témacsoportot lezárták és archiválták. Tegyen fel új kérdést, ha segítségre van szüksége.

mozzila location service accuracy

more options

Hello,

I am a developer, and in my application I want to access the user's current location, so firstly I tried with the google geolocation API, that is not working with the firefox and other browser except chrome. then I tried https://location.services.mozilla.com/v1/geolocate?key=test this API, this gives me inaccurate lat and long, so please let me know how can I get the accurate user location using the "mozzila location service " if is there any special feature for commercial user then please let me know.


Thanks

Hello, I am a developer, and in my application I want to access the user's current location, so firstly I tried with the google geolocation API, that is not working with the firefox and other browser except chrome. then I tried https://location.services.mozilla.com/v1/geolocate?key=test this API, this gives me inaccurate lat and long, so please let me know how can I get the accurate user location using the "mozzila location service " if is there any special feature for commercial user then please let me know. Thanks

Összes válasz (3)

more options

Please see this article: https://developer.mozilla.org/docs/Web/API/Geolocation/Using_geolocation

When a site wants a user to share her precise location, the user typically receives a permission request that drops down from the left end of the address bar. If your code isn't generating that request, then your code is not going to be able to get that information.

more options

Thank for your replay.

I am getting the permission drops down, and I allowed the access my location but it is not working.

https://developer.mozilla.org/docs/Web/API/Geolocation/Using_geolocation

In this link there is an example "Live Result" that gives the accurate my location, but when you access this url in the Firefox browser it will give you an error saying "Unable to retrieve your location"

please have a look in to this issue.

Thanks.

more options

adityacis said

https://developer.mozilla.org/docs/Web/API/Geolocation/Using_geolocation

In this link there is an example "Live Result" that gives the accurate my location, but when you access this url in the Firefox browser it will give you an error saying "Unable to retrieve your location"

So when you try the Live Result link in Firefox, it requests permission first, you give permission, then it fails to determine your location -- but the Live Result demo works in other browsers?

Hmm, is there any reason that Firefox wouldn't have access to your system's data on nearby wi-fi hotspots?