GSearch (Dataforsyningen)
This module adds Danish address support to Drupal, allowing you to include address fields on various entities. As users type, it provides live suggestions from Denmark's official address register, storing normalized address details including postal code, city, and coordinates upon selection. It also offers an option to allow free-text input for addresses not found in the official register.
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).
Post-Installation
- Get a Dataforsyningen token
Create a user and token at dataforsyningen (It's free!). - Configure the module
Configure the module at /admin/config/gsearch/config - insert your token, and it will automatically be validated. -
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
Depends on
Dependencies of the latest stable release
- Select 2
- field Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.2.2 | Stable | 10–11 | Extending FieldItemInterface, aligning the interface | May 11, 2026 | |
| 1.2.1 | Stable | 10–11 | ->getValue() will return array instead of string | May 10, 2026 | |
| 1.2.0 | Stable | 10–11 | Better free-text input | May 10, 2026 | |
| 1.1.0 | Stable | 10–11 | Include /husnummer results. | Apr 7, 2026 | |
| 1.0.7 | Stable | 10–11 | Feb 21, 2026 | ||
| 1.0.6 | Stable | 10–11 | Feb 20, 2026 | ||
| 1.0.5 | Stable | 10–11 | Feb 17, 2026 | ||
| 1.0.4 | Stable | 10–11 | Feb 17, 2026 | ||
| 1.0.3 | Stable | 10–11 | Feb 17, 2026 | ||
| 1.0.2 | Stable | 10–11 | Production ready | Feb 17, 2026 | |
| 1.0.1 | Stable | 10–11 | The initial version of the module | Feb 12, 2026 |