How can I determine the communication provider that the mobile phone number belongs to, for example, one of my applications, only sign a contract with Jiangsu Telecom, that is, users who can only use the mobile phone number of Jiangsu Telecom can use our service, however, since users in other regions may also register, I need to determine the location of the mobile phone, without using similar interfaces such as ip138, how can I determine the province to which the mobile phone number belongs and the contact type? Thank you for solving the problem.
Reply to discussion (solution)
Wait for the answer!
Php itself does not provide such a function, so it is necessary to call the interface.
Php itself does not provide such a function, so it is necessary to call the interface.
Whether it is like this: match a mobile phone number through the interface provided by Jiangsu Telecom to me. it is reasonable to say that the interface returns to my data that contains whether the mobile phone number is the user of the contact person, then I can judge based on this. This is the case.
However, if I have a total of 50 or 60 interfaces (three interfaces in each province, China Mobile, China Unicom, and China Telecom ), to determine which communication provider the number belongs to, I have to repeat it one by one?
Why !!!
Yes, it should be.
You can directly ask Jiangsu Telecom to provide a database of their mobile phone number segments in Jiangsu.
I found this kind of stuff online last night: There are a total of 0.21 million records in the country's mobile phone number segment. matching with this is almost enough to meet the demand.
Websites that provide mobile phone numbers in the home region are very good. just find one and grab it.
Comparison of common number segments:
GSM: China Unicom or China Mobile 2G segment (131, 132, 134, 135, 136, 137, 138, 139, 151, 156, 158, 159)
CDMA: China Telecom 2G segment supported (133, 153, 189)
GSM/WCDMA: China Unicom or China Mobile 2G segment is supported, and China Unicom 3G segment (131, 132, 134, 135, 136, 137, 138, 139, 151, 156, 158, 159)
GSM/TD-SCMDA: express support for China Unicom or China Mobile 2G segment, china Mobile 3G segment (131, 132, 134, 135, 136, 137, 138, 139, 151, 156, 158, 159, 186)
CDMA/CDMA 2000: China Telecom 2G segment and China Telecom 3G segment (133, 153, 189)
You can directly ask Jiangsu Telecom to provide a database of their mobile phone number segments in Jiangsu.
+ 1
This is the most practical. whoever you sign the contract will ask them to provide identification materials
Http://api.showji.com/locating //