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!
Search location param for region Europe
- Bernd Welter
- Site Admin
- Posts: 2703
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Search location param for region Europe
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
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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
-
- Posts: 7
- Joined: Sat Mar 13, 2021 2:03 pm
Re: Search location param for region Europe
Ok, can you please post/send a list of european country codes that can be used as filter in the request?
Thank you!
Thank you!
- Bernd Welter
- Site Admin
- Posts: 2703
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Search location param for region Europe
Well, the following list (66 elements) is not an official one...
Grabbed it from user Nicocavallo (https://gist.github.com/henrik/1688572)
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
Grabbed it from user Nicocavallo (https://gist.github.com/henrik/1688572)
Is said to contain both EUROPEAN COMMUNITY and the othersAT,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
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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
-
- Posts: 7
- Joined: Sat Mar 13, 2021 2:03 pm
Re: Search location param for region Europe
Ok, I will use it on my own risk ) thanks!
Re: Search location param for region Europe
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"
Joost Claessen
Senior Technical Consultant
PTV Benelux
Senior Technical Consultant
PTV Benelux
- Bernd Welter
- Site Admin
- Posts: 2703
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: Search location param for region Europe
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
}
}
- Attachments
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...