我正在使用 Google 的 libphonenumber,我想知道从德国手机号码获取运营商前缀的正确方法是什么。当我使用 libphone 号码的在线演示时,有一个名为“PhoneNumberToCarrierMapper”的属性,我认为它已经将“0176”和“01577”映射到正确的运营商:
https://libphonenumber.appspot.com/phonenumberparser?number=%2B4915776510000 http://libphonenumber.appspot.com/phonenumberparser?number=%2B4917665100000
所以我认为必须有一种方法可以从提供的“+49 1577 6510000”“+49 176 65100000”输入中提取信息。有人知道怎么做这个吗?