Method, apparatus, storage medium and device for positioning correction

By integrating multiple IP address location databases and LBS geographic location information, the problem of inconsistent IP address location database data in existing technologies has been solved, achieving higher positioning accuracy and coverage.

CN115696571BActive Publication Date: 2025-12-16GUANGZHOU YURUI INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211446287.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-18
Publication Date
2025-12-16
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

The data sources, processing methods, and accuracy of existing IP address location databases vary, making it impossible to determine an accurate IP address location database at the prefecture-level city level and thus impossible to obtain accurate IP address location.

Method used

By integrating data from multiple IP address location databases, using a highly accurate third-party IP address location database to correct its own IP address location database, and combining LBS geographic location information for error correction, the accuracy of location is improved.

Benefits of technology

It improves the accuracy and coverage of IP address location, ensuring that more accurate physical address information is obtained from the dynamically updated IP address location database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696571B_ABST
    Figure CN115696571B_ABST
Patent Text Reader

Abstract

The application provides a positioning correction method, device, storage medium and equipment. The method comprises the following steps: if a first IP segment of a first IP address positioning library and a second IP segment of a second IP address positioning library have an intersection, and first positioning information and second positioning information are not the same, the corresponding IP start address and IP end address are intercepted; third positioning information is obtained from a third IP address positioning library according to the IP start address and the end address; if the first positioning information is the same as the third positioning information, the first positioning information is recorded as standard positioning information of an IP segment between the IP start address and the end address; if the second positioning information is the same as the third positioning information, the second positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the end address; and the first positioning information of the first IP address positioning library is updated according to the standard positioning information. The information of multiple IP address positioning libraries is fused to perform positioning correction on the IP address positioning library.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of positioning, in particular to a positioning correction method, device, storage medium and equipment. BACKGROUND

[0002] Currently, there are multiple IP address positioning libraries on the market, and the data sources, data processing methods and technologies of each IP address positioning library are different, and the accuracy and naming methods of the data are different, especially at the city level. There is no optimal IP address positioning library at present, and the IP address positioning library is constantly updated, and the accuracy and coverage cannot be achieved. In the process of positioning using IP address, it is impossible to determine which IP address positioning library data is accurate, and accurate IP address positioning cannot be obtained. SUMMARY

[0003] Therefore, the present application provides a positioning correction method, device, storage medium and equipment, which fuses the data of multiple IP address positioning libraries to improve the accuracy of IP address positioning library address positioning.

[0004] In a first aspect, the present application provides a positioning correction method, comprising:

[0005] obtaining first IP addresses and first positioning information of a first IP address positioning library, second IP addresses and second positioning information of a second IP address positioning library;

[0006] If the first IP address and the second IP address have an intersection, and the first positioning information and the second positioning information are not the same, the IP start address and the IP end address corresponding to the first positioning information and the second positioning information are intercepted;

[0007] In a third IP address positioning library, the third positioning information is obtained according to the IP start address and the IP end address;

[0008] The first positioning information, the second positioning information and the third positioning information are compared;

[0009] If the first positioning information and the third positioning information are consistent, the first positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the IP end address;

[0010] If the second positioning information and the third positioning information are consistent, the second positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the IP end address;

[0011] The first positioning information of the first IP address positioning library is updated according to the standard positioning information.

[0012] In a second aspect, the present application provides a positioning correction device, comprising:

[0013] The first positioning acquisition module is configured to acquire a first IP address and first positioning information in a first IP address positioning database, a second IP address and second positioning information in a second IP address positioning database;

[0014] The first judgment module is configured to intercept an IP start address and an IP end address corresponding to the first positioning information and the second positioning information if the first IP address intersects with the second IP address and the first positioning information is different from the second positioning information.

[0015] The second positioning acquisition module is configured to acquire third positioning information in a third IP address positioning database according to the IP start address and the IP end address.

[0016] The positioning comparison module is configured to compare the first positioning information, the second positioning information and the third positioning information.

[0017] The first replacement module is configured to record the first positioning information as standard positioning information of an IP segment between the IP start address and the IP end address if the first positioning information is consistent with the third positioning information.

