Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List MNO of country #54

Closed
moas opened this issue Apr 29, 2015 · 1 comment
Closed

List MNO of country #54

moas opened this issue Apr 29, 2015 · 1 comment
Labels

Comments

@moas
Copy link

moas commented Apr 29, 2015

Hello!

How to get a mobile network operator's list of countries ? I want to get the list just using as parameters the alpha2 (fr) code of country or international code (+33).
Sorry for my english, I'm french man :)

Thx

@daviddrysdale
Copy link
Owner

I don't think there's a way to do that with the API (although you could ask at the upstream project to confirm).

If I understand what you're after correctly, some of the information you're after is in the metadata:

% egrep -h "^33" resources/carrier/*/* | awk -F\| '{print $2}' | sort -u
Bouygues
Orange France
SFR
% egrep -h "^41" resources/carrier/*/* | awk -F\| '{print $2}' | sort -u
Orange
Sunrise
Swisscom
Tele4u

However, it's not a particularly reliable mapping -- not all countries have number ranges by network operator.

% egrep -h "^44" resources/carrier/*/* 
%

So I'm not sure that even manually grepping the metadata will get what you want, I'm afraid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants