Phonenumbers don't work with italian numbers
lud50 opened this issue · comments
lud50 commented
loc = phonenumbers.geocoder.description_for_number(cnum, "IT")
this formula return a empty string vwn is used with an italian number
David Drysdale commented
Works for me:
Python 3.11.7 (main, Dec 9 2023, 06:23:53) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import phonenumbers
>>> phonenumbers.__version__
'8.13.38'
>>> cnum = phonenumbers.parse("(+39) 06.3691.8899", "IT")
>>> import phonenumbers.geocoder
>>> phonenumbers.geocoder.description_for_number(cnum, "IT")
'Rome'
Please provide an example of failure, along with a link to the upstream Java code being successful for the same inputs.
lud50 commented
Yes, but this is a fixed number not a mobile number and in italy the prefix
of fixed number refers a large zone.
Il lun 10 giu 2024, 18:36 David Drysdale ***@***.***> ha
scritto:
… Works for me:
Python 3.11.7 (main, Dec 9 2023, 06:23:53) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import phonenumbers
>>> phonenumbers.__version__
'8.13.38'
>>> cnum = phonenumbers.parse("(+39) 06.3691.8899", "IT")
>>> import phonenumbers.geocoder
>>> phonenumbers.geocoder.description_for_number(cnum, "IT")
'Rome'
Please provide an example of failure, along with a link to the upstream
Java code being successful for the same inputs.
—
Reply to this email directly, view it on GitHub
<#296 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJCKGNUUBYNDWQZRX54XCD3ZGXIXVAVCNFSM6AAAAABJCED5P6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYHAZTINJRGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
David Drysdale commented
This sounds like a metadata issue, which should be dealt with upstream.