getNG function
Phone Number JSON data for NG
Implementation
Map<String, Object?> getNG() {
return {
"generalDesc": {
"nationalNumberPattern": "38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",
"possibleLength": [8, 10, 11, 12, 13, 14],
"possibleLengthLocalOnly": [6, 7]
},
"fixedLine": {
"nationalNumberPattern":
"(?:20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])|38)\\d{6}",
"exampleNumber": "2033123456",
"possibleLength": [8, 10],
"possibleLengthLocalOnly": [6, 7]
},
"mobile": {
"nationalNumberPattern":
"(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}",
"exampleNumber": "8021234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern": "800\\d{7,11}",
"exampleNumber": "80017591759",
"possibleLength": [10, 11, 12, 13, 14],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"id": "NG",
"countryCode": 234,
"internationalPrefix": "009",
"nationalPrefix": "0",
"nationalPrefixForParsing": "0",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d{2})(\\d{3})(\\d{2,3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["3"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[7-9]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["20[129]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{2})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{4})(\\d{4,5})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[78]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{5})(\\d{5,6})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[78]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d{2})(\\d{3})(\\d{2,3})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["3"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{3,4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[7-9]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["20[129]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{2})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{4})(\\d{4,5})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[78]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{5})(\\d{5,6})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[78]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
}
],
"pager": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mainCountryForCode": false,
"noInternationalDialling": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"uan": {
"nationalNumberPattern": "700\\d{7,11}",
"exampleNumber": "7001234567",
"possibleLength": [10, 11, 12, 13, 14],
"possibleLengthLocalOnly": [-1]
},
"emergency": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voicemail": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"shortCode": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"standardRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"carrierSpecific": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mobileNumberPortableRegion": true,
"smsServices": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
}
};
}