Page 1 of 1

Search location param for region Europe

Posted: Tue Mar 23, 2021 10:49 am
by stefan.rotaru
Hi,

Is there a way to filter (get) the results for SeachLocations (by text) only for places in Europe?
(Other than writing in the request all the allowed country codes in the field allowedCountries)

Thank you!

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 10:56 am
by Bernd Welter
hello Stefan,

currently this is not possible. In fact we invented the "countries" based filter some versions ago and we just added the more detailed "state" filter in v2.22 (I'll demonstrate this in the webinar 24.3.2021)

I'll forward this question to PM.
Maybe a static list of european ISO2 codes would do a fine job?

As far as I know these codes are used to benefit from the index in terms of performance (and of course you wouldn't have to filter on client side).

Bernd

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 11:08 am
by stefan.rotaru
Ok, can you please post/send a list of european country codes that can be used as filter in the request?
Thank you!

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 11:42 am
by Bernd Welter
Well, the following list (66 elements) is not an official one...
Grabbed it from user Nicocavallo (https://gist.github.com/henrik/1688572)
AT,BE,BG,HR,CY,CZ,DK,EE,FI,
FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,
PL,PT,RO,SK,SI,ES,SE,GB,GF,GP,MQ,
ME,YT,RE,MF,GI,AX,PM,GL,BL,SX,AW,
CW,WF,PF,NC,TF,AI,BM,IO,VG,KY,FK,
MS,PN,SH,GS,TC,AD,LI,MC,SM,VA,JE,GG,GI
Is said to contain both EUROPEAN COMMUNITY and the others ;-)
Usage: at your own risk. I also forwarded this question to DATA to get an officially approved list. Our regular EU city map is based on 52 country units (incl. Russia)

Best reards,
Bernd

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 12:05 pm
by stefan.rotaru
Ok, I will use it on my own risk :)) thanks!

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 1:32 pm
by Joost
We do have a list we internally use for creating high performance networks. It is a bit different then the github list.
"AD", "AL", "AM", "AT", "AW", "AZ", "BA", "BE", "BG", "BL", "BY", "CH", "CW", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FO", "FR"
, "GB", "GE", "GF", "GI", "GL", "GP", "GR", "HR", "HU", "IE", "IS", "IT", "KZ", "LI", "LT", "LU", "LV", "MC", "MD", "ME", "MF"
, "MK", "MQ", "MT", "NC", "NL", "NO", "PF", "PL", "PM", "PT", "RE", "RO", "RS", "RU", "SE", "SI", "SJ", "SK", "SM", "SX", "TR"
, "UA", "UZ", "VA", "WF", "YT"

Re: Search location param for region Europe

Posted: Tue Mar 23, 2021 5:52 pm
by Bernd Welter
You could also use the following xRuntime request to gather the ISO 2 country codes of the countries in the map

Code: Select all

{
  "dataInformationOptions": {
    "returnOnlyLicensedMapFeatures": true
  },
  "resultFields": {
    "continents": true
  }
}