Identification method and identification device of international number attribution and computer readable storage medium

By obtaining the first digit of the international number and looking for the international area code code, combining the national code library and name library, the rapid identification of the international number attributes is achieved, and the problem of inefficient identification under massive data is solved.

CN119906777APending Publication Date: 2025-04-29深圳市恒扬数据股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510008552.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In a massive data environment, the identification of international number attributes is inefficient, and the existing technology relies on manual query or third-party services.

Method used

By obtaining the first digit of the international number, searching for the international area code code according to the first digit, obtaining the country and region code from the national code library, and then obtaining the country name from the national name library, thereby identifying the location of the international number.

Benefits of technology

It realizes the rapid and accurate identification of the home location of international numbers under massive data, improves the recognition efficiency, and avoids the dependence of manual inquiries and third-party services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906777A_ABST
    Figure CN119906777A_ABST
Patent Text Reader

Abstract

The invention discloses an international number attribution identification method and device and a computer readable storage medium. The identification method of the international number attribution comprises the following steps: acquiring a first digit of an international number, and corresponding to a first international area code according to the first digit; and obtaining a first country region code from a preset country code library according to the first international region code code. And obtaining a country name corresponding to the international number from a preset country name library according to the first country region code. According to the identification method, manual query or consultation of third-party service is not needed, and the identification efficiency of the international number attribution is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mobile communications, and in particular to an identification method, an identification device and a computer-readable storage medium for identifying an international number's home location. Background Art

[0002] With the rapid advancement of globalization, international telephone communications are becoming more and more frequent. However, due to the differences in telephone number formats in different countries, users often find it difficult to quickly and accurately identify the region where the incoming number belongs, which not only affects the user experience but may also lead to security risks. Most existing solutions rely on manual queries or consulting third-party services, but this method has low recognition efficiency in the context of massive data. Summary of the invention

[0003] The main purpose of the present invention is to provide an identification method, an identification device and a computer-readable storage medium for an international number location, aiming to solve the technical problem of low efficiency in identifying the location of an international number under massive data.

[0004] In order to achieve the above-mentioned object of the invention, the first aspect of the present invention proposes a method for identifying the location of an international number.

[0005] A method for identifying the home location of an international number comprises the following steps:

[0006] Obtain the first digit of the international number, and correspond the first international area code to the first digit;

[0007] According to the first international area code, obtaining a first country code from a preset country code library;

[0008] According to the first country region code, the country name corresponding to the international number is obtained from a preset country name library.

[0009] In one embodiment, the step of obtaining the first digit of the international number and searching for the first international area code according to the first digit includes:

[0010] Collecting telephone exchange network data worldwide, the telephone exchange network data including international area codes, starting numbers of international numbers and the corresponding locations of the international numbers;

[0011] According to the telephone exchange network data, the international area code and country region mapping library is constructed, and the country region mapping library includes a country code library and a country name library.

[0012] In one embodiment, the step of obtaining the first country code from the country code library according to the first international area code includes:

[0013] When the first digit of the international number is the first digit, the first international area code is encoded as the first four digits of the international number, and the first country area code is obtained according to the first four digits of the international number;

[0014] When the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and the first country area code is obtained according to the first three digits of the international number;

[0015] When the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the first country area code is obtained according to the first two digits of the international number;

[0016] When the first digit of the international number is the fourth digit, the first country region code is directly obtained.

[0017] In one embodiment, when the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and after the step of obtaining the first country area code according to the first three digits of the international number, the step further includes:

[0018] Determining whether the first country code can match the data in the country code library;

[0019] If the first country code cannot match the data in the country code database, obtaining the first two digits of the second country code of the international number;

[0020] The data in the country code library is matched according to the second country and region code of the first two digits of the international number.

[0021] In one embodiment, when the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step of obtaining the first country area code according to the first three digits of the international number includes:

[0022] Determining whether the first international area code is the fifth digit or the sixth digit;

[0023] If the first international area code is the fifth digit, obtaining the second international area code of the first six digits of the international number, and matching the data of the country code library according to the second international area code of the first six digits of the international number;

[0024] If the first international area code is the sixth digit, the second international area code of the first five digits of the international number is obtained, and the data of the country code library is matched according to the second international area code of the first five digits of the international number.

[0025] In one embodiment, when the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step of obtaining the first country area code according to the first three digits of the international number includes:

