How to know full country name from SIM country ISO code?

I want to know the full country name from SIM country ISO code. I have used Country Code block from the device utilities component.

component_set_get

This block returns IN which is a alpha-2 ISO code for India. I want to know the full country name. Is there any block that returns full country name with ISO code (IN) or phone code (+91)?

Probably no.
You can try storing ISO Code and country name in dictionary.

2 Likes

Or you can do it using web components

2 Likes

How? Is there any API?

https://restcountries.eu/

Check out this

2 Likes

Thank you. This is working and I can use it.

1 Like


I have made an app using this api.
It is a bit slow but works.
If anyone wants then I can share aia file here.

3 Likes

Why don’t you provide a tutorial on it…
I think to create a tutorial…

3 Likes

This API is very useful. It not just returns country name but also many other details like capital of the country, alpha2/3code, border names, currency and much more.

2 Likes

that api is very good

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.