Night light and location tracking (geoclue2)

So I’ve looked around a bit about this issue to no avail and I’m wondering if someone might suggest a fix. When I try and set my location to ‘Sunrise and sunset at current location’ the application does not seem to return my location. I’ve tried to using the ‘where-am-i’ demo in console to see if i get any results and its still not returning anything.

Maybe your distribution is still defaulting to the now defunct Mozilla location service. In that case you can change /etc/geoclue/geoclue.conf to point url to BeaconDB, like so:
url=https://api.beacondb.net/v1/geolocate.
BeaconDB is an open-source replacement that is based on user-submitted scans of nearby WiFi networks, mobile networks etc. If there is no data for your area, you can easily fix that by running NeoStumbler on your phone for a few minutes, but many regions are already covered well.

That was it thanks!!

url=https://api.beacondb.net/v1/geolocate

This now 404s. Is there no other service that can be substituted here?

The endpoint does not support GET requests (like what a browser would send). How did you get the 404?

Ah..I was using a browser to check it. Anyhow when I use it and set the day night to automatic, it just detects my location along the international date line instead of the actual.