Home / Documentation / Address Autocomplete / Automatic Address Formatting by Country

Automatic Address Formatting by Country

When you use the {address1:long_name} placeholder, Address Autocomplete automatically formats the street address according to the conventions of the selected address’s country. No configuration is needed.

How it works

Most countries use the format street number first: 123 Main Street

However, many European and South American countries use the format street name first: Main Street 123

The plugin detects the country of the selected address and applies the correct format automatically.

Countries using “street name first” format

Germany, Austria, Switzerland, Netherlands, Mexico, Denmark, Norway, Sweden, Finland, Czech Republic, Hungary, Slovenia, Croatia, Poland, Slovakia, Russia, Belgium, Luxembourg, Italy, Spain, Portugal, Argentina, Chile, Uruguay, Estonia, Latvia, and Lithuania.

All other countries use the “street number first” format.

Does this affect other placeholders?

No. This automatic formatting only applies to the composite {address1:long_name} and {address1:short_name} placeholders. If you use the individual {street_number:long_name} and {route:long_name} placeholders separately, they are returned as-is and you control the order yourself.