Decidim maps: HERE vs self-hosted OpenStreetMap services

Choosing a map and geocoding provider decides who receives participant location text, who pays for usage, and how much infrastructure you run. This page compares HERE Maps with self-hosted OpenStreetMap services and lists the configuration each path needs.

On this page

Which Decidim maps provider fits proposals and meetings

For most Decidim teams, the choice comes down to two paths: a hosted commercial map provider such as HERE Maps, or self-hosted OpenStreetMap-based services that your own team runs. A hosted provider gives you map tiles and address lookup with little infrastructure to run, but every map view and lookup depends on a third party's terms, keys and availability. Self-hosted services keep the map data path inside your infrastructure, but they add servers, data updates and maintenance that someone must own. The right answer depends on where your participants' location data may travel, who will operate the services, and how much change you expect in the number of proposals and meetings shown on maps.

Maps and geocoding appear in the production configuration guidance of the Decidim installation docs, alongside background jobs, file storage and SMTP. Treat them as a deliberate configuration item rather than a default you inherit. Your decision should cover two separate functions: displaying tiles on proposal and meeting pages, and converting typed addresses into coordinates. A provider can cover one function well and be a poor fit for the other, so record which functions you need and whether they can come from different services.

Before you commit, confirm the exact provider settings, keys and environment variables against the documentation for the Decidim version you will run, because the connector details are not covered here. Check the license and usage terms for tiles and geocoding, the rate limits that apply to public traffic, and whether attribution must appear on pages. For self-hosted options, ask who will load and refresh the map data, how the geocoding index is rebuilt and where its logs are kept. Write these answers down as part of the scope, since they determine both the configuration work and the ongoing operating cost.

What you need before choosing a maps provider

A maps decision only holds up if the platform underneath it is supported, reachable and able to call the provider you pick. The cards below cover the Decidim version, runtime, production stack, provider account, network path and self-hosting sizing questions to settle before comparing HERE with a self-hosted OpenStreetMap stack.

Confirm a supported Decidim branch

Decidim's security policy covers only the last two minor versions until version 1.0, which means 0.32.x or 0.31.x today. Anything at 0.30.x or earlier receives no security updates, so a maps integration built on it inherits unpatched risk. Confirm the branch you run before writing any map configuration, and plan the upgrade path first if you are behind, since upgrades must go one minor version at a time.

Decidim security policy

Match Ruby, Node and PostgreSQL versions

Runtime versions differ by branch. Decidim 0.32 requires Ruby 3.4.7 and Node 22.14.x, while 0.31 uses Ruby 3.3.4 and Node 22.14.x. The manual installation guide uses PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS. Pin these versions in your build image so the map JavaScript and geocoding gems compile against the same runtime you tested.

Manual installation guide

Working production install with jobs and SMTP

Geocoding and map tiles are only part of the picture. Production Decidim needs ActiveJob background workers running, file storage through ActiveStorage, and working SMTP, because proposal and meeting notifications depend on them. Verify that a proposal with a location saves, geocodes and sends its notification end to end on staging before any provider key is added to production.

Installation docs

Provider account and terms of use

HERE Maps and other commercial map services are billed and governed by their own account and terms. Confirm with the provider which products your use case needs (interactive tiles, static images, geocoding), whether public civic participation use is permitted under the plan, how API keys are issued and rotated, and what attribution the terms require on the map. Ask for the usage quota and overage terms in writing, since these recur and vary by plan.

Outbound network rules to provider endpoints

Decidim servers and the browsers of participants both reach map services, so the firewall and proxy rules differ for each. Server-side geocoding calls need egress from the application host, while tile requests come from the participant's browser and need content security policy entries that allow the tile and script origins. List every endpoint the chosen provider publishes and confirm the allowlist with the provider's current documentation.

Sizing questions for self-hosted tiles and geocoders

A self-hosted OpenStreetMap stack, such as tile servers, Nominatim or Photon, shifts cost and load onto your team. Before choosing it, confirm with each project's documentation the disk, memory and CPU needs for your region extract, the update cadence for OSM data, the import time, and how the service handles query volume during peak participation. Ask who on your team owns the import, the nightly updates and the restore procedure.

How HERE, hosted OSM and self-hosted OSM services differ

HERE Maps is a hosted commercial provider. HERE operates the map and geocoding services in its own cloud, so your Decidim instance calls HERE's APIs over the network each time a map is drawn or an address is searched. Your organization holds the commercial account and the API credentials, and the service runs under HERE's terms.

  • Who operates it: HERE runs the platform. Your organization is the customer and is responsible for the account owner, billing contact and key holders.
  • Where address text travels: Addresses entered in proposal and meeting forms leave your servers and are sent to HERE for geocoding. Review the processing location, sub-processors and data protection terms in the contract before participants enter addresses.
  • Recurring usage terms: Access is metered under a commercial agreement. Ask HERE to confirm in writing the current quota, billing model, overage rules and any restrictions on public-facing use.
  • What your team maintains: API keys, key rotation, monitoring for expired or throttled keys, and checks that the map and search still work after changes. Your team does not maintain tile data or geocoder indexes.
  • Decidim settings to point at it: The map and geocoding configuration must use HERE with your key. Test the map display and address search on every component that shows locations.

Before launch, confirm the contractual terms, the data location and the usage limits in writing, because these decide whether the service fits a public participation platform.

What a maps choice changes for data, privacy and licensing

A maps choice decides where three kinds of data go. The first is address text typed by participants or staff when they place a proposal or meeting. The second is the coordinates saved with that record once the address is geocoded. The third is the stream of map tile requests the visitor's browser makes to display the map, and each of those requests carries the visitor's IP address to whichever host serves the tiles. Map the path for each map component you enable, from the form field through the geocoding call to the browser, and note which party receives each field. The same check applies whether the tiles come from HERE, a commercial OpenStreetMap-based provider or a server you run.

A hosted provider processes those requests under its own terms of service and privacy policy, which set out what it logs, how long it keeps logs, whether it uses request data for its own purposes and where processing happens. Those terms can change, so ask the provider for the current version and the data processing agreement it offers, and record the version you reviewed. Self-hosting keeps tile and geocoding requests inside your network, which simplifies the transfer question, but it moves duties onto your team. You become responsible for refreshing OpenStreetMap-derived data, running the tile and geocoding services, and displaying the required attribution. Confirm the licence and attribution terms of the OpenStreetMap data and of any tile style you use against the published terms of the data owner, because the data licence and the tile or style licence can differ.

Ask the privacy and compliance owners to review the chosen path before launch, not after the first public meeting. Their review should cover the data inventory for coordinates and address text, the retention rules for both, the provider contract or self-hosted operating procedure, and the attribution text shown on each map. Record the decision and the evidence behind it, since the same questions will return during a data protection assessment or a licence review.

How a map and address lookup flow through Decidim

The lookup starts in the participant's browser, which loads the proposal map and sends an address to the Decidim Rails application. Rails then calls either a HERE Maps service or self-hosted tile and geocoding services, depending on how the organization configured maps and geocoding. The coordinates returned are written to PostgreSQL, and the outbound egress rule decides which provider hosts the application can reach. Check that rule first, because it determines whether participant addresses leave your network.

Address lookup and map tile paths, with the provider boundary and PostgreSQL write marked.

How to configure a Decidim maps provider step by step

