Parses a phone number and returns whether it is valid, its E.164 / national / international / RFC3966 formats, the country calling code, region, and line type (mobile, fixed line, VoIP, and so on).
Pass an international number (with + and country code), or set region (2-letter ISO code) for a number written in national format. Validity means the number is well-formed and within its country's numbering plan, not that the line is assigned, active, or reachable (that needs a separate carrier lookup). Computed locally from current libphonenumber metadata.
The phone number. Include + and country code, or set 'region' for a national-format number.
Optional default region (2-letter ISO code, e.g. US, GB) for numbers without a country code.