Vlocity Facts #37 || Configure Google Maps in Type Ahead Block

Before starting, request a Google Maps JavaScript API Key from Google if you don't already have one. To configure Google Maps follow these steps:

1. Drag and drop Type Ahead Block to the omniscript.
2. In Type Ahead Block properties check the Enable Google Maps Autocomplete checkbox.
3. Based on requirement, by using 'Hide Map' check box you can hide or display Google Map.
4. Enter your Google Map API Key.
5. You can filter the particular country or you can select 'All' in country filter.
6. By using Google Maps Transformation, we can map the response to fields. Select an Output JSON element [Google Response Node] and map it to an Input JSON field [Child Element].

  • street: Returns a street address
  • locality: Returns a city or town
  • administrative_area_level_1:  Returns a state
  • administrative_area_level_2:  Returns a county
  • postal_code: Returns a postal code
  • country: Returns a country 
After configuring it will look like this
By hiding Google Map. 
Displaying Google Map.

Note: We can select either one Country [India] from country filter or we can select All countries. Their is no option to select multiple [India, United states,...]. 




Comments

Popular posts from this blog

Vlocity Facts #01 | OmniStudio DataRaptors

Vlocity Facts #34 || Getting the details from the URL in a FlexCard and an Omniscript

Vlocity Facts #44 || Communication between Omniscript and Flexcard [Pub/Sub]