[0026] Determining whether the first international area code is the fifth digit or the sixth digit;

[0027] If the first international area code is not the fifth digit and the sixth digit, execute the step of encoding the first international area code as the first three digits of the international number when the first digit of the international number is the second digit, and obtaining the first country area code according to the first three digits of the international number.

[0028] In one embodiment, the step of collecting telephone exchange network data worldwide further includes:

[0029] Deduplication processing is performed on the telephone exchange network data;

[0030] The telephone exchange network data after deduplication processing is standardized.

[0031] In one embodiment, before the step of obtaining the first digit of the international number and searching for the first international area code according to the first digit, the step further includes:

[0032] Determine whether the obtained phone number is an international number;

[0033] If the obtained telephone number is not an international number, the return value is empty.

[0034] A second aspect of the present invention provides an international number location identification device, which is executed in the above-mentioned international number location identification method.

[0035] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned method for identifying the location of an international number when executed by a computer processor.

[0036] Beneficial effects:

[0037] The present invention provides a method for identifying the location of an international number, comprising the following steps: collecting telephone exchange network data worldwide, the telephone exchange network data including the international area code, the starting number of the international number and the location corresponding to the international number. Based on the telephone exchange network data, constructing an international area code and country region mapping library, the country region mapping library including a country code library and a country name library. Obtaining the first digit of the international number, and encoding the first international area code corresponding to the first digit. Obtaining the first country region code from the country code library based on the first international area code code. Obtaining the country name corresponding to the international number from the country name library based on the first country region code, thereby directly obtaining the location of the international number without manual query or consulting a third-party service. Even for international numbers under massive data, the location of the international number can be displayed in the first place, thereby improving the efficiency of identifying the location of the international number. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 The present invention is a flowchart of a method for identifying an international number location according to an embodiment of the present invention.

[0039] Figure 2 The present invention is an overall flow chart of a method for identifying an international number location according to an embodiment of the present invention.

[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0043] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0044] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.

[0045] like Figure 1 As shown, in some embodiments, a method for identifying the home location of an international number includes the following steps:

[0046] S100: Obtain the first digit of the international number, and search for the first international area code according to the first digit.

[0047] S200: Obtain a first country code from a preset country code library according to the first international area code.

[0048] S300: Acquire the country name corresponding to the international number from a preset country name library according to the first country region code.

[0049] This identification method can directly obtain the location of the international number without manual query or consultation with third-party services. Even for international numbers under massive data, the location of the international number can be displayed in the first time, improving the efficiency of international number location identification.

[0050] In some embodiments, before the step S100 of obtaining the first digit of the international number and searching for the first international area code according to the first digit, the following steps are further included:

[0051] S110. Collect telephone exchange network data worldwide, where the telephone exchange network data includes international area codes, starting numbers of international numbers, and locations corresponding to the international numbers.

[0052] S120. Construct an international area code and country region mapping library based on telephone exchange network data. The country region mapping library includes a country code library and a country name library.

[0053] As in the above step S110: collecting telephone exchange network data worldwide, the telephone exchange network data includes the international area code, the starting number of the international number and the home location corresponding to the international number.

[0054] It should be noted that this step is based on the global telecommunications network architecture and number allocation system. Each country or region has its own specific international area code, and under this area code, different number segments are subdivided, and this number segment corresponds to a specific location. Through data collection channels, obtain international area codes, international number starting numbers and location information, and integrate this information into a data set. This step provides the original material for the subsequent construction of an international area code and country region mapping library. The telephone exchange network data is the basis for building an accurate and comprehensive mapping library. Secondly, in a massive data environment, comprehensive data collection helps to improve the recognition accuracy and coverage of the system.

[0055] In some embodiments, the step S110 of collecting telephone exchange network data worldwide further includes:

[0056] S111, performing deduplication processing on telephone exchange network data.

[0057] S112, performing standardization processing on the telephone exchange network data after deduplication processing.

[0058] That is, preprocessing the telephone exchange network data. The preprocessing methods include deduplication, formatting, and standardization. This step can ensure the consistency and accuracy of the telephone exchange network data.

