javascript

Change autoCompleteTypes parameter in Google Autocomplete

The autoCompleteTypes parameter in Google Autocomplete is used to restrict the results to a specific type of place. The value of the parameter is a comma-separated list of type names

window.bullseyeLocationsConfig = { autoCompleteTypes: ["(cities)"] }

The autoCompleteTypes parameter in Google Autocomplete is used to restrict the results to a specific type of place. The value of the parameter is a comma-separated list of type names. The supported type names are:

  • geocode: This type instructs the Autocomplete service to return only geocoding results, rather than business results.
  • address: This type instructs the Autocomplete service to return only geocoding results with a precise address.
  • establishment: This type instructs the Autocomplete service to return only business results.
  • (cities): This type instructs the Autocomplete service to return results that match locality or administrative_area_level_3.
Was this helpful?