搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Geolocation does not work.

  • 無回覆
  • 1 有這個問題
  • 26 次檢視
more options

Hello Firefox Community.

Since a month I have almost constant problems with geolocation. It worked for couple of days but now it is not working at all. I suspect a problem with API key – what ever it is.

First of all geoloction service stopped working when geo.provider.network.url was setup to Google service.

https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%

This transforms into:

https://www.googleapis.com/geolocation/v1/geolocate?key=AIzaSyCJysf0qByNCVmZhH4cE1LxPZ20hJT3ipg

And as you can see, it returns just 404 Not Found.

I found the info that I can change it to:

https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%

and… it also does not work. I can lookup what is the link (without variable):

https://location.services.mozilla.com/v1/geolocate?key=27e30dd8-ba74-4ef0-86c6-9fceab8a7089

And this time when I enter this link I can see an error: 400 Bad Request:

Missing or wrong API key.

Can you help me setting this correctly and having geolocation working again?