Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

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

모든 댓글 (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?