getPH function
Phone Number JSON data for PH
Implementation
Map<String, Object?> getPH() {
return {
"generalDesc": {
"nationalNumberPattern":
"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",
"possibleLength": [6, 8, 9, 10, 11, 12, 13],
"possibleLengthLocalOnly": [4, 5, 7]
},
"fixedLine": {
"nationalNumberPattern":
"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",
"exampleNumber": "232345678",
"possibleLength": [6, 8, 9, 10],
"possibleLengthLocalOnly": [4, 5, 7]
},
"mobile": {
"nationalNumberPattern":
"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",
"exampleNumber": "9051234567",
"possibleLength": [10],
"possibleLengthLocalOnly": [-1]
},
"tollFree": {
"nationalNumberPattern": "1800\\d{7,9}",
"exampleNumber": "180012345678",
"possibleLength": [11, 12, 13],
"possibleLengthLocalOnly": [-1]
},
"premiumRate": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"sharedCost": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"personalNumber": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"voip": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"id": "PH",
"countryCode": 63,
"internationalPrefix": "00",
"nationalPrefix": "0",
"nationalPrefixForParsing": "0",
"sameMobileAndFixedLinePattern": false,
"numberFormat": [
{
"pattern": "(\\d)(\\d{5})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{4,6})",
"format": "\$1 \$2",
"leadingDigitsPattern": [
"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2",
"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"
],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{5})(\\d{4})",
"format": "\$1 \$2",
"leadingDigitsPattern": [
"346|4(?:27|9[35])|883",
"3469|4(?:279|9(?:30|56))|8834"
],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[3-7]|8[2-8]"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[89]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3 \$4",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"intlNumberFormat": [
{
"pattern": "(\\d)(\\d{5})",
"format": "\$1 \$2",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{4,6})",
"format": "\$1 \$2",
"leadingDigitsPattern": [
"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2",
"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"
],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{5})(\\d{4})",
"format": "\$1 \$2",
"leadingDigitsPattern": [
"346|4(?:27|9[35])|883",
"3469|4(?:279|9(?:30|56))|8834"
],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d)(\\d{4})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["2"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[3-7]|8[2-8]"],
"nationalPrefixFormattingRule": "(0\$1)",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{3})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["[89]"],
"nationalPrefixFormattingRule": "0\$1",
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
},
{
"pattern": "(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})",
"format": "\$1 \$2 \$3 \$4",
"leadingDigitsPattern": ["1"],
"nationalPrefixOptionalWhenFormatting": false
}
],
"pager": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"mainCountryForCode": false,
"noInternationalDialling": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
},
"uan": {
"possibleLength": [-1],
"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": false,
"smsServices": {
"possibleLength": [-1],
"possibleLengthLocalOnly": [-1]
}
};
}