Home / Documentation / Address Autocomplete / Address Autocomplete Fallback Values

Address Autocomplete Fallback Values

This article is for the premium edition of Address Autocomplete

Google Maps does not always provide every data point for an address as some countries are structured differently or a specific neighborhood does. As a result, you sometimes may find a fallback value may be helpful to cover more address scenarios for your users.

As of version 1.6, there is a new fallback feature which allows you to set multiple fallback values to be used in case the primary data point is unavailable. Here is an example:

{locality:long_name fallback="postal_town:long_name"}

If no “locality” value is returned from Google, the Address Autocomplete plugin will then use the value from “postal_town” instead.

You can use multiple fallbacks by separating them with commas:

{locality:long_name fallback="postal_town:long_name,administrative_area_level_1:long_name"}