Take a look at this suggestion. Perhaps it can help to install beacondb. Newer versions of Ubuntu and Debian have already switched to beacondb geolocation service because MLS (Mozilla location services) have ended.
Edit geoclue config file to add beacondb location services this way:
sudo mkdir /etc/geoclue/conf.d
sudo tee > /etc/geoclue/conf.d/99-beacondb.conf <<EOF
[wifi]
enable=true
url=https://api.beacondb.net/v1/geolocate
# submit data, only possible with a GPS antenna
submit-data=true
submission-url=https://api.beacondb.net/v2/geosubmit
submission-nick=geoclue
EOF
sudo systemctl restart geoclue
You can undo it by removing the etc/geoclue/conf.d file when it doesn't work for you.
Which browser do you use?
Another possibility is to set your location manually.