How to add Gecoder 3.x | 4.x providers

Created on 21 June 2020, about 4 years ago
Updated 15 May 2024, about 1 month ago

I'm not sure if this is just a documentation issue or something else — first time using the v3 version.

I tried several solutions here. Finally #56 worked for me. I believe that adding the right provider module from the beginning is essential.

I've required a couple of providers via composer (here-provider and google-maps-provider). Are they supposed to show up the the dropdown on the provider page (alongside FIle, GPX File, etc), or do I need to do another step? I've cleared cache. The readme states to "Create and configure one or more providers in the UI" but it's not obvious to me what that entails.

Apologies if I'm missing something obvious, any help is appreciated!

🐛 Bug report
Status

Needs review

Version

3.21

Component

Code

Created by

🇨🇦Canada mrogers

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.

  • 🇦🇺Australia imclean Tasmania

    Restoring the issue summary. @bogdog400, use the "Comment" field to reply rather than the issue summary.

    @bogdog400:

    I tried several solutions here. Finally #56 worked for me. I believe that adding the right provider module from the beginning is essential.

    Thanks for all of your help.

  • 🇺🇸United States bogdog400

    Doh. Sorry.

  • 🇦🇺Australia imclean Tasmania

    This time you completely wiped the "Issue summary" field. Only post in the comment field, don't change anything else.

  • 🇺🇸United States ja09

    Tried everything here but number #56 seems to be the simplest. Running D10.1 with PHP 8.1 and apache (with Seven theme.. don't judge 😏)

    Steps that worked for me-
    1. Uninstall geocoder_field, geocoder_address and geocoder_geofield
    2. If provider is installed it should now show at /admin/config/system/geocoder/geocoder-provider
    3. Edit > configure > save provider
    4. Reinstall geocoder_field, geocoder_address and geocoder_geofield

    The provider is missing again in the select list but is showing under Active Providers as seen in the screenshot. Hope this gets a permanent fix in case I need to switch providers in the future! (I didn't try the patch)

  • 🇺🇸United States khaldoon_masud

    Tried #56, I was able to select Google maps provider but when I tried to configure the geofield, I got the error:
    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "googlemaps" plugin does not exist. Valid plugin IDs for Drupal\geocoder\ProviderPluginManager are: random, file, kmlfile, geojsonfile, gpxfile in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /app/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)

  • 🇬🇧United Kingdom fonant

    Phew, this one is still fun to fix if you install geocoder before composer-requiring the providers. I was using just geocoder, and none of the other modules (using the geocoder field in Leaflet maps).

    I think the method that finally worked for me was:

    1. drush pm:uninstall geocoder
    2. drush cr
    3. Restart Webserver and PHP processes (Apache, php-fpm, OpenLitespeed, lsphp, etc.)
    4. drush pm:enable geocoder
  • 🇺🇦Ukraine Mykola Dolynskyi Poltava

    Tried everything.
    Only #64 works, thanks @khaldoon_masud

    Geocoder 3.47

  • 🇩🇪Germany henrik23

    Talking about the order of installing relevant geo modules my experience was the following:
    First step: Install geofield and create a new field of type geofield in your content type.
    Second step: After that install/activate geocoder, choose and save a geocoder provider.
    Third step: Modify the field created in step one and activate geocoding from the source you apreciate.

  • 🇬🇧United Kingdom jonnyToomey

    Having the same or related issue

    Followed instruction in readme, managed to add provider but on enabling geocode_address the provider was removed

Production build 0.69.0 2024