Product Feature: Java
Operating System: Not stated
Version: 7,8,9
Operating System: Not stated
Version: 7,8,9
Issue
User read in the Spectrum guide the following for Enterprise Geocoding Module (EGM):
MatchMode
CustomMode - This option allows you to specify which parts of a candidate address must match the input address to be considered a close match. Use the MustMatch<Element> options to specify the address elements you want. This is the default value.
RelaxedMode - All candidates are considered close.
Using Java code, user is creating a request object and is adding the MatchMode option as:
request.putOption("MatchMode", "RelaxedMode");
When running the code, this error occurs:
Error Occurred, Exception thrown by Stage:GeocodeUSAddress in dataflow GeocodeUSAddress: com.g1.dcg.stage.StageException: com.g1.component.geostan.GeoStanComponentInvalidOptionException: Input option 'MatchMode' has invalid value: RelaxedMode
MatchMode
CustomMode - This option allows you to specify which parts of a candidate address must match the input address to be considered a close match. Use the MustMatch<Element> options to specify the address elements you want. This is the default value.
RelaxedMode - All candidates are considered close.
Using Java code, user is creating a request object and is adding the MatchMode option as:
request.putOption("MatchMode", "RelaxedMode");
When running the code, this error occurs:
Error Occurred, Exception thrown by Stage:GeocodeUSAddress in dataflow GeocodeUSAddress: com.g1.dcg.stage.StageException: com.g1.component.geostan.GeoStanComponentInvalidOptionException: Input option 'MatchMode' has invalid value: RelaxedMode
Cause
User is looking at the matching options for the EGM GeocodeAddressAUS service. The GeocodeAddressUS service matching options are different from the GeocodeAddressAUS service.
For the GeocodeUSAddress service, MatchMode options are:
For the GeocodeUSAddress service, MatchMode options are:
- Custom
- Exact
- Close
- Relax
- CASS
Resolution
UPDATED: September 9, 2019Update Java code and change the MatchMode option to:
request.putOption("MatchMode", "Relax");
request.putOption("MatchMode", "Relax");