Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

  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

Activity

Total releases
11
First release
Feb 2026
Latest release
2 months ago
Releases (12 mo)
11 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.2.2 Stable May 11, 2026
1.2.1 Stable May 10, 2026
1.2.0 Stable May 10, 2026
1.1.0 Stable Apr 7, 2026
1.0.7 Stable Feb 21, 2026
1.0.6 Stable Feb 20, 2026
1.0.5 Stable Feb 17, 2026
1.0.4 Stable Feb 17, 2026
1.0.3 Stable Feb 17, 2026
1.0.2 Stable Feb 17, 2026
1.0.1 Stable Feb 12, 2026