Aug 24, 2016: libphonenumber-7.6.0
Code changes:
Refactored metadata loading and closed all streams after loading.
Made isNumberGeographical public, and changed the geocoder to use this when checking whether to give a detailed answer or country-level only.
Build changes:
Use protobuf-javanano 3.0.0-alpha-7 from Maven Central.
Metadata changes:
Updated phone metadata for region code(s): EH, ET, JM, MA, SK, SN, SY, ZM
Updated short number metadata for region code(s): ZA
Updated geocoding data for country calling code(s): 212 (en)
New carrier data for country calling code(s): 86 (zh, zh_Hant), 852 (zh, zh_Hant), 963 (en)
Updated carrier data for country calling code(s): 86 (en), 212 (en), 251 (en), 421 (en)
Deleted unsupported SingleFilePhoneNumberMetadataProto
Per http://www.viestintavirasto.fi/attachments/maaraykset/Regulation_32.pdf
(official numbering plan), in Finland (+358):
- 020*: Nationwide service and subscriber numbers
- 029*: Nationwide subscriber numbers
- 030*: Nationwide service and subscriber numbers
- 039*: Nationwide subscriber numbers
- 060*: Nationwide service numbers
- 0800*: Nationwide toll-free service numbers
"Nationwide" numbers are non-geographic as per Chapter 2 Section 6.
The local subscriber numbers starting with 02,03,06,08,09 have 1..8 as
their third number.
However, libphonenumber assigns 02*, 03*, 06* and 08* to specific
locations in their entirety, causing e.g. some nationwide service numbers
to be incorrectly geocoded. 09* is also geocoded in its entirety, even
though 090* and 099* are reserved and may get later assigned to
nationwide numbers like in the other number series.
Instead of using catch-all geocoding for 02,03,06,08,09, add the actually
local subscriber telephone number allocations 0X[1-8] separately.
The geocoding file for English had both Quebec and Québec for the canadian
state and city. "Québec" is the French spelling, while "Quebec" is the correct
English spelling.