[0018] The second replacement module is configured to record the second positioning information as standard positioning information of the IP segment between the IP start address and the IP end address if the second positioning information is consistent with the third positioning information.

[0019] The positioning update module is configured to update the first positioning information in the first IP address positioning database according to the standard positioning information.

[0020] In a third aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the method for positioning correction in any one of the first aspect.

[0021] In a fourth aspect, the present application provides a computer device, which comprises a memory and a processor, and the memory stores a computer program, and the processor executes the computer program to execute the method for positioning correction in any one of the first aspect.

[0022] The method for improving positioning accuracy provided by the present application can improve the accuracy of IP positioning by comparing the positioning of multiple IP address positioning databases and fusing and correcting the IP address positioning database of the third party with higher accuracy in the case that the positioning of the IP address positioning database is inconsistent. Furthermore, the present application can also correct the positioning of the IP address positioning database by LBS geographic position, thereby further improving the accuracy of IP positioning. BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description.

[0024] Figure 1 A schematic diagram of the positioning correction method in one embodiment of the present application;

[0025] Figure 2 A comparison diagram of the positioning information of the IP address database in one embodiment of the present application;

[0026] Figure 3 Another comparison diagram of the positioning information of the IP address database in one embodiment of the present application;

[0027] Figure 4 A schematic diagram of the positioning correction device in one embodiment of the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In order to describe the present application in more detail, the positioning correction method, device, storage medium and equipment provided by the present application will be described in detail in the following with reference to the drawings.

[0029] The IP address positioning library stores a large number of IP addresses, each IP address corresponds to a physical address in reality, which is convenient for user query. For example, in the case that the user knows a certain IP address, the specific positioning of the IP address can be found. Although the IP address has a corresponding physical address, there is no necessary connection between them, and the operator can adjust the actual physical address corresponding to the IP address according to the demand, so the physical address corresponding to the IP address is dynamically changed, and there is no completely accurate IP address positioning library. There are multiple IP address positioning libraries on the market at present, but there is no optimal IP address positioning library. In the process of positioning using IP address, it is impossible to determine which IP address positioning library data is accurate, resulting in that the accurate physical address corresponding to the IP address cannot be obtained.

[0030] The present application provides a specific application scenario of the positioning correction method. The application scenario includes a terminal device provided by the embodiments, which includes but is not limited to a smart phone and a computer device, wherein the computer device can be at least one of a desktop computer, a portable computer, a laptop computer, a tablet computer and the like. The user operates the terminal device, and the terminal device executes the positioning correction method of the present application, combined with theFigure 1 For details, please refer to the method embodiment of the positioning correction.

[0031] Step S101: Obtain the first IP segment and the first positioning information of the first IP address positioning library, and the second IP segment and the second positioning information of the second IP address positioning library.

[0032] The first IP address positioning library is an offline stored IP address positioning library of the embodiment, which stores a plurality of IP addresses or IP address segments, and is generally a whois IP library. The whois IP library is a database for querying the registration state and registration information of a domain name. Through whois query, it can be known whether the target domain name is registered, who the domain name owner is, and the address of the domain name registrar. According to the information obtained by the above query, the positioning information corresponding to the IP address or the IP address segment can be obtained, that is, the first positioning information in the embodiment.

[0033] The second IP address positioning library is an IP address positioning library with high accuracy, which also stores a plurality of IP addresses or IP address segments, and is used for comparison with the first IP address positioning library to correct the specific positioning information of the first IP address positioning library. In the embodiment, the IP2region library is selected as the second IP address positioning library. The IP2region library is an offline IP address positioning library with an accuracy of 99.9%, which can achieve a query speed of 0.0x milliseconds. The corresponding positioning information obtained by querying the IP2region library is the second positioning information in the embodiment.

[0034] Step S102: If the first IP segment and the second IP segment have an intersection, and the first positioning information and the second positioning information are not the same, the IP start address and the IP end address corresponding to the first positioning information and the second positioning information are intercepted.

