magento2-google-address-lookup icon indicating copy to clipboard operation
magento2-google-address-lookup copied to clipboard

Number of Lines in a Street Address

Open ghost opened this issue 6 years ago • 2 comments

Hello, i am using this setting Number of Lines in a Street Address ; 1 When is type the address the autpcomplete only returns the housenumber not the streetname. (dutch user)

ghost avatar Jun 08 '18 07:06 ghost

Hello, You can try to do this in CtiDigital/GoogleAddressLookup/etc/frontend/di.xml

<type name="CtiDigital\GoogleAddressLookup\Block\Js\GoogleApi">
        <arguments>
            <argument name="fieldsMap" xsi:type="array">
                <item name="street[0]" xsi:type="string">route|street_number</item>
                <item name="country" xsi:type="string">country</item>
                <item name="city" xsi:type="string">locality|postal_town</item>
                <item name="postcode" xsi:type="string">postal_code</item>
                <item name="zip" xsi:type="string">postal_code</item>
                <item name="region" xsi:type="string">administrative_area_level_1</item>
            </argument>
        </arguments>
    </type>

bluvertigo avatar Apr 17 '20 09:04 bluvertigo

Hello @bluvertigo,

is there a way to join the street and the number all together? (italian user)

Thanks for your extension.

shinesoftware avatar Oct 01 '21 14:10 shinesoftware