[0059] It should be noted that in the process of collecting global telephone exchange network data, duplicate data records will inevitably appear due to the wide range of telephone exchange network data sources and the possibility of cross-references. Deduplication processing usually uses key identifiers of data, such as international area codes, starting numbers of international numbers, etc. as a basis for judgment, and scans and compares data through specific algorithms (such as hash algorithms or database-based duplicate detection mechanisms). When two or more data are found to be completely consistent in key identifiers, the duplicate data records will be deleted and only one unique record will be retained.

[0060] Data deduplication can significantly reduce the amount of data storage and the amount of computation required for subsequent processing. When building a mapping library and identifying the location of a number, if there is a large amount of duplicate data, it will lead to reduced query efficiency, waste of resources, and even identification errors due to the inconsistency of duplicate data. Deduplication ensures the simplicity and accuracy of data, making the subsequent processing more efficient and reliable.

[0061] Data from different sources may differ in format, encoding, etc. Standardization converts and normalizes data according to pre-set unified standards. For example, international area codes can be represented by a specific number of digits and format, and location information may be organized according to the standard names and hierarchical structures of countries and regions. This may involve operations such as extracting, converting, and recombining data fields to ensure that each data record conforms to the standard format required by the system.

[0062] Standardization makes the data consistent and compatible, which facilitates data operations and queries in the subsequent process of building a mapping library and identifying attribution. If the data format is not unified, matching errors or failure to match may occur when associating international area codes with country and region codes. Through standardization, problems caused by differences in data formats are eliminated, the stability of the system and the accuracy of identification results are improved, ensuring that the system can accurately use these data to identify the location of international numbers and enhancing the adaptability of the system in different data environments.

[0063] As in the above step S120: constructing an international area code and country region mapping library based on telephone exchange network data, the country region mapping library includes a country code library and a country name library.

[0064] The constructed country code database is DB1. The country code database can divide the numbers 1 to 9 of the international number into nine regions, use HashTable for data storage, and create 9 objects, where the key is the international area code and the value is the country code.

[0065] Special processing of international area code: international area code + the first few digits of the number as the international area code. For example, the international area codes of Canada and the United States are both 1, and it is impossible to directly determine the country of origin. Combined with the number characteristics of Canada and the United States, the first three digits represent the domestic region, and the two are different. Therefore, 3 digits are added after the international area code to generate a new international area code, such as 1215 for the United States and 1807 for Canada.

[0066] The country name database is constructed using DB2. The country name database supports multiple languages, such as Chinese, English, French, German, Spanish, etc. HashTable is used for data storage, and each language corresponds to a data object. The key is the country code and the value is the country name.

[0067] In the process of international number recognition, after obtaining the international number and performing corresponding processing to obtain the international area code, the corresponding country area code can be quickly queried in the country code database (DB1). This intermediate result provides the necessary conditions for the subsequent determination of the specific country name. For example, in the real-time location recognition or offline batch location recognition scenario, after the system calculates the area code based on the input international telephone number, it can quickly and accurately output the complete location information by querying DB1 and DB2, greatly improving the recognition efficiency and accuracy.

[0068] Specifically, the telephone exchange network data is updated regularly for the country code database and the country name database to ensure the timeliness and accuracy of the number segment information. As time goes by, the number segment allocation in the telephone exchange network data may change. For example, a new area may be assigned a new international area code, or the scope of use of the original area code may be adjusted. Regularly updating the data can reflect these changes in a timely manner and avoid using outdated information to cause incorrect identification of the number's location.

[0069] In some embodiments, before the step S100 of obtaining the first digit of the international number and searching for the first international area code according to the first digit, the following steps are further included:

[0070] S130: Determine whether the acquired telephone number is an international number.

[0071] S140. If the obtained telephone number is not an international number, the return value is empty.

[0072] It should be noted that the system analyzes the structure of the input phone number to check whether it meets the characteristics of an international number. This can determine the number of digits in the phone number, the value range of the digits in a specific position, or a specific character combination. When the phone number is determined not to be an international number, according to the design logic, the system directly returns a null value. This is a simple and effective error prompt mechanism, indicating that the input phone number does not meet the scope of international numbers that the system can handle, and the subsequent location identification process cannot be carried out. By screening out non-international numbers at an early stage, unnecessary and complex processing steps are avoided.

[0073] Specifically, according to the first international area code, the step of obtaining the first country code from a preset country code library S200 includes:

[0074] S210: When the first digit of the international number is the first digit, the first international area code is encoded as the first four digits of the international number, and the first country area code is obtained according to the first four digits of the international number.

