Unable to Geocode with KML provider

Created on 21 December 2020, over 4 years ago
Updated 5 June 2024, 11 months ago

Problem/Motivation

The geocoding function does not work when I add a content, i.e. I get the warning 'Unable to geocode ...'

Suspected reason

Providers don't appear in the dropdown at /config/system/geocoder/geocoder-provider (except GPS, GeoJson, KML)

Steps to reproduce

It is a fresh local drupal 9.1.0 installation. I think I installed everything cleanly, in particular :

composer require drupal/geocoder
composer require drupal/address
composer require drupal/geofield
composer require geocoder-php/google-maps-provider
composer require geocoder-php/geo-plugin-provider
composer require geocoder-php/nominatim-provider
composer require willdurand/geocoder

As a result, I see providers in the directory /vendor/geocoder-php

So, I added an address field then a geofield field using the method "Geocode from an existing field". (Note I use geocoder to locate groups)
Then I took the existing field [address], checked "Skip Geocode/Reverse Geocode if target value is not empty" and checked "KML File"
But the address is not converted into coordinates. Hence warning 'Unable to geocode ...'
Because no provider is enabled ? But why ?

Thank you for your help, I really need it.

πŸ’¬ Support request
Status

Fixed

Version

3.14

Component

Documentation

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024