[0035] Specifically, the IP addresses between the first IP segment and the second IP segment are compared one by one. In the comparison process, the specific IP addresses are converted into numbers according to a preset rule, and the size of each IP address is compared to determine whether the first IP segment and the second IP segment have an intersection. The first IP segment and the second IP segment have an intersection include the following three cases:

[0036] (1) The first IP segment and the second IP segment have a partial overlap, specifically: the IP start address of the first IP segment is less than the start address of the second IP segment, and the end address of the first IP segment is greater than the end address of the second IP segment; or the IP start address of the second IP segment is less than the start address of the first IP segment, and the end address of the second IP segment is greater than the end address of the second IP segment;

[0037] (2) The first IP segment and the second IP segment completely overlap, specifically, the start address of the first IP segment is equal to the start address of the second IP segment, and the end address of the first IP segment is equal to the end address of the second IP segment.

[0038] (3) The first IP segment and the second IP segment only have the start address or the end address overlapping, specifically, the end address of the first IP segment is equal to the start address of the second IP segment, or the end address of the second IP segment is equal to the start address of the first IP segment.

[0039] On the basis of the comparison of the first IP segment and the second IP segment to determine whether there is an intersection between the two, further comparison is made on whether the first positioning information corresponding to the first IP segment and the second positioning information corresponding to the second IP segment are the same. If the positioning information corresponding to the two IP address segments with the intersection is not the same, it indicates that the first IP address positioning library may have information errors, and the positioning information corresponding to the IP segment needs to be corrected.

[0040] Therefore, in the case that the first positioning information and the second positioning information are not the same, the IP start address and the IP end address corresponding to the first positioning information and the second positioning information are intercepted. At this time, the IP segment to be intercepted should be the IP segment with the intersection between the first IP segment and the second IP segment, the IP start address to be intercepted is the start address of the IP segment with the intersection, and the IP end address to be intercepted is the end address of the IP segment with the intersection.

[0041] Step S103: In the third IP address positioning library, the third positioning information is obtained according to the IP start address and the IP end address.

[0042] Since the first IP address positioning library and the second IP address positioning library obtain different positioning information for the same IP segment, in order to improve the accuracy, a third IP address positioning library is introduced to correct the positioning information of the IP segment. Since the third IP address positioning library is introduced for correction, only the third positioning information between the aforementioned IP start address and IP end address needs to be intercepted. In the embodiment of the present application, the third IP address positioning library can be selected from IP address libraries with higher accuracy, such as Baidu IP library, Gaode IP library or Chunqing IP library, etc.

[0043] Step S104: The first positioning information, the second positioning information and the third positioning information are compared.

[0044] Step S105: If the first positioning information and the third positioning information are the same, the first positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the IP end address.

[0045] In the embodiment, the first positioning information of the whois IP library is the same as the third positioning information of the Baidu IP library, which can be seen from the table.Figure 2 .

[0046] Step S106: If the second positioning information is the same as the third positioning information, the second positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the IP end address.

[0047] In the embodiment, the second positioning information of the IP2region library is the same as the third positioning information of the Baidu IP library, which can be seen from the attached Figure 3 .

[0048] According to the principle of minority following majority, after the third IP address positioning library is referenced, for the same IP segment, if the positioning information of which IP address positioning library is the same as the third positioning information, the positioning information of the IP address positioning library is taken as the standard positioning information of the IP segment.

[0049] Step S107: The first positioning information of the first IP address positioning library is updated according to the standard positioning information.

[0050] Further, if the first positioning information, the second positioning information and the third positioning information are all different, the second positioning information is recorded as the standard positioning information of the IP segment between the IP start address and the IP end address.

[0051] In the case that the positioning information of the plurality of IP address positioning libraries is inconsistent, the positioning information of the IP address positioning library with the highest accuracy (the second IP address positioning library in the embodiment, i.e. the IP2region library) is selected as the standard positioning information.

[0052] Further, when comparing the first positioning information, the second positioning information and the third positioning information, since the accuracy of each IP address positioning library is different, the above three positioning information needs to be set at the same positioning level for comparison, which specifically includes:

[0053] Step S201: If the city in the first positioning information, the second positioning information and the third positioning information is not empty, compare whether the city in the first positioning information, the second positioning information and the third positioning information is the same.