This sequence takes a Decidim instance from an undecided map setup to a verified one, where tiles load and addresses resolve to saved coordinates. Each step ends with a check you can record before the setting reaches public users.

  1. Confirm the Decidim branch and maps settings

    Confirm your exact minor version. Until version 1.0, Decidim supports only the last two minor versions with security updates, currently 0.32.x and 0.31.x, so 0.30.x and earlier need an upgrade first. Then open the Decidim installation documentation for your branch and find the maps and geocoding section, because setting names can differ between branches. Check: a written note of the version, the documentation page used, and the Ruby and Node versions that branch requires.

  2. Choose the tile and geocoding provider path

    Decide between a commercial provider such as HERE, a commercial host serving OpenStreetMap-based tiles, or a self-hosted stack with tiles, static maps, Nominatim or Photon. Commercial providers bill under their own account and usage terms, so ask the vendor for current pricing and for their rules on caching and displaying results. Self-hosted options shift cost to your servers, storage and the staff who run them. Check: a decision record naming the tile source, the geocoder, and the sign-off from your privacy and procurement leads.

  3. Store provider credentials outside source control

    Place API keys and any service credentials in your secret manager or in environment variables injected at runtime. Keep them out of the Git repository, container images, and shared configuration files. Issue separate keys for each environment and restrict them to the referrer, IP range, or quota your provider supports. Name the person responsible for rotation. Check: a repository scan finds no key strings, and each environment shows a distinct credential in your secret store.

  4. Set tile and geocoding endpoints per environment

    Point development, staging, and production at their own tile and geocoding endpoints, using the setting names confirmed in step one. Staging should never spend the production quota or send test traffic to a production map account. For self-hosted services, point each environment at its own internal hostname. Check: each environment reports the expected endpoint hostname in its configuration, and a request from staging is visible in staging provider logs, not production logs.

  5. Allow only the required outbound connections

    Build an egress allowlist on the firewall or proxy that covers only the tile, static map, and geocoding hosts for the chosen provider, plus any hosts the vendor documents as required. Self-hosted services should stay on internal addresses. Confirm the allowlist with your network team and record each host and its purpose. Check: from the application server, the listed hosts respond, and a test request to an unlisted host is blocked and logged.

  6. Enable the map on one test component

    In a staging instance, turn on the map for a single proposals or meetings component rather than across the whole platform. Keep that component off public listing until testing finishes. Confirm that the component's settings save and that the map appears on its form and detail pages. Check: the component page shows a visible tile layer, and the browser developer console reports no blocked map requests.

  7. Verify display and address lookup end to end

    Create a test proposal with a known street address and submit it. Confirm that address search returns a result, that the marker appears at the expected location, and that the coordinate pair is saved with the record. If tiles or lookups fail, check the browser console for content security policy errors and the egress logs before changing settings. Check: the saved latitude and longitude match the test address within the tolerance your team agreed, and the record is retrievable after a page reload.

Which fields move between Decidim and the maps provider

This table maps each piece of location data Decidim handles to the provider concept that sends or receives it. Read it as a checklist for your provider review: confirm each row against the provider's documentation and the Decidim version you run before you configure anything. The main takeaway is that address text, coordinates and tile or attribution settings travel on different paths, so a provider change affects each one separately.

Decidim data pointProvider concept involvedDirection and what to confirm
Address text on proposalsGeocoding request querySent from Decidim to the geocoder. Confirm which fields leave your instance and whether the provider stores queries.
Address text on meetingsGeocoding request querySent from Decidim to the geocoder when an organizer enters a location. Confirm the same query path as proposals in your Decidim version.
Saved latitude and longitudeReturned coordinatesReceived from the geocoder and stored in Decidim. Confirm the coordinate order and precision the provider returns.
Map center and zoom for a componentMap view settingsSet in Decidim and applied by the map library in the browser. Confirm how the default view behaves after a provider switch.
Tile layer sourceTile URL templateLoaded by participants' browsers from the tile server. Confirm the template format, the zoom range and the hosts that receive browser requests.
Attribution textAttribution stringDisplayed on the map for the tile and geocoding source. Confirm the exact wording the provider requires and where Decidim shows it.
Provider credentialsAPI keySent with each request to a commercial provider. Confirm where the key is stored, who can read it and how it is rotated.
Provider selectionEnvironment setting per providerRead at startup or on deploy. Confirm the setting names in the installation guide for your release before you change them.

Security settings for map and geocoding integrations

Map tiles, scripts and geocoding calls put API keys, browser traffic and participant location text outside Decidim's core code path. The six controls below cover where credentials live, which hosts the platform may reach, who can change map settings, how the browser is allowed to load map assets, what gets logged, and how keys are rotated.

Keep keys in the secret store

Store the HERE API key, or any commercial OpenStreetMap provider key, in the same secret store your deployment uses for database credentials and SMTP passwords. Decidim reads map and geocoding configuration from the environment, so the key should never appear in a committed file, a Docker image layer, a container build argument or a rendered admin page. Keep it out of application logs and error reports as well. Confirm with the vendor which key types exist and whether a key can be scoped to a single service, referrer or IP range.

