Option Overview

Address Control Object

var DOTSGlobalAddressComplete= new so.Address(fields, options);

Options*

var options = { key: CustomKey, setBiasToIP: true };

Option Table

OptionDefaultValuesDescription
keyNo defaultStringThe Custom Key.
isTrialtruetrue,
false
Determines if executing Global Address Complete against our trial or live environment.
setBiasToIPfalsetrue,
false
Sets the starting location from which results should be return from to the IP location of the user so that if you are in Santa Barbara, CA, USA as you type suggested addresses returned are first from there.
setCountryByIPfalsetrue,
false
Sets the country selected to the country of the user.
countriesNo defaultVarious
country
values
Limits the suggestions to by country, for example this can be added to the options to restrict suggestions to Canada, Russia and Sweden:
countries: { codesList:”CAN, RUS, SWE”}
Validatetruetrue, falseSets the selected United States addresses to return validated against our DOTS Address Validation US – 3 Service.
Accessibilityfalsetrue, falseSetting to true will turn on ID’s for screen readers and high contrast for visually impaired.
languagePreferenceenVariousTwo letter ISO codes for the language preferred.
promptfalsetrue,
false
Turn on additional prompts based on conditions of the suggestions, such as: “No Results Found” or “Keep Typing…”
maxItems7IntegerThe maximum number of items to return in the dropdown.
DoPlacefalsetrue, falseSetting this option to “true” will set the component to do place predict suggestions instead of address.
SearchTypeLocalityLocality only but will vary in the futureDetermines the Global Address Complete Search Type if specified. If using the Address Search Type, no need to include this field. If a value is placed that does not match with Locality, it will return empty results. More Search Type options coming soon.

*Note, the true/false values are boolean values and not strings.