There is a paramater called Region.CheckState it is set true per defaul because for some countries the state information. But there is no fuzzy or phonetic search for a state input.
There are two ways to swich off the parameter Region.CheckState.
1. In the config file (.\xlocate-x64-1.22.0.1\conf\native-default.xml)
- shut down the xLocate
- copy the native-default.xml and set the paramater <Region.CheckState Value="0" Type="bool"/>
- choose a new config nama e.g. native-xyz.xml
- start the xLocate
- send the following request:
Code: Select all
{
"addr": {
"country": "D",
"state": "Nrdrhein-Westfalen",
"postCode": "",
"city": "Münster",
"city2": "",
"street": "",
"houseNumber": ""
},
"options": [],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "xyz"
}
]
}
}
2. By request:
Code: Select all
{
"addr": {
"country": "D",
"state": "Nrdrhein-Westfalen",
"postCode": "",
"city": "Münster",
"city2": "",
"street": "",
"houseNumber": ""
},
"options": [{
"$type": "NamedSearchOption",
"param": "Region.CheckState",
"value": "0"
}],
"sorting": [],
"additionalFields": [],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "PTV_MERCATOR"
},
{
"key": "Profile",
"value": "default"
}
]
}
}
Edit by Joost: added code tags for readability