Important Note: To use this component you must have an API key. To know more and get one please follow the steps provided by Google here.
Usage
After importing the GoogleAutocompleteWidget to your project drag the widget to the screen. The Autocomplete widget attaches to an input element of type text, and listens for text entry in that field. The list of predictions is presented as a drop-down list, and is updated as text is entered.
Internally the widget is an implementation of the Autocomplete class described here.
Inputs
The Autocomplete widget inputs allow to configure the widget behavior. You can directly fill them if they are static. If you want to adjust them dynamically, use variables, the widget will listen to the OnParametersChanged event and will readjust to the changes in the inputs.
Outputs
After configuring the widget inputs you need to define a handler action that will be triggered by the PlaceChanged event. The action will then receive a PlaceResult structure as an input with all requested / available fields for the selected place. The PlaceResult structure is mapped from a class with the same name described here.
Since the PlaceResult is a complex structure, this component also includes a helper client action called GetSimplifiedAddressComponents which extracts some common address attributes from the PlaceResult structure and outputs a SimplifiedAddressComponents structure, to assist you in getting some common tasks done quicker.