Account created on 14 November 2007, about 17 years ago
#

Recent comments

🇭🇷Croatia odisei

Yes, many similarities here. I'll take a look at it.
Thanks!

🇭🇷Croatia odisei

Just to confirm the patch is applying cleanly on 8.x-2.1, drupal 10.2.0

🇭🇷Croatia odisei

+1 D10 4.x same issue, new provider is not showing up

🇭🇷Croatia odisei

Following for paragraphs functionality

🇭🇷Croatia odisei

Yes, much better suggestions now with places API. Thanks.

Regarding Address field integration, take look at Geocoder module, https://www.drupal.org/project/geocoder , it maps everything perfectly from the plain textifield.
Unfortunately it does not provide autocomplete widget, it works only on node save, even with typos, values are saved correctly to address field.

Maybe you can take look at it, and get the idea how to map values and address fields properly?

Anyways thanks for help!

Cheers

🇭🇷Croatia odisei

Here are issues I encountered while using latest stable Address Suggestion 1.0.14 + Address 8.x-1.12:

1)
Autocomplete Suggestions are limited in comparison to Google Maps Suggestions.
On both textfield and address field you get only one suggestion...

2)
Street numbers are not saved to address field, only street name.

3)
Some country specific address fields are not saved despite the fact they are set to Optional (except locality) in address field settings.
I get the errors for Japan (city or prefecture), Brasil (state), Canada (state), Australia (state) South Korea (Do Si)...

Cheers

🇭🇷Croatia odisei

I tried on clean install with composer and got this error:

The website encountered an unexpected error. Please try again later.

Error: Class "Drupal\address\Element\Address" not found in include() (line 23 of modules/contrib/address_suggestion/src/Element/AddressSuggestion.php).

Composer\Autoload\{closure}('/var/www/html/web/modules/contrib/address_suggestion/src/Element/AddressSuggestion.php') (Line: 427)
Composer\Autoload\ClassLoader->loadClass('Drupal\address_suggestion\Element\AddressSuggestion')
class_exists('Drupal\address_suggestion\Element\AddressSuggestion') (Line: 96)
Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass('address_suggestion', Array, 'Drupal\Core\Render\Element\ElementInterface') (Line: 17)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('address_suggestion', Array) (Line: 83)
Drupal\Component\Plugin\PluginManagerBase->createInstance('address_suggestion', Array) (Line: 152)
Drupal\Core\Render\ElementInfoManager->createInstance('address_suggestion') (Line: 121)
Drupal\Core\Render\ElementInfoManager->buildInfo('claro') (Line: 77)
Drupal\Core\Render\ElementInfoManager->getInfo('form') (Line: 816)
Drupal\Core\Form\FormBuilder->prepareForm('system_modules', Array, Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

After installing Address module the error is gone.

Also, for Mapquest and Google Maps providers, I only get one suggestion in the dropdown below the field. Whatever the string.
Tomtom gives multiple suggestions.

I'll try to create a separate module as per your instructions on the module page, with places API and report back.
Thanks

🇭🇷Croatia odisei

Yes, it's not working.

Could you just make a widget for default textfield, and only include lookup fetaure?
So the string value is saved in the default textfield instead of the address field.

🇭🇷Croatia odisei

Hey lazzyvn, I see that you made the fork. I'm unable to download the module.
I'm not familiar with git. Can you please upload the module tar.gz here so I can try it?
Thanks!

🇭🇷Croatia odisei

Hey, I just paid you.
Let me know when it's ready!
Thank you!

🇭🇷Croatia odisei

Thanks for reply.
Yes I know that you can hide address field elements, but you can't hide the country field, right?

So, for a use case when you have multiple fields for address/location input (ie pickup, stops, dropoff location) for locations in different countries, for each location you have to select a country from a dropdown with almost 200 countries.

All I'm saying, for such use case, single autocomplete field would improve ux.

- single autocomplete textfield widget for lookup - data input,
- data is saved in address field which is completely hidden on node edit form.

Cheers

Production build 0.71.5 2024