[0054] Step S202: If the city in the first positioning information, the second positioning information or the third positioning information is empty, compare whether the province in the first positioning information, the second positioning information and the third positioning information is the same.

[0055] In addition, for the positioning correction of the IP address positioning library, the LBS positioning information can also be introduced as a reference, which specifically includes:

[0056] Step S301: Obtain the LBS positioning information of the user equipment and the IP point used by the user equipment.

[0057] Wherein, the LBS (Location Based Services) is a location-based service, which is to obtain the current location of a positioning device by using various types of positioning technology, and to provide information resources and basic services to the positioning device through mobile Internet. LBS is to obtain the geographic coordinate information of a user and other information based on a spatial database by using a wireless communication network (or a satellite positioning system) of a mobile terminal, and to provide the required location-related services to the user. The location of a user device obtained by LBS positioning information of the user device is more accurate than the location of the user device obtained by other methods.

[0058] Step S302: confirming the fourth positioning information corresponding to the IP point from the first IP address positioning library.

[0059] According to the IP point used by the user device, the fourth positioning information corresponding to the IP point can be found from the positioning information saved in the first IP address positioning library.

[0060] Step S303: if the LBS positioning information is inconsistent with the fourth positioning information, generating a correction record, and updating the fourth positioning information of the first IP address positioning library to the LBS positioning information according to the correction record.

[0061] Since the accuracy of the LBS positioning information is much higher than that of the first IP address positioning library, in the case where the LBS positioning information is inconsistent with the fourth positioning information, the fourth positioning information is directly corrected to the LBS positioning information, and the correction of the IP point by the LBS positioning information is noted through the correction record.

[0062] Further, since the accuracy of the LBS positioning information is high, on this basis, the positioning correction method can be further improved, specifically:

[0063] Step S401: obtaining the IP segment corresponding to the fourth positioning information.

[0064] Step S402: obtaining the fifth positioning information corresponding to the IP segment from the third positioning database.

[0065] Step S403: if the fifth positioning information is consistent with the fourth positioning information, updating the positioning information of the IP segment in the first IP address positioning library to the fifth positioning information.

[0066] Step S404: if the fifth positioning information is inconsistent with the fourth positioning information, updating the positioning information of the IP segment in the first IP address positioning library to the fourth positioning information.

[0067] When it is determined that the LBS location information of a user device is inconsistent with the fourth location information determined by the first IP address location database, the IP address used by the user device is first corrected. Then, using the IP address used by the user device as the starting point, the IP segment corresponding to the fourth location information in the first IP address location database is obtained, and the fifth location information corresponding to the IP segment is obtained from the third IP address location database. The fifth location information is compared with the corrected fourth location information. If they match, the fifth location information is used as the location information for the IP segment; if they do not match, the corrected fourth location information is used to correct the location information for the IP segment. In this embodiment, the third IP address location database can be any one of the following: Baidu IP database, Gaode IP database, Chunzhen IP database, Taobao IP database, and Evan Technology IP database.

[0068] This invention discloses a location correction method that, through open-source data and open APIs, uses a comparison processing method to easily and quickly fuse data from various IP address location databases, thereby improving the accuracy of IP location. Furthermore, it introduces IP location error correction, which, when other more accurate location technologies are available, corrects errors in the IP address location database, further improving the accuracy of the IP address location database.

[0069] It should be understood that, although attached Figure 1 The steps in the flowchart are shown sequentially according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order requirement for the execution of these steps, and they can be executed in other orders. Furthermore, [the following is a list of steps]. Figure 1 At least some of the steps in the process may include multiple sub-steps or sub-stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0070] The above-described embodiments of the present invention provide a detailed method for positioning correction. Since this method can be implemented using various types of devices, the present invention also discloses a positioning correction apparatus corresponding to the above method. Figure 4 The following are specific embodiments for detailed explanation.

[0071] The first location acquisition module 501 is used to acquire the first IP address and first location information from the first IP address location database, and the second IP address and second location information from the second IP address location database.

