The Autocomplete Controller class acts as the public class which you may wield to enable address autocomplete on your HTML address forms
When instantiated, the controller will serve as a bridge beteen the address suggestion view presented on the DOM and the Ideal Postcodes Address resolution HTTP APIs
More concretely, the instantiation of a controller instance creates:
The role of the controller is to bind to events produced by the user interface and take appropriate action including querying the API, modifying other aspects of the DOM.
Address Finder API cache
Ideal Postcodes API Client
Reference to the DOM, to which this.scope belongs
Scopes the DOM for fields which should receive address inputs
Scopes the DOM for the entire controller
Attaches Controller to the DOM.
checkKey is enabled, a key check will be performed prioer to binding. Use the
onFailedCheck callbacks to define follow up behaviour if the key check succeeds or fails
Writes a selected to the input fields specified in the controller config