[0075] S220: When the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and the first country area code is obtained according to the first three digits of the international number.

[0076] S230: When the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the first country area code is obtained according to the first two digits of the international number.

[0077] S240: When the first digit of the international number is the fourth digit, directly obtain the first country region code.

[0078] It should be noted that the first digit is 1, the second digit includes one of 2, 3, 4, 5, 8, and 9, the third digit is 6, and the fourth digit is 7. The first digit of the international number can be represented by N1. The first international area code can be represented by N2. The first country code can be represented by G1.

[0079] Specifically, when the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and the step S220 of obtaining the first country area code according to the first three digits of the international number further includes:

[0080] S221. Determine whether the first country or region code can match data in the country code library.

[0081] S222: If the first country code cannot match the data in the country code database, obtain the second country code of the first two digits of the international number.

[0082] S223. Match data in the country code database according to the second country and region code of the first two digits of the international number.

[0083] It should be noted that the second country code can be represented by G2.

[0084] Specifically, when the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step S230 of obtaining the first country area code according to the first three digits of the international number includes:

[0085] S231. Determine whether the first international area code is the fifth digit or the sixth digit.

[0086] S232. If the first international area code is the fifth digit, obtain the second international area code of the first six digits of the international number, and match the data of the country code library according to the second international area code of the first six digits of the international number.

[0087] S233. If the first international area code is the sixth digit, obtain the second international area code of the first five digits of the international number of the third international area code, and match the data of the country code library according to the second international area code of the first five digits of the international number.

[0088] It should be noted that the fifth digit may be 61. The sixth digit may be 64. The second international area code may be represented by N3.

[0089] Specifically, when the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step S230 of obtaining the first country area code according to the first three digits of the international number includes:

[0090] S234. Determine whether the first international area code is the fifth digit or the sixth digit.

[0091] S235. If the first international area code is not the fifth digit and the sixth digit, executing the step of encoding the first international area code as the first three digits of the international number when the first digit of the international number is the second digit, and obtaining the first country area code according to the first three digits of the international number.

[0092] like Figure 2 As shown, the first digit of the international number is N1. The large region to which it belongs is calculated first, and then the country and region code is calculated.

[0093] When N1=1, the first four digits of the international number are obtained as the first international area code N2, and the country code database (DB1) is checked to obtain the first country area code G1.

[0094] When N1=2, the first three digits of the international number are obtained as the first international area code N2, and the country code database (DB1) is checked to obtain the first country code G1. If the first country code G1 cannot match the digits in the country code database, the first two digits of the international number are taken as the second international area code N3 to obtain the second country code G2.

[0095] When N1=3, the process of obtaining the first country / region code G1 or the second country / region code G2 is the same as when N1=2.

[0096] When N1=4, the process of obtaining the first country / region code G1 or the second country / region code G2 is the same as when N1=2.

[0097] When N1=5, the process of obtaining the first country / region code G1 or the second country / region code G2 is the same as when N1=2.

[0098] When N1=6, the process of obtaining the country code is as follows:

[0099] Get the first two digits of the international number as N2:

[0100] When N2=61, the first six digits of the international number are taken as the second international area code N3, and the country code database (DB1) is checked to obtain the first country area code G1.

[0101] When N2=64, the first five digits of the international number are taken as the second international area code N3, and the country code database (DB1) is checked to obtain the first international area code G1.

[0102] Except for the cases of N2=61 and N2=64, the process of obtaining the country and region code is the same as that when N1=2.

[0103] When N1=7, N1 is used as the first international area code, and the country code database (DB1) is checked to obtain the first country area code G1.

[0104] When N1=8, the process of the first country / region code G1 or the second country / region code G2 is the same as when N1=2.

[0105] When N1=9, the process of the first country / region code G1 or the second country / region code G2 is the same as when N1=2.

[0106] According to the first country code G1, the second country code G2 and the language type, the country name database (DB2) is searched to obtain the country name. The final result returned is the country code and the country name.

[0107] In other embodiments, an international number location identification device is implemented in the above-mentioned international number location identification method.

[0108] After entering the international number, the identification device quickly identifies the number's location by calling the SDK. The identification device supports multiple real-time query interfaces, including API interfaces and Web interfaces, which can meet the needs of different terminals and platforms.

