uinames
uinames copied to clipboard
Phone numbers in US format
The uinames.com site and extended usage API returns mock phone numbers in the US format (implied country code "+1"). This would be incorrect for any other country. I suggest one of two possible solutions:
- Return phone numbers formatted appropriately for each country.
- Return phone numbers as separate components (country code, area code, phone number) and leave the formatting to the user.
In either case, names.json would need to be extended to include the country code and plausible area codes for each region.
consider using https://github.com/googlei18n/libphonenumber