nyaruka / phonenumbers

GoLang port of Google's libphonenumber library
MIT License
1.25k stars 148 forks source link

feat: add GetNationalPrefix method #164

Closed lawlielt closed 6 months ago

lawlielt commented 7 months ago

Now that we are able to obtain the area code, but there is no method available to retrieve the national prefix. When displaying the area code and number separately to users, we hope to add the national prefix to the area code to facilitate users in obtaining customary telephone information.

rowanseymour commented 7 months ago

What's equivalent in https://github.com/google/libphonenumber ? We're trying to keep this a port of that library.

lawlielt commented 6 months ago

What's equivalent in https://github.com/google/libphonenumber ? We're trying to keep this a port of that library.

the GetNddPrefixForRegion method can do the same. :)