[0109] Under massive data, the recognition device is combined with Flink and Spark streaming computing engines, and the SDK is encapsulated as a UDF function. In real-time computing scenarios, the calculation can be completed efficiently and quickly, and support docking message queues, data lake components, etc. The recognition device can also be combined with offline computing engines such as Flink, Spark, and Hive, and the SDK is encapsulated as a UDF function. It can perform large-scale data calculations and support docking message queues, data lake components, Hive, Doris, etc.

[0110] The identification method has a stateless property and adopts a cloud computing architecture to deploy the number location identification device, ensuring that the identification device has high concurrent processing capability and scalability when processing massive data.

[0111] Distributed computing technology is combined with computing engines such as Flink and Spark to accelerate the query and location identification process of number segment data, ensuring fast response even with large amounts of data.

[0112] In some embodiments, a computer-readable storage medium stores a computer program, which implements the above-mentioned method for identifying the home location of an international number when executed by a computer processor.

[0113] The computer-readable storage medium in this embodiment can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In this embodiment, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0114] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for identifying the location of an international number, characterized in that: The following steps are involved: Obtain the first digit of the international number, and search for the first international area code according to the first digit; According to the first international area code, obtaining a first country code from a preset country code library; According to the first country region code, the country name corresponding to the international number is obtained from a preset country name library.

2. The method for identifying the location of an international number according to claim 1, characterized in that: The step of obtaining the first digit of the international number and searching for the first international area code according to the first digit includes: Collecting telephone exchange network data worldwide, the telephone exchange network data including international area codes, starting numbers of international numbers and the corresponding locations of the international numbers; According to the telephone exchange network data, the international area code and country region mapping library is constructed, and the country region mapping library includes a country code library and a country name library.

3. The method for identifying the location of an international number according to claim 1, characterized in that: The step of acquiring the first country code from the country code library according to the first international area code code comprises: When the first digit of the international number is the first digit, the first international area code is encoded as the first four digits of the international number, and the first country area code is obtained according to the first four digits of the international number; When the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and the first country area code is obtained according to the first three digits of the international number; When the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the first country area code is obtained according to the first two digits of the international number; When the first digit of the international number is the fourth digit, the first country region code is directly obtained.

4. The method for identifying the location of an international number according to claim 3, characterized in that: When the first digit of the international number is the second digit, the first international area code is encoded as the first three digits of the international number, and the step of obtaining the first country area code according to the first three digits of the international number also includes: Determining whether the first country code can match the data in the country code library; If the first country and region code cannot match the data in the country code database, obtaining the first two digits of the second country and region code of the international number; The data in the country code library is matched according to the second country and region code of the first two digits of the international number.

5. The method for identifying the location of an international number according to claim 3, characterized in that: When the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step of obtaining the first country area code according to the first three digits of the international number includes: Determining whether the first international area code is the fifth digit or the sixth digit; If the first international area code is the fifth digit, obtaining the second international area code of the first six digits of the international number, and matching the data of the country code library according to the second international area code of the first six digits of the international number; If the first international area code is the sixth digit, the second international area code of the first five digits of the international number is obtained, and the data of the country code library is matched according to the second international area code of the first five digits of the international number.

6. The method for identifying the location of an international number according to claim 3, characterized in that: When the first digit of the international number is the third digit, the first international area code is encoded as the first two digits of the international number, and the step of obtaining the first country area code according to the first three digits of the international number includes: Determining whether the first international area code is the fifth digit or the sixth digit; If the first international area code is not the fifth digit and the sixth digit, execute the step of encoding the first international area code as the first three digits of the international number when the first digit of the international number is the second digit, and obtaining the first country area code according to the first three digits of the international number.

7. The method for identifying the location of an international number according to claim 2, characterized in that: The step of collecting telephone exchange network data worldwide also includes: Deduplication processing is performed on the telephone exchange network data; The telephone exchange network data after deduplication processing is standardized.

8. The method for identifying the location of an international number according to claim 1, characterized in that: Before the step of obtaining the first digit of the international number and searching for the first international area code according to the first digit, the step also includes: Determine whether the obtained phone number is an international number; If the obtained telephone number is not an international number, the return value is empty.

9. A device for identifying the location of an international number, characterized in that: The method for identifying the location of an international number as described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer processor, the method for identifying the international number home location according to any one of claims 1 to 8 is implemented.