Setup

Update the Looop Config to enable Google Autocomplete for address fields.

<script>
   window.LooopConfig = {
       // ... other previous configs
   googlePlaces: true,
   googlePlacesKey: "REPLACE _WITH_YOUR_KEY",
   }
</script>

Get a Google Places API Key

  1. Go to the Google Cloud Console.
  2. Click the project drop-down and select or create the project for which you want to add an API key. If you don’t have a project, create a project.
  3. Search for the Places API and enable it.
  4. Click the menu button and select APIs & Services > Credentials.
  5. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.
  6. Click Close. The new API key is listed on the Credentials page under API keys.
  7. To restrict an API key, click restriction for websites adn then add your domain name to the list of allowed domains. Like *.yourdomain.com/*