Manual installation docs

Restrict outbound traffic to provider hosts

Limit the Decidim server's outbound network access to the named tile, static map and geocoding hosts for the provider you chose. For a self-hosted Nominatim or Photon service, allow only the internal address of that service. Egress rules matter most for server-side geocoding, where the application itself makes the request. Write the allowlist from your provider's documentation and review it whenever the provider changes its endpoints.

Limit who can change map settings

Map provider choice, keys and default coordinates are organization-level settings. Restrict changes to a small set of administrators, and confirm that the Decidim roles you assign cannot reach the settings screen unless they need it. Record who changed a provider or key, and review those changes after each release, because a changed provider silently moves participant location queries to another party.

Set content security policy for map origins

Browser-side maps load tiles, scripts and styles from separate origins. Add those origins to the content security policy for scripts, images, styles and connections, and keep the list as narrow as the chosen provider allows. Do not add wildcard hosts. Test each map page after a policy change, because a blocked tile origin usually fails silently and shows a grey map rather than an error.

Log failures without addresses

Geocoding failures are useful for diagnosing bad provider keys, quota errors and timeouts, but a failed lookup often contains the address a participant typed. Log the status code, provider name, request time and a non-identifying reference, and drop the query text where your privacy policy does not allow it to be kept. Check what your log shipper and error tracker capture by default, because they may store request bodies that the application logger does not.

Plan rotation and usage monitoring

Write a rotation procedure before go-live: who issues a new key, where it is stored, how the old key is revoked, and how Decidim is restarted without downtime. Pair rotation with usage monitoring at the provider so unexpected spikes or quota exhaustion are visible. Ask the vendor how usage is reported, how long usage data is kept, and whether alerts can be sent to your team.

Why the map or address lookup fails after go-live

This table lists the failures teams most often see when a Decidim map or address lookup stops working after launch, with the likely cause and the procedural fix for each. Read it as a checklist: match the symptom first, then work through the cause and confirm the configuration against the Decidim installation documentation.

SymptomLikely causeFix
Blank map tilesThe content security policy does not allow the tile server or map provider originAdd the provider's tile and script origins to the CSP directives, restart the app, then reload with cache cleared and check the browser console for blocked requests
Address search returns no resultsThe geocoder index is incomplete or the country data does not cover the cityConfirm the geocoder's import covers your region, rebuild or re-import the index, and test a known address with the same query the participant uses
Pin lands in the wrong placeLatitude and longitude were swapped in a custom template or componentCheck the order of the coordinate arguments in the template, compare one saved record against a known point, and correct the helper before redeploying
Slow map or search pagesA remote provider is rate limited or far from your users, or the self-hosted geocoder is under-sizedMeasure response times for each lookup, move the geocoder closer to the application, and size its memory and CPU against your expected query volume
Provider rejects requestsAn API key was rotated, restricted to other domains, or its quota was exhaustedCheck the key's status, allowed referrers and quota in the provider console, then update the environment variable and confirm the new key is loaded
Missing map attributionThe attribution text was removed from a theme or was never added for the chosen tile sourceRestore the attribution text required by the tile provider in the map component, and confirm it appears on every page that shows a map

Questions buyers ask about Decidim maps providers

Does HERE cost more than self-hosting OpenStreetMap services for Decidim?

It depends on usage, hosting and the people who run the stack, so neither option is automatically cheaper. A hosted provider such as HERE is billed under its own usage terms, which typically scale with the number of map loads and geocoding requests, and the bill recurs for as long as the platform runs. Self-hosted OpenStreetMap services shift the cost to infrastructure and staff: servers and storage for tile and geocoder data, bandwidth, and the engineering time to keep data and software current. Ask for the provider's current pricing and terms in writing, and ask the partner to show how each cost is calculated against your expected traffic and the size of the map region you need.

How long does a Decidim maps integration take, and what drives that time?

The duration comes from the written scope, not from a general rule. The main drivers are the choice of provider, whether you need interactive tiles, static map images, forward geocoding for addresses, or reverse geocoding for pins, and how many components such as proposals and meetings use maps. A self-hosted stack adds time for importing OpenStreetMap extracts, building or loading the geocoder index, and sizing the servers. Testing across development, staging and production, plus checks of how addresses appear to participants in each language, also adds time. Ask the partner for a phased plan that lists these steps and the acceptance tests for each.

What does our team need to provide for a maps integration?

Your team needs to supply decisions, access and content rules before work begins. Typically this includes the geographic area the map must cover, the list of Decidim components that show maps, the provider account or hosting environment, and the privacy position on sending addresses to a third party. Your operations team should provide servers or cloud accounts, DNS and TLS settings, and a place to store backups. Your product or communications team should confirm which languages, address formats and default map views participants will see. Agree on named owners for each item in the written scope.

Can our platform team set up Decidim maps without outside help?

Yes, if the team has Rails and PostgreSQL experience and can run the stack, and the chosen provider is a hosted API with a documented key. The work is more demanding for self-hosted tiles or Nominatim and Photon, which need data imports, index maintenance and capacity planning. Decidim's installation documentation covers how production setups configure maps and geocoding, and the Decidim upgrade process means map configuration must be checked at each minor release. Assess your team's skills against the list of tasks in the scope before deciding, and consider a partner for the parts that are new to your staff.

What ongoing work recurs after a maps integration goes live?

Most of the recurring effort is operational. Hosted providers require monitoring of usage against your terms, key rotation and budget alerts. Self-hosted services need periodic data updates from OpenStreetMap, rebuilds of geocoder indexes, storage growth management, security patches for the mapping software, and retesting after each Decidim upgrade. Backups of any tile or geocoder data should be tested, not just taken. Ask for a support model that states who watches usage, who applies updates, how often data is refreshed and how incidents are escalated, and whether it is a fixed retainer or billed per request.

Does using a third-party map provider create privacy or compliance issues?

It can, because addresses typed into proposals or meeting forms and map requests reveal location data to the provider. Review your data protection obligations, the provider's data processing terms and where its servers are located before choosing. Self-hosted OpenStreetMap services keep requests inside your infrastructure, which simplifies data transfer reviews but moves the security duties to your team. Record the decision, the data flows and the retention settings so that auditors and privacy officers can review them. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications.

What should we request in a quote for Decidim maps work?

Ask for a written scope that lists each map feature, each Decidim component affected and each provider or self-hosted service involved. The quote should separate one-time work, such as configuration, data import and testing, from recurring costs, such as hosting, provider usage and support. Request the assumptions behind any usage or capacity estimate, the provider terms that were used, the acceptance criteria and the retest plan after upgrades. Prices and effort come from the written scope and the provider's current terms, so ask the vendor to confirm both dates before you sign.

How DeployOpen scopes and delivers Decidim map integrations

DeployOpen plans, implements, integrates, tests and documents Decidim map and geocoding setups inside the client's own infrastructure. The work starts with a written scope that compares HERE with self-hosted OpenStreetMap services for your proposals and meetings, so the choice is made on your requirements.

How we scope

  • Engagements are fixed-scope, with map provider, data handling and deliverables agreed in writing before work starts.
  • We record which Decidim components need maps, such as proposals and meetings, and which address fields need geocoding.
  • We confirm your hosting constraints, data residency needs and whether participant location data may reach a third party.
  • Ask for a quote that separates provider fees, infrastructure, configuration and testing effort.

How we build

  • We configure the map provider and geocoding service in the Decidim environment for each organization that needs them.
  • Self-hosted tile, static map, Nominatim or Photon services are deployed in your infrastructure with sizing and updates planned.
  • We test address search, marker placement, map rendering and privacy behavior on the components you use.
  • Configuration changes are tracked so later Decidim upgrades can be reviewed against the map settings.

How we hand over

  • You receive a configuration record covering provider keys, endpoints, environment variables and where each setting lives.
  • Runbooks describe how to refresh OpenStreetMap data, restart map services and rotate provider credentials.
  • We document the data flows so your privacy and compliance team can review where coordinates and addresses are sent.
  • Handover includes a walkthrough with your platform and administration teams.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover map provider changes, OpenStreetMap data updates and checks after each Decidim minor version upgrade.
  • We can retest map features after infrastructure changes or new Decidim releases.
  • Confirm response expectations and service levels in the written retainer scope before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.