Configure default preferences for a service - geo_addressing_sdk - 5.0

Geo Addressing SDK Developer Guide

Product type
Software
Portfolio
Locate
Product family
Geo Addressing
Product
Geo Addressing SDK
Version
5.0
Language
English
Product name
Geo Addressing SDK
Title
Geo Addressing SDK Developer Guide
Copyright
2023
First publish date
2007
Last updated
2025-01-05
Published on
2025-01-15T17:06:35.074000

To configure default preferences for each service, add the below lines to your Addressing.yaml under the preferences section.

If you want to set a default preference for a service, then add:
config:
  default:
    preferences:
      maxResults: 1
Note: To override the default preference of a particular service, set the configuration as shown below:
  • For Autocomplete Service, add:
    config:
      INTERACTIVE:
        preferences:
          maxResults: 5 
  • For Reverse Service, add:
    config:
      REVERSE_GEOCODE:
        preferences:
          maxResults: 6
  • For Parse Service, add:
      config:
      PARSE:
        preferences:
          maxResults: 4
  • For Verify Service, add:
      config:
      VERIFY:
        preferences:
          maxResults: 7
  • For Lookup Service, add:
    config:
      LOOKUP:
        preferences:
          maxResults: 8
  • For Geocode Service, add:
    config:
      GEOCODE:
        preferences:
          maxResults: 3