Geocode contextual filter value

Created on 26 November 2024, 4 months ago

Problem/Motivation

The regular filter can be geocoded with a configured geocoder provider. But contextual filter values do not have this option.

Steps to reproduce

- Create a content type with a geofield.
- Index that geofield in a search_api index.
- Create a view of that index with both regular and contextual filters on that geofield.

The regular filter will have geocoding options, while the contextual filter does not.

Proposed resolution

Extend SearchApiLocationPoint with a geocoding option like the regular filter when search_api_location_geocoder submodule is enabled. The existing filter already seems to expect location info (geoPHP::detectFormat()), just need to add the ability to geocode plain text using an available geocoder into that expected format.

Remaining tasks

- Test
- Review
- Merge

User interface changes

- Additional options to the location field contextual filter similar to the regular filter.

API changes

- None

Data model changes

- None

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fskreuz

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024