Custom preferences supported by the Autocomplete Service are for use against any country dataset.
To create a custom preference for a POST request, follow this code snippet.
"preferences" : {
"customPreferences" : {
"<YOUR_CUSTOM_PREFERENCE>" : "true"
}
Parameter | Type | Description |
---|---|---|
SEARCH_TYPE |
String | Custom preference to control search type of interactive requests.
default: ADDRESS_COMPLETION possible values: |
COMPRESSED_AREA_RESULT |
Boolean | Limits the search to given administrative area. Default: false |
KEY_CUSTOM_DICTIONARY_USAGE |
String | possible values:
PREFER_CUSTOM_DICTIONARIES, PREFER_STANDARD_DICTIONARIES, |
EXPANDED_RANGE_UNIT | Boolean | Custom preference to flatten the candidate ranges and units to individual candidates. Default value for EXPANDED_RANGE_UNIT is false, if set to true the candidates get flattened out. |