Pass additional parameters to geocoders

Created on 4 February 2024, 5 months ago
Updated 16 February 2024, 4 months ago

Problem/Motivation

The results from geocoders can be improved if additional parameters are passed. Examples: Nominatim can return results for just one country; Photon can be told what language to return results in.

Proposed resolution

To facilitate this we've got the Drupal Geocoder module to provide a way of passing these parameters in https://www.drupal.org/project/geocoder/issues/3406303 ✨ Pass additional parameters to geocoders Needs review It should now be made so that this module uses it.

User interface changes

None.

API changes

Use the enabled geocoders directly passing in a Geocode Query. Make an event available which can allow for manipulating the Query with knowledge of the Address being geocoded, and what language the geo entity is in. Use this event to take the country from the address field to restrict results from Nominatim. Also use it to set the language (if available) in Photon.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands ekes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024