Android Question need list of mcc codes with country dial prefix

leitor79

Active Member
Licensed User
Longtime User
Hi,

I couldn't find a list with both items (and country name); I can find mcc list and prefix list but no list matching both values... can anyone help? I don't want to manually make a thing that surely is already done by someone...

Thank you!
 

leitor79

Active Member
Licensed User
Longtime User
Hi, Luca!

I don't understand the link you've posted.

I don't know if "related" is the word but, for example, Italy's MCC is 222 and Italy's country dialing prefix is 39. I suposse 222 and 29 are both related through "Italy", aren't they?

Thank you!
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
If you wanted to use this table, you can do in various ways, using a Map and a Type.

upload_2014-5-20_18-56-34.png


Private mapMCC as Map
mapMCC.Initialize
mapMCC.Put("Afghanistan", "412")
mapMCC.Put("Albania", "276")


Or, if you wanted also ISO code:

Type MCCcode(MCC as String, ISO3166 as String)

Private mapMCC as Map
mapMCC.Initialize

Private Code as MCCcode
Code.Initialize
Code.MCC = "412"
Code.ISO3166 = "AF"
mapMCC.Put("Afghanistan", Code)
...
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
Hi Luca,

Thank you for your anser.

I believe I'm not naming it the right way; maybe that's why I can't find it on google. What I need to associate is the MCC, the country name and the international dialing prefix code; I mean, the number you have to dial in order to call to another country (39 if I need to dial to Italy for example, I use Italy because I think you are italian).

thank you very much!
 
Upvote 0

lymey

Active Member
Licensed User
Longtime User
Hi Luca,

Thank you for your anser.

I believe I'm not naming it the right way; maybe that's why I can't find it on google. What I need to associate is the MCC, the country name and the international dialing prefix code; I mean, the number you have to dial in order to call to another country (39 if I need to dial to Italy for example, I use Italy because I think you are italian).

thank you very much!
Try this site - http://www.eventsworldwide.com/i-codes.htm
You can also download a complete list pdf from the itu here: https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.pdf
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Thank you, Luca!

The first one is what I need; I've seen it searching for the codes but it would be hard to use (copy, paste and formatting 20 pages); I've asked the question hoping to find something more developer-friendly haha. But I will use those if I can't find anything else.

Regards!


You can find out how to read the codes... through code :) and import them into a map.

I leave that part to the experts of html, because at this moment I would fight my head against the wall
 
Upvote 0

leitor79

Active Member
Licensed User
Longtime User
You can find out how to read the codes... through code :) and import them into a map.

I leave that part to the experts of html, because at this moment I would fight my head against the wall

Thanks, Luca!

I'd rather do it manually, I think it's not worthy to develop something for using only once.

Thank you very much!
 
Upvote 0
Top