Yesterday my weather-page, loaded as a file (file:///FreeCodeCamp/weather-today/weather.html), worked fine.
But this morning I get the error back from my js-script: Location not available.
I tried the page from w3schools and that also returns “location not available”.
I tried both Firefox and Chrome but both fail today.
Is it possible that this service is down? Is it possible to see a notification of the service-supplier if a service is down?
The HTML-page says:
Location information is unavailable.
When displaying on “codepen” I get the same message.
I was using both browsers yesterday and this morning:
Firefox: Quantum 58.0.2 on Linux
Chrome: 64.0.3282.140 (Official Build) Built on Ubuntu , running on Ubuntu 17.10 (64-bit)
I have found a solution:
In about:config (Firefox) I changed the value of GEO.WIFI.URI
from https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
to https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%
Now it works again. I have no clue however what has happened. Why is the google-uri suddenly malfunctioning?
Can somebody reply on this and show me which URI he/she uses? I am curious if this is the real problem.
It sounds crazy but the geolocation-object (home laptop) is the past 3 days only functioning roughly between 12:00 pm and 19:00 pm.
I noticed that in the evening and morning the “permission dialog box” comes very fast back with the message “unknown error” (position.message). I think the browser did not even bother to make the request to google’s API.