Street number is at the end not beginning of addresses with google api

Created on 9 June 2025, about 1 month ago

When using the google plugin having selected a proposed address in the webform it populates with the street number at the end of the street address instead of the beginning.

Steps to reproduce:
- Configure a provider (I used google maps)
- add the address autocomplete field to a webform
- start typing an address beginning with a street number and select the proposed address.
- The street number is at the end and stored as such.

I have replaced line 76 of the GoogleMaps.php file with the following to fix:
$results[$key]["street_name"] = !empty($streetNumber) ? $streetNumber . ' ' . $results[$key]["street_name"] : $results[$key]["street_name"];
Perhaps this is an acceptable fix that could be included.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States prosaicpoet

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