---
schema_version: "1"
id: f3911d5e367afe655e1eaa58600c001cb8521da233965ccbaed3871e95fddbbb
title: Using Google Maps Autocomplete with Omniscript (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_using_google_maps_autocomplete_with_omniscript.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_using_google_maps_autocomplete_with_omniscript.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a6afce2ee8524c92b3e9bffb185d39e75c0204f0921e7cc1162fc61036bf9dc1
description: For the managed package runtime, retrieve Google Maps data and display a location in the Type Ahead Block using the Google Maps API.
products:
  - Omnistudio
release: "264"
---
# Using Google Maps Autocomplete with Omniscript (Managed Package)

For the managed package runtime, retrieve Google Maps data and display a location in the Type Ahead Block using the Google Maps API.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

Beginning with Vlocity Insurance and Health Summer '20, LWC Omniscripts require different configurations for the Type Ahead Block's Google Maps functionality.

This video explains how to use the Google Maps API in a Type Ahead Block:

To add Google Maps autocomplete to a Type Ahead Block:

1. Add a Type Ahead Block to your Omniscript.
2. Add elements to the Type Ahead Block to map the response of the Google Maps API.
    
    The response includes:
    
    - **street**: Returns a street address
    - **locality**: Returns a city or town
    - **administrative\_area\_level\_1**: In the United States, this returns a state
    - **administrative\_area\_level\_2**: In the United States, this returns a county
    - **postal\_code**: Returns a postal code
    - **country**: Returns a country
3. In the Type Ahead Block's properties, expand the **Google Maps Autocomplete** section and check the **Enable Google Maps Autocomplete** checkbox.
4. (Optional) To hide the Google Map widget, check **Hide Map**.
5. In the Google Maps API Key field, enter your Google Maps JavaScript API key. If you don't have a Google Maps JavaScript API Key, obtain one from [Google.](https://developers.google.com/maps/documentation/javascript/get-api-key)
6. Click the Country Filter field and select a Country.
7. In the **Google Transformation** section, select an Output JSON element and map it to an Input JSON field.