[0072] The first judging module 502 is configured to intercept an IP start address and an IP end address corresponding to the first positioning information and the second positioning information if the first IP address intersects with the second IP address and the first positioning information is different from the second positioning information.

[0073] The second positioning obtaining module 503 is configured to obtain third positioning information from the third IP address positioning database according to the IP start address and the IP end address.

[0074] The positioning comparing module 504 is configured to compare the first positioning information, the second positioning information and the third positioning information.

[0075] The first replacing module 505 is configured to record the first positioning information as standard positioning information of an IP segment between the IP start address and the IP end address if the first positioning information is consistent with the third positioning information.

[0076] The second replacing module 506 is configured to record the second positioning information as the standard positioning information of the IP segment between the IP start address and the IP end address if the second positioning information is consistent with the third positioning information.

[0077] The positioning updating module 507 is configured to update the first positioning information of the first IP address positioning database according to the standard positioning information.

[0078] Further, the positioning correction apparatus further comprises:

[0079] The third replacing module 508 is configured to record the second positioning information as the standard positioning information of the IP segment between the IP start address and the IP end address if the first positioning information, the second positioning information and the third positioning information are all different.

[0080] The specific limitation of the positioning correction apparatus can refer to the limitation of the method, which will not be repeated here. Each module in the apparatus can be realized by software, hardware and combination thereof in whole or in part. Each module can be embedded in or independent of the processor of the terminal device in hardware form, or stored in the memory of the terminal device in software form, so as to be called and executed by the processor to perform the operation corresponding to each module.

[0081] In one embodiment, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of the positioning correction method of the first aspect.

[0082] The computer-readable storage medium can be an electronic storage such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a hard disk, or a ROM. Alternatively, the computer-readable storage medium includes a non-transitory computer-readable medium. The computer-readable storage medium has a storage space for storing program codes for performing any of the method steps described above. The program codes can be read from or written to one or more computer program products, which can be compressed in an appropriate form.

[0083] In one embodiment, the present application provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the positioning correction method described above.

[0084] The computer device comprises a memory, a processor, and one or more computer programs, wherein the one or more computer programs can be stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to perform the positioning correction method described above.

[0085] The processor can include one or more processing cores. The processor connects various parts within the entire computer device through various interfaces and lines, performs various functions of the computer device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory. Alternatively, the processor can be implemented in at least one of a hardware form of a Digital Signal Processing (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor can integrate a combination of one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU) for reporting and verifying embedded data, and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor, but can be realized by a separate communication chip.

[0086] The memory can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory can be used to store instructions, programs, codes, code sets, or instruction sets. The memory can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area can also store data created by the terminal device in use, etc.

[0087] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of positioning correction, characterized by, The method comprises the following steps: obtaining a first IP segment and first location information of a first IP address location database, a second IP segment and second location information of a second IP address location database; if the first IP segment and the second IP segment have intersection, and the first location information and the second location information are not the same, intercepting an IP start address and an IP end address corresponding to the first location information and the second location information, the intercepted IP segment being an IP segment having intersection between the first IP segment and the second IP segment, the intercepted IP start address being a start address of the IP segment having intersection, and the intercepted IP end address being an end address of the IP segment having intersection; in a third IP address location database, obtaining third location information according to the IP start address and the IP end address; comparing the first location information, the second location information and the third location information; if the first location information and the third location information are the same, recording the first location information as standard location information of an IP segment between the IP start address and the IP end address; if the second location information and the third location information are the same, recording the second location information as standard location information of the IP segment between the IP start address and the IP end address; updating the first location information of the first IP address location database according to the standard location information; the comparing the first location information, the second location information and the third location information comprises: if cities in the first location information, the second location information and the third location information are not empty, comparing whether the cities in the first location information, the second location information and the third location information are the same; if the city in the first location information, the second location information or the third location information is empty, comparing whether provinces in the first location information, the second location information and the third location information are the same; obtaining LBS location information of a user equipment and an IP point used by the user equipment; confirming fourth location information corresponding to the IP point from the first IP address location database; if the LBS location information and the fourth location information are inconsistent, generating a correction record, and updating the fourth location information of the first IP address location database to the LBS location information according to the correction record; the first IP address location database is an IP address location database stored offline by itself; the second IP address location database is an IP address location database with higher accuracy, and is used to compare with the first IP address location database to correct specific location information of the first IP address location database; and the third IP address location database selects an IP address database with higher accuracy.

