Page 1 of 1

xLocate2 – single field : filter by country

Posted: Wed Jan 22, 2020 10:41 am
by Syon_Leo
Hi there,
We use xLocate2 single field search named SearchByTextRequest. By entering the text “1100” (postal code of some districts in Vienna) we receive hits in Lissabon (Portugal) and Nicosia (Cypress).
Vienna doesn’t appear at all. If we use “1100 W” or “1100 Österreich” we are successful.

Is there some country filter available we could apply to get the result we would like to have? We don’t want a global search…
Best regards,
Leo

Re: xLocate2 – single field : filter by country

Posted: Wed Jan 22, 2020 11:45 am
by bocajo
Hi Leo
This will be a new feature of the xServer 2.17 which is currently planed for end of February. Then it is possible to restrict the single field search on spezific countries. In your case the request could look like this:

Code: Select all

{
  "$type": "SearchByTextRequest",
  "text": "1100",
  "searchOptions": {
    "allowedCountries": [
      "AT","DE","CH"
    ]
  }
}
Best regards

Re: xLocate2 – single field : filter by country

Posted: Wed Jan 22, 2020 4:26 pm
by Bernd Welter
Hi there,

the feature described by Jochen can improve both the quality of a result and also the performance because the data that has to be analyzed is reduced ;-) Customers who are active in a defined part of the world will benefit from this...

Here's an example output
Geocoding of "esplanade 5270". Only hits in LU and AU are searched
Geocoding of "esplanade 5270". Only hits in LU and AU are searched
Best regards,
Bernd

Re: xLocate2 – single field : filter by country

Posted: Mon Jan 27, 2020 12:19 pm
by Bernd Welter
Cheers!

You can test the new feature in the test environment:
https://xserver2-test.cloud.ptvgroup.co ... Runner.htm

Feedback is welcome!

Best regards,
Bernd