Enable Location Services

Here:
/etc/geoclue/geoclue.conf

# URL to the WiFi geolocation service. If not set, defaults to Mozilla's
# Location Service with a hardcoded key. To use a custom key, uncomment this URL
# while changing YOUR_KEY to your MLS API key.
#url=https://location.services.mozilla.com/v1/geolocate?key=YOUR_KEY

# To use the Google geolocation service instead of Mozilla's, uncomment this URL
# while changing YOUR_KEY to your Google API key.
#
# WARNING: Please make sure that you are complying with the Google's ToS and
#          policies if you uncomment this:
#
# https://developers.google.com/maps/documentation/geolocation/policies
#
#url=https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_KEY

In order to activate Google Location Services with Geoclue follow these steps:
  • Open an account with Google Cloud Console if not done so yet.
  • Request an Google Location Service API key within Google Cloud Console. (Paid service with some free quota; requires complete account and payment details for Google Cloud Console).
  • Copy API key from Google Cloud Console and replace YOUR_KEY from below`s line of /etc/geoclue/geoclue.conf
#url=https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_KEY
  • Uncomment above line by removing # in front.
  • Test Location Service