Country codes in API 2

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.
Post Reply
jerich
Posts: 7
Joined: Tue May 14, 2019 9:55 am

Country codes in API 2

Post by jerich »

Hi,

with the endpoint GetDataInformation of XRuntime in API 2 it is possible to fetch a list of supported countries by continent. In this list only the ISO2 country code is provided, see the first image below.

Question: Is it possible to get the country name as well?

In API 1 PTV provided a static list of country codes see the second image.
Attachments
1.png
2.png
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Country codes in API 2

Post by Bernd Welter »

Hello Matthias,

the country name isn't available through the API - therefore my recommendation is to create a look-a-side table in your environment where you keep some dictionary based on ISO2-Code and CountryName (in the language of your choice).

I will also forward this post to Product Management. Best case they override me with a built in solution.

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... :twisted:
Post Reply