Re:Google's library for dealing with phone numbers (Java/Jav...
by ceejayoz on Wednesday January 05, 2011 @08:55AM
(#2070937)
That always struck me as an odd omission.
[ Parent
| on HN ]
Re:Google's library for dealing with phone numbers (Java/Jav...
by kondro on Wednesday January 05, 2011 @09:15AM
(#2070983)
Well, when you think about the amount of data collection required to reach this level of coverage I don't blame a smallish start-up like Twilio for not having a library.
After all, if you want to test to see if a number is valid, try and call it.
Re:Google's library for dealing with phone numbers (Java/Jav...
by chronomex on Wednesday January 05, 2011 @01:23PM
(#2071824)
It's a daunting amount to approach, but it rarely takes more than an hour or two per country. I've been doing something similar for my current project, because I want to take phone numbers in national form and show them in both international and national forms.
Re:Google's library for dealing with phone numbers (Java/Jav...
by mickeyben on Wednesday January 05, 2011 @01:48PM
(#2071949)
So if you need to handle the 228 countries this lib handle, you only need 228 to 556 hours of work ...
Re:Google's library for dealing with phone numbers (Java/Jav...
by shrikant on Thursday January 06, 2011 @01:07AM
(#2074273)
<nitpick>456</nitpick>
Re:Google's library for dealing with phone numbers (Java/Jav...
by chronomex on Wednesday January 05, 2011 @02:20PM
(#2072079)
Well, given that I'm taking longer than that to collect my data for each country, it seems like a bargain!
Re:Google's library for dealing with phone numbers (Java/Jav...
by g1smd on Thursday January 06, 2011 @04:59PM
(#2077436)
This stuff is non-trivial. I'll guess that I have spent in excess of 50 hours working on just the UK data in the last couple of months.
The problem is this. Although there are hundreds of websites with UK area code lists, almost all of them are either incorrect, out of date, full of typos, or are generally unreliable. Even lists from "official" sources cannot be relied on with any degree of certainty. The obvious errors are easy to find and correct. It took a long time to find out there were many non-obvious errors and there are likely more errors still to be uncovered.