From b72ff82cac3120c2f294a7909561614fff85ed3a Mon Sep 17 00:00:00 2001 From: "lararennie@google.com" Date: Wed, 9 Jan 2013 13:00:15 +0000 Subject: JAVA/CPP/JS: libphonenumber v5.3, offlinegeocode v2.4 git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/resources@550 ee073f10-1060-11df-b6a4-87a95322a99c --- PhoneNumberMetaData.xml | 144 ++++++++++++++++++++------------------ PhoneNumberMetaDataForTesting.xml | 16 ++++- geocoding/en/27.txt | 3 +- geocoding/en/32.txt | 57 +++++++++++++++ geocoding/en/86.txt | 1 - geocoding/fr/32.txt | 57 +++++++++++++++ geocoding/nl/32.txt | 57 +++++++++++++++ geocoding/zh/86.txt | 1 - 8 files changed, 263 insertions(+), 73 deletions(-) create mode 100644 geocoding/en/32.txt create mode 100644 geocoding/fr/32.txt create mode 100644 geocoding/nl/32.txt diff --git a/PhoneNumberMetaData.xml b/PhoneNumberMetaData.xml index 02d67e4..a931ec8 100644 --- a/PhoneNumberMetaData.xml +++ b/PhoneNumberMetaData.xml @@ -2333,11 +2333,11 @@ [49][23]| 5\d| 6[013-57-9]| - 7[18] + 71 )\d{6}| 8(?: 0[1-9]| - [1-69]\d + [1-79]\d )\d{5} \d{8} @@ -2368,11 +2368,14 @@ \d{8} 90123456 - - 87\d{6} + + + 78\d{6} \d{8} - 87123456 - + 78123456 + 1(?: @@ -3390,10 +3393,12 @@ 2401234 + 7(?: [1-35]\d{6}| - [46][0-7]\d{5} + [46][0-7]\d{5}| + 7[01]\d{5} ) \d{8} @@ -4216,8 +4221,7 @@ --> (?: - 22| - 32| + [23]2| 41| 58 )\d{7}| @@ -4333,7 +4337,7 @@ - + @@ -4405,6 +4409,7 @@ 1| 2[37]| 3[12]| + 51| 7[13-79]| 9[15] )| @@ -4441,8 +4446,8 @@ 5(?: 3[03-9]| 4[36]| - 5| - 6[1-6]| + 5[02-9]| + 6[1-46]| 7[028]| 80| 9[2-46-9] @@ -4510,7 +4515,8 @@ + 28, 2011. 0551 increased to 8 digits and 0565 was cancelled on Dec 8, 2012. 0475 is + the prefix for Tongliao but is not in the ITU data. --> 21\d{8,10}| (?: @@ -4528,6 +4534,7 @@ 1\d| 2[37]| 3[12]| + 51| 7[13-79]| 9[15] )| @@ -4560,8 +4567,8 @@ 5(?: 3[03-9]| 4[36]| - 5\d| - 6[1-6]| + 5[02-9]| + 6[1-46]| 7[028]| 80| 9[2-46-9] @@ -4720,10 +4727,11 @@ 12345678 + 3(?: 0[0-24]| - 1[0-8]| + 1\d| 2[01] )\d{7} @@ -6409,13 +6417,13 @@ - 6(?: 0[0-6]| [14-7]\d| - 2[236-9]| + 2[2-46-9]| 3[03458]| 8[01]| 99 @@ -13885,11 +13893,13 @@ \d{7,8} 22345678 + (?: 5(?: - 0[0-25-9]| + 0[0-35-9]| 11| 5\d )| @@ -15293,13 +15303,13 @@ - 6(?: 0[0-6]| [14-7]\d| - 2[236-9]| + 2[2-46-9]| 3[03458]| 8[01]| 99 @@ -15900,7 +15910,7 @@ \d{8} - + (?: 2(?: @@ -15913,25 +15923,20 @@ [3-689]\d ) )| - 442\d + 44[239]\d )\d{4} 20212345 - + + (?: - 6(?: - [3569]\d - )| - 7(?: - [08][1-9]| - [3579][0-4]| - 4[014-7]| - [16]\d - ) - )\d{5} + 6[3569]| + 7\d + )\d{6} 65012345 @@ -17683,7 +17688,7 @@ @@ -17766,7 +17771,7 @@ )| 8(?: 0[2-9]| - 1[0-35-9] + 1\d )\d )\d{6} @@ -19300,7 +19305,7 @@ 39| 5[013]| 6[0469]| - 7[0289]| + 7[02389]| 8[08] $1 $2 $3 @@ -19349,7 +19354,7 @@ (?: 5[013]| 6[069]| - 7[289]| + 7[2389]| 88 )\d{7} @@ -21852,15 +21857,14 @@ 112345678 - + 9(?: 22| - 3[1-356]| + [35][0-8]| 4\d| - 5[024-7]| - 6[26-9]| + 6[024-9]| 88| 9[0-489] )\d{6} @@ -24759,63 +24763,62 @@ 860 $1 $2 $3 - + - [1-57]| + [1-79]| 8(?: - [0-57-9]| + [0-47]| 6[1-9] ) $1 $2 $3 - - 7| - 8[1-5789] - + 8[1-4] $1 $2 - - 7| - 8[1-5789] - + 8[1-4] $1 $2 $3 - [1-5]\d{8}| - (?: - 7\d{4,8}| - 8[1-5789]\d{3,7} - )| - 8[06]\d{7} + [1-79]\d{8}| + 8(?: + [067]\d{7}| + [1-4]\d{3,7} + ) \d{5,9} + (?: 1[0-8]| - 2[1-478]| + 2[0-378]| 3[1-69]| 4\d| 5[1346-8] )\d{7} - \d{8,9} + \d{9} 101234567 + (?: - 7[1-4689]| - 8[1-5789] - )\d{3,7} + 6[0-5]| + 7[0-46-9] + )\d{7}| + 8[1-4]\d{3,7} - \d{5,9} 711234567 @@ -24824,7 +24827,10 @@ 801234567 - 86[2-9]\d{6} + + 86[2-9]\d{6}| + 90\d{7} + \d{9} 862345678 @@ -24885,11 +24891,11 @@ + Internet. Adding prefix 960 based on information received from MTN Zambia. --> 9(?: 5[05]| - 6[1-9]| + 6\d| 7[13-9] )\d{6} diff --git a/PhoneNumberMetaDataForTesting.xml b/PhoneNumberMetaDataForTesting.xml index 87c9d00..3029e6f 100644 --- a/PhoneNumberMetaDataForTesting.xml +++ b/PhoneNumberMetaDataForTesting.xml @@ -25,6 +25,20 @@ + + + + + [1-9]\d{8} + \d{9} + + + 600\d{6} + 600123456 + + + @@ -43,7 +57,7 @@ 222123456 - + 9[1-3]\d{7} 923123456 diff --git a/geocoding/en/27.txt b/geocoding/en/27.txt index 3825fbc..65385b9 100644 --- a/geocoding/en/27.txt +++ b/geocoding/en/27.txt @@ -14,6 +14,7 @@ # Generated from: # Internal statistical data (2011-08-05). +# 2720 prefix from the South African ITU document 2012-12-05. 2710|Johannesburg 2711|Johannesburg @@ -24,10 +25,10 @@ 2716|Vereeniging 2717|Ermelo 2718|Klerksdorp +2720|Fraserberg/Leeugamka/Merweville 2721|Cape Town 2722|Malmesbury 2723|Worcester -2724|Cape Town 2727|Vredendal 2728|Hermanus 2731|Durban diff --git a/geocoding/en/32.txt b/geocoding/en/32.txt new file mode 100644 index 0000000..042ed68 --- /dev/null +++ b/geocoding/en/32.txt @@ -0,0 +1,57 @@ +# Copyright (C) 2013 The Libphonenumber Authors + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Data from http://detelefoon.be/zonenummers/telefoonzones-op-zonenummer, +# translated into English by wikipedia. + +3210|Wavre +3211|Hasselt +3212|Tongeren +3213|Diest +3214|Herentals +3215|Mechelen +3216|Leuven +3219|Waremme +322|Brussels +323|Antwerp +324|Liège +3250|Bruges +3251|Roeselare +3252|Dendermonde +3253|Aalst +3254|Ninove +3255|Ronse +3256|Kortrijk +3257|Ypres +3258|Veurne +3259|Ostend +3260|Chimay +3261|Libramont-Chevigny +3263|Arlon +3264|La Louvière +3265|Mons +3267|Nivelles +3268|Ath +3269|Tournai +3271|Charleroi +3280|Stavelot +3281|Namur +3282|Dinant +3283|Ciney +3284|Marche-en-Famenne +3285|Huy +3286|Durbuy +3287|Verviers +3289|Genk +329|Ghent diff --git a/geocoding/en/86.txt b/geocoding/en/86.txt index bce1603..0903c50 100644 --- a/geocoding/en/86.txt +++ b/geocoding/en/86.txt @@ -149,7 +149,6 @@ 86562|Tongling, Anhui 86563|Xuancheng, Anhui 86564|LiuAn, Anhui -86565|Chaohu, Anhui 86566|Chizhou, Anhui 86570|Quzhou, Zhejiang 86571|Hangzhou, Zhejiang diff --git a/geocoding/fr/32.txt b/geocoding/fr/32.txt new file mode 100644 index 0000000..b1e2108 --- /dev/null +++ b/geocoding/fr/32.txt @@ -0,0 +1,57 @@ +# Copyright (C) 2013 The Libphonenumber Authors + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Data from http://detelefoon.be/zonenummers/telefoonzones-op-zonenummer, +# translated into French by wikipedia. + +3210|Wavre +3211|Hasselt +3212|Tongres +3213|Diest +3214|Herentals +3215|Malines +3216|Louvain +3219|Waremme +322|Bruxelles +323|Anvers +324|Liège +3250|Bruges +3251|Roulers +3252|Termonde +3253|Alost +3254|Ninove +3255|Renaix +3256|Courtrai +3257|Ypres +3258|Furnes +3259|Ostende +3260|Chimay +3261|Libramont-Chevigny +3263|Arlon +3264|La Louvière +3265|Mons +3267|Nivelles +3268|Ath +3269|Tournai +3271|Charleroi +3280|Stavelot +3281|Namur +3282|Dinant +3283|Ciney +3284|Marche-en-Famenne +3285|Huy +3286|Durbuy +3287|Verviers +3289|Genk +329|Gand diff --git a/geocoding/nl/32.txt b/geocoding/nl/32.txt new file mode 100644 index 0000000..96f5ad5 --- /dev/null +++ b/geocoding/nl/32.txt @@ -0,0 +1,57 @@ +# Copyright (C) 2013 The Libphonenumber Authors + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Data from http://detelefoon.be/zonenummers/telefoonzones-op-zonenummer with +# the accent re-added in La Louvière and spelling fixed for Charleroi. + +3210|Waver +3211|Hasselt +3212|Tongeren +3213|Diest +3214|Herentals +3215|Mechelen +3216|Leuven +3219|Borgworm +322|Brussel +323|Antwerpen +324|Luik +3250|Brugge +3251|Roeselare +3252|Dendermonde +3253|Aalst +3254|Ninove +3255|Ronse +3256|Kortrijk +3257|Ieper +3258|Veurne +3259|Oostende +3260|Chimay +3261|Libramont-Chevigny +3263|Aarlen +3264|La Louvière +3265|Bergen +3267|Nijvel +3268|Aat +3269|Doornik +3271|Charleroi +3280|Stavelot +3281|Namen +3282|Dinant +3283|Ciney +3284|Marche-en-Famenne +3285|Hoei +3286|Durbuy +3287|Verviers +3289|Genk +329|Gent diff --git a/geocoding/zh/86.txt b/geocoding/zh/86.txt index 4cf450a..1933e38 100644 --- a/geocoding/zh/86.txt +++ b/geocoding/zh/86.txt @@ -148,7 +148,6 @@ 86562|安徽省铜陵市 86563|安徽省宣城市 86564|安徽省六安市 -86565|安徽省巢湖市 86566|安徽省池州市 86570|浙江省衢州市 86571|浙江省杭州市 -- cgit v1.2.3