Search not working with google autocomplete

How Can We Help?

Search not working with google autocomplete

You are here:
< Back

Sometimes the search does not appear to be working correctly particularly when using place names auto-filled but the google locations functionality.  The problem is usually to do with the google api key you are using having been restricted to your website domain.  Because the plugin performs a background google maps api longitude/latitude lookup on address entered in the search box this restriction will prevent this lookup from completing.  This is because background requests will present the domain of the hosting company of your website, not your website address and therefore get block.

Resolution

Remove any domain restrictions on your google maps api key.  Visit https://developers.google.com/maps/documentation/javascript/get-api-key and click the link to got to the Goolge API Console