GSearch (Dataforsyningen) adds Danish address support to Drupal using the official Dataforsyningen GSearch API.

It provides a dedicated field type so you can add address fields to content types, user profiles, or any entity. Users type an address and get live suggestions from Denmark’s official address register.

Choosing a suggestion stores a normalized address plus postal code, postal name, and latitude/longitude.

The module is aimed at Danish sites that need correct, structured addresses (e.g. branches, events, contacts) without manual entry of street, postnummer, and city.

This is a replacement for the DAWA service, that will be shut down July 2026

Features

  • Autocomplete input
    The field widget uses Select2 module for a searchable dropdown. As users type, the module queries the GSearch API and shows matching Danish addresses. Users pick one suggestion or, if allowed, enter free text (e.g. international addresses).
  • Optional free-text mode
    Per-field setting "Allow storing free-text addresses" lets the field accept any text when the input is not found in GSearch (useful for non-Danish or informal addresses).

The field in action.

Post-Installation

  1. Get a Dataforsyningen token
    Create a user and token at dataforsyningen (It's free!).
  2. Configure the module
    Configure the module at /admin/config/gsearch/config - insert your token, and it will automatically be validated.
  3. Add the address field
    • Edit a content type (or any entity type that supports fields).
    • Add a new field, choose "Address Dataforsyningen/GSearch", and complete the field settings.
    • Optionally enable "Allow storing free-text addresses" if you need non-Danish or unvalidated addresses.

Users type (e.g. street name or postnummer); suggestions load from GSearch.

They select one or, if free-text is allowed, type a custom value. Saved values are normalized and include postal code, postal name, and coordinates when available.

Similar projects

As mentioned, this replaces address_dawa which will be useless after July 2026.

Sponsors

This module has been developed by Reload, paid for by the Copenhagen Public Libraries and Danish Public Libraries

Supporting organizations:
Development

Project information

Releases

1.2.2 Stable release covered by the Drupal Security Team released 11 May 2026
Works with Drupal: ^10.5 || ^11

Extending FieldItemInterface, aligning the interface

Install:
1.1.0 Stable release covered by the Drupal Security Team released 7 April 2026
Works with Drupal: ^10.5 || ^11

Include /husnummer results.

Install: