Skip to content
For the complete DHIS2 documentation index, see llms.txt.

Google service account configuration

DHIS2 can connect to various Google service APIs. For instance, the DHIS2 Maps app can utilize the Google Earth Engine API to load Earth Engine map layers. There are 2 ways to obtain the Google API key.

Set it up yourself

Set up a Google service account and create a private key:

  • Create a Google service account. Please consult the Google identify platform documentation.

  • Visit the Google cloud console and go to API Manager > Credentials > Create credentials > Service account key. Select your service account and JSON as key type and click Create.

  • Rename the JSON key to dhis-google-auth.json.

After downloading the key file, put the dhis-google-auth.json file in the DHIS2_HOME directory (the same location as the dhis.conf file). As an example this location could be:

/home/dhis/config/dhis-google-auth.json

Send an email to set up the Google Earth Engine API key

If you only intend to use the key for the Google Earth Engine map layers, you can simply send an email. See the Google Earth Engine API key documentation.

Bing Maps API key

To enable use of Bing Maps basemap layers, you need to set up the Bing Maps API key. See Bing Maps API key documentation for information on setting up the key.