2. A method of positioning correction as claimed in claim 1, characterized in that, The method further comprises the following steps: if the first location information, the second location information and the third location information are all different, recording the second location information as the standard location information of the IP segment between the IP start address and the IP end address.

3. A method of positioning correction as claimed in claim 1, characterized in that, The method further comprises the following steps: obtaining an IP segment corresponding to the fourth location information; obtaining fifth location information corresponding to the IP segment from a third location database; if the fifth location information and the fourth location information are consistent, updating location information of the IP segment in the first IP address location database to the fifth location information. If the fifth positioning information is inconsistent with the fourth positioning information, update the positioning information of the IP segment in the first IP address positioning library as the fourth positioning information.

4. The method of claim 1, wherein, The second IP address positioning library is an Ip2region library. The third IP address positioning library is any one of a Baidu IP library, a Gaode IP library, and a pure IP library.

5. An apparatus for positioning correction, characterized by The method comprises: The first positioning acquisition module is configured to acquire a first IP address and first positioning information of a first IP address positioning library, and a second IP address and second positioning information of a second IP address positioning library. The first judgment module is configured to, if the first IP address and the second IP address have an intersection and the first positioning information and the second positioning information are not identical, intercept an IP start address and an IP end address corresponding to the first positioning information and the second positioning information, and the intercepted IP segment should be an IP segment having an intersection between a first IP segment and a second IP segment, the intercepted IP start address being a start address of the IP segment having the intersection, and the intercepted IP end address being an end address of the IP segment having the intersection. The second positioning acquisition module is configured to acquire third positioning information in a third IP address positioning library according to the IP start address and the IP end address. The positioning comparison module is configured to compare the first positioning information, the second positioning information, and the third positioning information. The first replacement module is configured to, if the first positioning information is consistent with the third positioning information, record the first positioning information as standard positioning information of an IP segment between the IP start address and the IP end address. The second replacement module is configured to, if the second positioning information is consistent with the third positioning information, record the second positioning information as the standard positioning information of the IP segment between the IP start address and the IP end address. The positioning update module is configured to update the first positioning information of the first IP address positioning library according to the standard positioning information. The comparison of the first positioning information, the second positioning information, and the third positioning information comprises: If cities in the first positioning information, the second positioning information, and the third positioning information are not empty, compare whether the cities in the first positioning information, the second positioning information, and the third positioning information are identical. If the city in the first positioning information, the second positioning information, or the third positioning information is empty, compare whether provinces in the first positioning information, the second positioning information, and the third positioning information are identical. Acquire LBS positioning information of a user equipment and an IP point used by the user equipment. Confirm fourth positioning information corresponding to the IP point from a first IP address positioning library. If the LBS positioning information is inconsistent with the fourth positioning information, generate a correction record, and update the fourth positioning information of the first IP address positioning library as the LBS positioning information according to the correction record. The first IP address positioning library is an offline stored IP address positioning library; the second IP address positioning library is an IP address positioning library with higher accuracy, and is used to compare with the first IP address positioning library to correct specific positioning information of the first IP address positioning library; and the third IP address positioning library is an IP address library with higher accuracy.

6. A device for positioning correction as claimed in claim 5, characterized in that Further comprising: A third replacing module, configured to record the second positioning information as standard positioning information of the IP segment between the IP start address and the IP end address if the first positioning information, the second positioning information and the third positioning information are all different.

7. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize steps of the positioning correction method in any one of claims 1-4.

8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to execute the positioning correction method in any one of claims 1-4.

Citation Information

Patent Citations

  • IP (internal protocol) address data processing method and device

    CN104202441A

  • Method and apparatus for processing IP address database

    CN104994185A

  • IP address base update method and apparatus

    CN106302843A

  • IP address geographic position ambiguity judgment method and related equipment

    CN113779165A