Custom Preferences
Custom preferences supported by the Interactive Geocode Service are for use against any country dataset. Other custom fields that apply to certain countries are located in href="../CustomFields/CustomFields_Intro.dita Custom Fields
To create a custom preference for a POST request, follow this code snippet.
"preferences" : {
"customPreferences" : {
"<YOUR_CUSTOM_PREFERENCE>" : "true"
}
Parameter | Type | Description |
---|---|---|
POST: SEARCH_TYPE |
String | Custom preference to control search type of interactive requests.
default: ADDRESS_COMPLETION possible values: |
POST: COMPRESSED_AREA_RESULT |
Boolean | Limits the search to given administrative area. Default: false |
POST: KEY_CUSTOM_DICTIONARY_USAGE |
String | possible values:
PREFER_CUSTOM_DICTIONARIES, PREFER_STANDARD_DICTIONARIES, |
POST: PREFER_POBOX_OVER_STREET |
Boolean |
For countries that support PO Box addresses, this preference allows you to prefer the PO Box match over the Street match. |