Address Autocomplete

This feature is available to organizations on the Pro, Team, and Enterprise plans.

Integrate your forms with Google Maps to automatically suggest addresses as users start typing.

To get started, select an Address field in the form builder and find the Address Autocomplete option. Here, you can edit the connection name/description, enter your Google Maps API Key (see instructions below), and see which forms your Google Maps integration is connected to.

Quick Tip

To limit address suggestions to a specific country, select a default country in the Address field settings and then deselect the Country subfield.

Restrict address results by country.

Creating a Google Maps API key

To create a Google Maps API key:

  1. Create or sign in to your Google account and then go to Google Cloud.

  2. Select the projects dropdown in the top toolbar to create a new project or select an existing project.
    Google Cloud dashboard with a project titled "My First Project" and a welcome screen interface.

  3. Open the menu in the top left and select Billing. Follow the steps to set up billing information for your account. If this is your first time setting up billing and creating a key, a series of modals will appear, introducing you to the product and generating an API key for you. You may close these modals as we will walk through the individual setup steps later.
    Open the Billing section from the menu.

  4. Open the menu and go to Google Maps Platform > APIs & Services.
    Go the APIs & Services.

  5. Find and enable Maps JavaScript API and Places API (New).
    Find and enable the Maps JavaScript API and Places API (New)

  6. Open the menu and go to APIs & Services > Credentials.
    Go to Credentials under APIs & Services.

  7. Select + CREATE CREDENTIALS > API key. If an API key was generated for you after billing was set up, you may ignore this step and continue with the key that was created for you.
    Create a new API key.

  8. To rename your key, select the key name from the list to open the key settings. Make sure to click Save when you’re done!
    Rename your API key.

Setting key security

To set key security in the Google Maps platform:

  1. Open the menu and go to APIs & Services > Credentials.
    Go to Credentials under APIs & Services.

  2. Select your API key from the list.
    Rename your API key.

  3. Under Application restrictions, select Websites.

  4. Under Website restrictions, select + ADD and enter the following Url: *.cognitoforms.com/* Be sure to add any domains where your form is embedded as well.
    Add the Cognito Forms URL to your API configuration settings.

  5. Under API restrictions, select Restrict key.

  6. In the dropdown, check Maps JavaScript API and Places API (New) on the dropdown and click Save.

Setting a usage quota

Quick Tip

Refer to the Places section in the Google Maps Platform Pricing for more information about monthly usage costs.

To set a usage quota in the Google Maps platform:

  1. Open the menu and go to Google Maps Platform > Quotas.
    Go to Google Maps Platform and then select Quotas.

  2. Use the dropdown in the top toolbar to select Places API.
    Places section in Google Maps

  3. Find the quota table at the bottom and select AutocompletePlacesRequest per day.

  4. Click the pencil icon to edit the quota and enter your usage quota. Refer to the Places section in the Google Maps Platform Pricing for more information about monthly usage costs.
    Limit requests per day by editing the quota limit.

Enabling budget alerts

To enable budget alerts in the Google Maps platform:

  1. Open the menu and go to Billing.
    Open the Billing section from the menu.

  2. Select your billing account and go to Budgets & alerts.
    Go to Budgets & alerts.

  3. Select + Create Budget from the top toolbar.

  4. Name the budget and set the time range to Monthly.

  5. Select your project name and All services and click Next.
    Edit your budget settings.

  6. Set Budget type to Specified amount and set Target amount to $0.
    Set the budget type and target amount.

  7. Click Finish. You will receive an email if you exceed the limit.