使用libphonenumber从电话号码中提取运营商

时间:2018-02-05 14:54:16

标签: c# parsing phone-number libphonenumber carrier

我正在使用Google的libphonenumber,我想知道从德国手机号码获取运营商前缀的正确方法是什么。当我使用libphone号码的在线演示时,有一个名为" PhoneNumberToCarrierMapper"在我看来,它已经映射了#34; 0176"和" 01577"到正确的载体:

https://libphonenumber.appspot.com/phonenumberparser?number=%2B4915776510000 http://libphonenumber.appspot.com/phonenumberparser?number=%2B4917665100000

所以我认为必须有一种方法可以从提供的信息中提取信息" +49 1577 6510000" " 49的 176 65100000"输入。有人知道怎么做吗?

1 个答案:

答案 0 :(得分:0)

鉴于您可以随身携带您的号码,在换到其他运营商时,您无法通过电话号码真正识别运营商。 这只是一个最好的猜测。