Latitude and longitude correction method and device, storage medium and electronic equipment
By matching the corrected enterprise data and obtaining the longitude and latitude information of unmatched data through the map API, the problem of low efficiency in correcting the longitude and latitude of air pollution monitoring points is solved, and efficient and accurate longitude and latitude correction is achieved.
Patent Information
- Application Number
- CN202510700836.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-12
AI Technical Summary
In the existing technology, the efficiency of latitude and longitude correction of air pollution monitoring points is low, and it mainly relies on manual methods, resulting in low efficiency.
By obtaining the corrected enterprise data set and matching it with the enterprise data to be corrected, the matched data is corrected using the latitude and longitude information of the matched enterprise data, and the latitude and longitude information to be verified of the unmatched data is obtained through the map API to determine the target latitude and longitude for correction.
It improves the efficiency of longitude and latitude correction, ensures timeliness when dealing with large amounts of data, improves the recognition rate of abnormal longitude and latitude points and achieves accurate correction.
Smart Images

Figure CN120632002A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of environmental protection technology, and in particular to a latitude and longitude correction method, device, storage medium and electronic equipment. Background Art
[0002] At present, air pollution has become a major environmental problem in my country's urban agglomerations, and its sources are complex and diverse. Investigating the emissions of enterprises around air monitoring points is an important measure to ensure the accuracy and authenticity of air quality monitoring data, maintain environmental fairness, support scientific decision-making, protect public health, and promote environmental governance. In this regard, the accuracy of the longitude and latitude of enterprises has a decisive impact on air quality traceability. However, related technologies usually determine abnormal points (i.e., abnormal longitude and latitude information) manually and correct the longitude and latitude information in the enterprise data, resulting in low efficiency of longitude and latitude correction. Based on this, how to conveniently perform longitude and latitude correction to improve the efficiency of longitude and latitude correction currently has no good solution. Summary of the Invention
[0003] In view of this, an embodiment of the present invention provides a latitude and longitude correction method, device, storage medium and electronic device to solve the problem of low efficiency of longitude and latitude correction in related technologies; that is, the embodiment of the present invention can correct the longitude and latitude of M matched enterprise data through the corrected enterprise data set, and correct the longitude and latitude of N unmatched enterprise data through at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data in the N unmatched enterprise data, thereby conveniently performing longitude and latitude correction to effectively improve the efficiency of longitude and latitude correction, and at least one enterprise data to be corrected may include a large amount of data (that is, the amount of data of the enterprise data to be corrected may be large), so the embodiment of the present invention can ensure timeliness when faced with a large amount of enterprise data to be corrected that needs to be processed.
[0004] According to one aspect of an embodiment of the present invention, a method for correcting longitude and latitude is provided, the method comprising:
[0005] Acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data;
[0006] Performing data matching on the at least one enterprise data to be revised with the revised enterprise data set to obtain revised enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be revised;
[0007] Correcting the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data;
[0008] Respectively obtaining at least one piece of latitude and longitude information to be verified corresponding to each piece of unmatched enterprise data in the N unmatched enterprise data;
[0009] Based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, the target longitude and latitude information corresponding to the corresponding unmatched enterprise data is determined, and the longitude and latitude information in the corresponding unmatched enterprise data is corrected using the target longitude and latitude information corresponding to each unmatched enterprise data.
[0010] According to another aspect of an embodiment of the present invention, a latitude and longitude correction device is provided, the device comprising:
[0011] an acquiring unit, configured to acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data;
[0012] a processing unit configured to perform data matching on the at least one enterprise data to be corrected and the set of corrected enterprise data, to obtain corrected enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected;
[0013] The processing unit is further configured to correct the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data;
[0014] The acquisition unit is further configured to respectively acquire at least one piece of latitude and longitude information to be verified corresponding to each piece of the N unmatched enterprise data;
[0015] The processing unit is also used to determine the target longitude and latitude information corresponding to the corresponding unmatched enterprise data based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, and use the target longitude and latitude information corresponding to each unmatched enterprise data to correct the longitude and latitude information in the corresponding unmatched enterprise data.
[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, cause the processor to perform the above-mentioned method.
[0017] According to another aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
[0018] According to another aspect of an embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, it is configured to enable a computer to perform the above-mentioned method.
[0019] In an embodiment of the present invention, after obtaining at least one piece of enterprise data to be corrected and a set of corrected enterprise data, data matching can be performed on the at least one piece of enterprise data to be corrected and the set of corrected enterprise data to obtain corrected enterprise data corresponding to each piece of matched enterprise data and N pieces of unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected. Then, based on the longitude and latitude information in the corrected enterprise data corresponding to each piece of matched enterprise data, the longitude and latitude information in the corresponding matched enterprise data can be corrected; and at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data in the N pieces of unmatched enterprise data can be obtained. Based on this, based on the at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data, the target longitude and latitude information corresponding to the corresponding unmatched enterprise data can be determined, and the target longitude and latitude information corresponding to each piece of unmatched enterprise data can be used to correct the longitude and latitude information in the corresponding unmatched enterprise data. It can be seen that the embodiment of the present invention can correct the longitude and latitude of M matched enterprise data through the corrected enterprise data set, and correct the longitude and latitude of N unmatched enterprise data through at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data in the N unmatched enterprise data, thereby conveniently performing longitude and latitude correction to effectively improve the efficiency of longitude and latitude correction; and, at least one enterprise data to be corrected may include a large amount of data (that is, the amount of data of the enterprise data to be corrected may be large), so the embodiment of the present invention can ensure timeliness when faced with a large amount of enterprise data to be corrected that needs to be processed. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Further details, features and advantages of the present invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0021] Figure 1 A schematic flow chart of a latitude and longitude correction method according to an exemplary embodiment of the present invention is shown;
[0022] Figure 2 A schematic flow chart of another latitude and longitude correction method according to an exemplary embodiment of the present invention is shown;
[0023] Figure 3 A schematic diagram showing a ray determination method according to an exemplary embodiment of the present invention is shown;
[0024] Figure 4 A schematic flow chart of another latitude and longitude correction method according to an exemplary embodiment of the present invention is shown;
[0025] Figure 5 A schematic diagram showing latitude and longitude information in at least one enterprise data to be corrected according to an exemplary embodiment of the present invention is shown;
[0026] Figure 6 A schematic diagram showing longitude and latitude information in a longitude and latitude correction result according to an exemplary embodiment of the present invention is shown;
[0027] Figure 7 A schematic block diagram of a latitude and longitude correction device according to an exemplary embodiment of the present invention is shown;
[0028] Figure 8 A block diagram of an exemplary electronic device capable of implementing the embodiments of the present invention is shown. DETAILED DESCRIPTION
[0029] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0030] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0031] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0034] It should be noted that the execution subject of the longitude and latitude correction method provided in the embodiment of the present invention can be one or more electronic devices, and the present invention does not limit this. Among them, the electronic device can be a terminal (i.e., a client) or a server. Then, when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the longitude and latitude correction method provided in the embodiment of the present invention can be jointly executed by the terminal and the server. Accordingly, the terminals mentioned here can include but are not limited to: smartphones, tablets, laptops, desktop computers, smart watches, smart voice interaction devices, smart home appliances, etc. The server mentioned here can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, etc.
[0035] Based on the above description, an embodiment of the present invention proposes a latitude and longitude correction method, which can be executed by the electronic device (terminal or server) mentioned above; or, the latitude and longitude correction method can be executed by the terminal and the server together. For the sake of convenience, the following description will be based on the example of an electronic device executing the latitude and longitude correction method; Figure 1 As shown, the latitude and longitude correction method may include the following steps S101-S105:
[0036] S101: Acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data.
[0037] Optionally, a piece of enterprise data (such as enterprise data to be corrected or corrected enterprise data, etc.) may include but is not limited to at least one of the following: enterprise identification, enterprise address, longitude and latitude information, regional identification (i.e., regional identification of the boundary area to which the enterprise belongs), etc., and the embodiment of the present invention does not limit this. Optionally, the fields in the enterprise data to be corrected and the corrected enterprise data may be the same or different, and the embodiment of the present invention does not limit this; illustratively, when the corrected enterprise data includes the enterprise identification, the enterprise data to be corrected may not include the enterprise identification, and so on. Optionally, an enterprise identification can be a company name, or a company number (i.e., ID (Identity document, identity card identification number, unique code, etc.)), or a unified social credit code, etc., and the embodiment of the present invention does not limit this. Optionally, a regional identification can be a regional name, or a regional number, etc., and the embodiment of the present invention does not limit this.
[0038] In this embodiment of the present invention, the at least one enterprise data to be corrected may be obtained in the following ways, but is not limited to:
[0039] The first acquisition method: at least one piece of enterprise data to be revised may be stored in the storage space of the electronic device. In this case, the electronic device may acquire the at least one piece of enterprise data to be revised from its own storage space.
[0040] The second acquisition method: the electronic device can obtain a download link of the data to be revised, and use the download link of the data to be revised to download at least one enterprise data to be revised, so as to obtain the at least one enterprise data to be revised, and so on.
[0041] Optionally, at least one enterprise data to be corrected may include all enterprise data required for use in the target project, and may also include enterprise data set by the user when performing an enterprise data correction operation (such as input or selected enterprise data), etc., and the embodiment of the present invention does not limit this. It should be noted that the embodiment of the present invention does not limit the specific execution method of the enterprise data correction operation. Optionally, the target project can be any project (such as any pollution tracing project, etc.), and the embodiment of the present invention does not limit this. Based on this, the data provision of at least one enterprise data to be corrected can be provided in a variety of ways such as interfaces, files, databases, etc., and the embodiment of the present invention does not limit this.
[0042] Optionally, the corrected enterprise data set may be stored in the internal storage space of the electronic device. In this case, the corrected enterprise data set may be obtained from the internal storage space; alternatively, the electronic device may obtain the corrected data download link and use the corrected data download link to download the corrected enterprise data set to obtain the corrected enterprise data set, etc.; the embodiments of the present invention do not limit this. It can be understood that the corrected enterprise data set supports being updated.
[0043] S102. Perform data matching on at least one to-be-corrected enterprise data and the corrected enterprise data set to obtain the corrected enterprise data corresponding to each of the M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of to-be-corrected enterprise data.
[0044] In the embodiments of the present invention, both M and N may be non-negative integers.
[0045] Optionally, the electronic device may also perform data cleaning on at least one to-be-corrected enterprise data to update the at least one to-be-corrected enterprise data. Optionally, the electronic device may perform data cleaning on the at least one to-be-corrected enterprise data according to at least one data cleaning rule; optionally, the at least one data cleaning rule may be set according to experience or according to actual requirements, and the embodiments of the present invention do not limit this. Based on this, the embodiments of the present invention can detect and process specific abnormal situations in the to-be-corrected enterprise data through at least one data cleaning rule, improve the accuracy of the data representation of the at least one to-be-corrected enterprise data, improve the accuracy of data matching, and thus further improve the accuracy of longitude and latitude correction.
[0046] Exemplarily, the at least one data cleaning rule may include but is not limited to at least one of the following: regular expression conversion, format standardization, numerical range monitoring, and regional alias correction, etc., and the embodiments of the present invention do not limit this. For example, regular expression conversion can be used to indicate converting a non-numeric format (such as "120 degrees east longitude") to a numerical value, format standardization can be used to indicate unifying the decimal and degree-minute-second formats, numerical range monitoring can be used to indicate longitude (-180 to 180), latitude (-90 to 90) overlimit marking, and regional alias correction can be used to indicate correcting typos such as "Beijing" and "Beijing City" through target dictionary matching, etc. Optionally, the target dictionary may include the standard regional names of each region in multiple regions, so as to unify the regional names in the to-be-corrected enterprise data into the corresponding standard regional names, etc.
[0047] S103. Respectively correct the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data.
[0048] In this embodiment of the present invention, a matched enterprise data item may refer to a piece of uncorrected enterprise data that matches the corrected enterprise data in the corrected enterprise data set. The corrected enterprise data corresponding to a matched enterprise data item may refer to the corrected enterprise data that matches the corresponding matched enterprise data item. An unmatched enterprise data item may refer to a piece of uncorrected enterprise data item that does not match the corrected enterprise data in the corrected enterprise data set. Accordingly, the M matched enterprise data items may include all uncorrected enterprise data items that match the corrected enterprise data item in the at least one uncorrected enterprise data item, and the N unmatched enterprise data items may include all uncorrected enterprise data items that do not match the corrected enterprise data item in the at least one uncorrected enterprise data item.
[0049] Optionally, for any matched enterprise data among the M matched enterprise data, when the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data is the same as the longitude and latitude information in any matched enterprise data, after correcting the longitude and latitude information in any matched enterprise data, the longitude and latitude information in any matched enterprise data remains unchanged; when the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data is different from the longitude and latitude information in any matched enterprise data, after correcting the longitude and latitude information in any matched enterprise data, the longitude and latitude information in any matched enterprise data is updated to the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data. Based on this, the embodiment of the present invention can obtain the precise longitude and latitude information of the enterprise corresponding to any matched enterprise data (i.e., the precise longitude and latitude information of the enterprise indicated by any matched enterprise data) through the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data.
[0050] Optionally, when using the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data to correct the longitude and latitude information in any matched enterprise data, it can be determined whether the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data is the same as the longitude and latitude information in any matched enterprise data. If different, the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data is used to update the longitude and latitude information in any matched enterprise data; alternatively, the longitude and latitude information in the corrected enterprise data corresponding to any matched enterprise data can be directly used to update the longitude and latitude information in any matched enterprise data, that is, the judgment process can be omitted at this time, and so on; the embodiments of the present invention are not limited to this.
[0051] S104: Obtain at least one piece of latitude and longitude information to be verified corresponding to each piece of N unmatched enterprise data.
[0052] The latitude and longitude information to be verified may be obtained by calling a map API (Application Program Interface, also known as a map interface). Optionally, different latitude and longitude information to be verified corresponding to unmatched enterprise data may be obtained by calling the same map API (i.e., obtained from the same map) or by calling different map APIs (i.e., obtained from different maps), which is not limited in this embodiment of the present invention.
[0053] S105, based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, determine the target longitude and latitude information corresponding to the corresponding unmatched enterprise data, and use the target longitude and latitude information corresponding to each unmatched enterprise data to correct the longitude and latitude information in the corresponding unmatched enterprise data.
[0054] Optionally, for any unmatched enterprise data among the N unmatched enterprise data, when the target longitude and latitude information corresponding to any unmatched enterprise data is the same as the longitude and latitude information in any unmatched enterprise data, after correcting the longitude and latitude information in any unmatched enterprise data, the longitude and latitude information in any unmatched enterprise data remains unchanged; when the target longitude and latitude information corresponding to any unmatched enterprise data is different from the longitude and latitude information in any unmatched enterprise data, after correcting the longitude and latitude information in any unmatched enterprise data, the longitude and latitude information in any unmatched enterprise data is updated to the target longitude and latitude information corresponding to any unmatched enterprise data. Based on this, the embodiment of the present invention can obtain the precise longitude and latitude information of the enterprise corresponding to any unmatched enterprise data (i.e., the precise longitude and latitude information of the enterprise indicated by any unmatched enterprise data) through the target longitude and latitude information corresponding to any unmatched enterprise data, and can use the target longitude and latitude information corresponding to any unmatched enterprise data as the precise longitude and latitude information of the enterprise corresponding to any unmatched enterprise data.
[0055] Optionally, when using the target longitude and latitude information corresponding to any unmatched enterprise data to correct the longitude and latitude information in any unmatched enterprise data, it can be determined whether the target longitude and latitude information corresponding to any unmatched enterprise data is the same as the longitude and latitude information in any unmatched enterprise data. If different, the target longitude and latitude information corresponding to any unmatched enterprise data is used to update the longitude and latitude information in any unmatched enterprise data; or, the target longitude and latitude information corresponding to any unmatched enterprise data can be directly used to update the longitude and latitude information in any unmatched enterprise data, that is, the judgment process can be omitted at this time, and so on; the embodiments of the present invention are not limited to this.
[0056] Based on this, the embodiment of the present invention can obtain at least one enterprise data to be corrected after latitude and longitude correction (also referred to as latitude and longitude correction result); optionally, the latitude and longitude correction result may include each corrected matched enterprise data and each corrected unmatched enterprise data, and the latitude and longitude information in each enterprise data included in the latitude and longitude correction result may all be the corresponding enterprise's precise latitude and longitude information.
[0057] In summary, the embodiment of the present invention can conveniently perform latitude and longitude correction on at least one piece of enterprise data to be corrected, thereby obtaining the precise longitude and latitude information corresponding to each piece of enterprise data to be corrected in the at least one piece of enterprise data to be corrected. Furthermore, the embodiment of the present invention can support complex data cleaning through a custom rule engine (i.e., at least one data cleaning rule), such as supporting flexible processing capabilities for aliases, typos, and format anomalies, thereby increasing the recognition rate of abnormal longitude and latitude points by 40%, thereby correcting abnormal longitude and latitude points to precise longitude and latitude information of the enterprise, and effectively improving the accuracy of longitude and latitude correction; based on this, the embodiment of the present invention can effectively process abnormal longitude and latitude points.
[0058] In an embodiment of the present invention, after obtaining at least one piece of enterprise data to be corrected and a set of corrected enterprise data, data matching can be performed on the at least one piece of enterprise data to be corrected and the set of corrected enterprise data to obtain corrected enterprise data corresponding to each piece of matched enterprise data and N pieces of unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected. Then, based on the longitude and latitude information in the corrected enterprise data corresponding to each piece of matched enterprise data, the longitude and latitude information in the corresponding matched enterprise data can be corrected; and at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data in the N pieces of unmatched enterprise data can be obtained. Based on this, based on the at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data, the target longitude and latitude information corresponding to the corresponding unmatched enterprise data can be determined, and the target longitude and latitude information corresponding to each piece of unmatched enterprise data can be used to correct the longitude and latitude information in the corresponding unmatched enterprise data. It can be seen that the embodiment of the present invention can correct the longitude and latitude of M matched enterprise data through the corrected enterprise data set, and correct the longitude and latitude of N unmatched enterprise data through at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data in the N unmatched enterprise data, thereby conveniently performing longitude and latitude correction to effectively improve the efficiency of longitude and latitude correction; and, at least one enterprise data to be corrected may include a large amount of data (that is, the amount of data of the enterprise data to be corrected may be large), so the embodiment of the present invention can ensure timeliness when faced with a large amount of enterprise data to be corrected that needs to be processed.
[0059] Based on the above description, the embodiment of the present invention further proposes a more specific latitude and longitude correction method. Accordingly, the latitude and longitude correction method can be executed by the electronic device (terminal or server) mentioned above; or, the latitude and longitude correction method can be executed by the terminal and the server together. For the sake of convenience, the following description will be based on the example of an electronic device executing the latitude and longitude correction method; please refer to Figure 2 The latitude and longitude correction method may include the following steps S201-S208:
[0060] S201: Acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data.
[0061] S202, performing data matching on at least one enterprise data to be corrected and a set of corrected enterprise data to obtain corrected enterprise data corresponding to each matched enterprise data in M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected.
[0062] Optionally, the electronic device may traverse each enterprise data to be corrected in at least one enterprise data to be corrected, and use the currently traversed enterprise data to be corrected as the current enterprise data; then, data matching may be performed on the current enterprise data and the corrected enterprise data set to obtain a matching result of the current enterprise data; if the matching result is the corrected enterprise data corresponding to the current enterprise data, the current enterprise data may be used as a matched enterprise data; if the matching result is not the corrected enterprise data corresponding to the current enterprise data, the current enterprise data may be used as an unmatched enterprise data; after traversing each enterprise data to be corrected in at least one enterprise data to be corrected, the corrected enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data may be obtained.
[0063] Optionally, when there is corrected enterprise data that matches the current enterprise data in the corrected enterprise data set (i.e., when the current enterprise data matches the corrected enterprise data in the corrected enterprise data set), the corrected enterprise data that matches the current enterprise data (i.e., the corrected enterprise data corresponding to the current enterprise data) can be used as the matching result of the current enterprise data; when there is no corrected enterprise data that matches the current enterprise data in the corrected enterprise data set (i.e., when the current enterprise data does not match the corrected enterprise data in the corrected enterprise data set), the unmatched indication information can be used as the matching result of the current enterprise data. Optionally, the unmatched indication information can be a null value (i.e., when there is no corrected enterprise data that matches the current enterprise data in the corrected enterprise data set, the matching result of the current enterprise data can be set to null, i.e., the matching result of the current enterprise data can be null at this time). If the matching result of the current enterprise data is null at this time, the current enterprise data can be treated as an unmatched enterprise data; or, the unmatched indication information can also be set according to experience or actual needs, which is not limited in the embodiments of the present invention. Based on this, if the matching result of the current enterprise data is unmatched indication information, it can be determined that the matching result of the current enterprise data is not the corrected enterprise data corresponding to the current enterprise data; that is, if the matching result of the current enterprise data is unmatched indication information, the current enterprise data can be regarded as an unmatched enterprise data.
[0064] Optionally, when performing data matching on the current enterprise data and the revised enterprise data set to obtain the matching result of the current enterprise data, if the current enterprise data includes an enterprise identifier, data matching can be performed on the current enterprise data and the revised enterprise data set based on the enterprise identifier in the current enterprise data to obtain the matching result of the current enterprise data. Optionally, when there is corrected enterprise data in the corrected enterprise data set in which the enterprise indicated by the enterprise identifier is the same as the enterprise indicated by the enterprise identifier in the current enterprise data, the corrected enterprise data in which the enterprise indicated by the enterprise identifier is the same as the enterprise indicated by the enterprise identifier in the current enterprise data can be used as the corrected enterprise data corresponding to the current enterprise data, and thus can be used as the matching result of the current enterprise data. For example, when there is corrected enterprise data in the corrected enterprise data set in which the enterprise indicated by the enterprise identifier is the same as the enterprise indicated by the enterprise identifier in the current enterprise data, the corrected enterprise data in which the enterprise indicated by the enterprise identifier is the same as the enterprise indicated by the enterprise identifier in the current enterprise data can be used as the corrected enterprise data corresponding to the current enterprise data; when there is no corrected enterprise data in which the enterprise indicated by the enterprise identifier is the same as the enterprise indicated by the enterprise identifier in the current enterprise data (for example, there is no corrected enterprise data in which the enterprise identifier is the same as the enterprise identifier in the current enterprise data), the unmatched indication information can be used as the matching result of the current enterprise data, that is, at this time there is no corrected enterprise data in the corrected enterprise data set that matches the current enterprise data. Based on this, for any revised enterprise data in the revised enterprise data set, when the enterprise indicated by the enterprise identifier in any revised enterprise data is the same as the enterprise indicated by the enterprise identifier in the current enterprise data, it can be determined that any revised enterprise data is the revised enterprise data corresponding to the current enterprise data (i.e., any revised enterprise data matches the current enterprise data); when the enterprise indicated by the enterprise identifier in any revised enterprise data is different from the enterprise indicated by the enterprise identifier in the current enterprise data, it can be determined that any revised enterprise data is not the revised enterprise data corresponding to the current enterprise data (i.e., any revised enterprise data does not match the current enterprise data); illustratively, when the enterprise identifier in any revised enterprise data is the same as the enterprise identifier in the current enterprise data, it can be determined that the enterprise indicated by the enterprise identifier in any revised enterprise data is the same as the enterprise indicated by the enterprise identifier in the current enterprise data; when the enterprise identifier in any revised enterprise data is different from the enterprise identifier in the current enterprise data, it can be determined that the enterprise indicated by the enterprise identifier in any revised enterprise data is different from the enterprise identifier in the current enterprise data, etc. It can be seen that at this time, matching can be performed directly through the unique identification field (i.e., enterprise identifier) used to indicate the enterprise.
[0065] Optionally, if the current enterprise data does not include an enterprise identifier, at least one target field may be determined, and information to be matched containing the field contents of each target field in the at least one target field may be determined from the current enterprise data, so as to perform data matching on the current enterprise data and the corrected enterprise data set based on the information to be matched, and obtain a matching result for the current enterprise data. Optionally, the at least one target field may include but is not limited to at least one of the following: enterprise address, longitude and latitude information, and region identifier, etc., which is not limited in the embodiment of the present invention. Optionally, the at least one target field may be set according to experience or actual needs, or may be determined based on fields in the enterprise data to be corrected and fields in the corrected enterprise data, etc.; this is not limited in the embodiment of the present invention.
[0066] Exemplarily, if at least one target field is determined based on fields in the enterprise data to be corrected and fields in the corrected enterprise data, multiple pending fields can be determined, and all fields that exist in the enterprise data to be corrected and in the corrected enterprise data can be determined from the multiple pending fields, and all the determined fields can be used as at least one target field, that is, each determined field can be used as a target field to determine at least one target field. Optionally, the multiple pending fields may include but are not limited to: enterprise address, longitude and latitude information, and area identification, etc., which is not limited in the embodiment of the present invention; optionally, the multiple pending fields can be set according to experience or actual needs, which is not limited in the embodiment of the present invention. In this case, the at least one target field may include all fields in the multiple pending fields that exist in the enterprise data to be corrected and in the corrected enterprise data.
[0067] Optionally, when matching the current enterprise data with the revised enterprise data set based on the information to be matched and obtaining the matching result of the current enterprise data, a target similarity algorithm can be used to calculate the similarity between the information to be matched and the similarity calculation information under each revised enterprise data in the revised enterprise data set, and determine the maximum similarity from the similarities between the information to be matched and the similarity calculation information under each revised enterprise data; if the maximum similarity is greater than a preset similarity threshold, the revised enterprise data corresponding to the maximum similarity is used as the revised enterprise data corresponding to the current enterprise data, thereby serving as the matching result of the current enterprise data; if the maximum similarity is less than or equal to the preset similarity threshold, it can be determined that there is no revised enterprise data in the revised enterprise data set that matches the current enterprise data, and thus the unmatched indication information is used as the matching result of the current enterprise data. Optionally, the preset similarity threshold can be set based on experience or according to actual needs, and the embodiments of the present invention are not limited to this. Optionally, the target similarity algorithm can be a Levenshtein distance (edit distance) algorithm (refers to the minimum number of editing operations required to convert one string into another between two strings), or a Jaro-Winkler algorithm (also known as the Jaro-Winkler string similarity algorithm, a string similarity calculation method), etc., and the embodiments of the present invention do not limit this. Optionally, when the target similarity algorithm is an algorithm such as Euclidean distance, and the information to be matched is a string, the electronic device can also perform vector representation on the information to be matched and the similarity calculation information under each corrected enterprise data in the corrected enterprise data set, and obtain the to-be-matched vector of the information to be matched and the similarity calculation vector of the similarity calculation information under each corrected enterprise data, thereby using the target similarity algorithm to calculate the similarity between the information to be matched and the similarity calculation information under each corrected enterprise data based on the similarity calculation vector of the to-be-matched vector and the similarity calculation information under each corrected enterprise data, and so on.
[0068] In an embodiment of the present invention, similarity calculation information for a corrected enterprise data may include field content of each target field in at least one target field in the corresponding corrected enterprise data.
[0069] It can be seen that the embodiment of the present invention can achieve fuzzy matching through similarity calculation; when the field content is a string and there are differences in the field content, the Levenshtein distance, Jaro-Winkler algorithm, etc. can be used to process the field differences to achieve similarity calculation; based on this, the embodiment of the present invention can achieve high-confidence matching, thereby obtaining a matching result with higher accuracy.
[0070] S203 , correcting the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data.
[0071] Based on this, the embodiment of the present invention can quickly implement the longitude and latitude correction of M matched enterprise data through the corrected enterprise data set, thereby improving the efficiency of longitude and latitude correction.
[0072] S204: Obtain at least one piece of latitude and longitude information to be verified corresponding to each piece of N unmatched enterprise data.
[0073] In an embodiment of the present invention, for any unmatched enterprise data among N unmatched enterprise data, the electronic device can determine the enterprise indication information from any unmatched enterprise data; optionally, the enterprise indication information can be the enterprise address in any unmatched enterprise data, or the enterprise name in any unmatched enterprise data, etc., and the embodiment of the present invention is not limited to this.
[0074] Based on this, the electronic device can call each of the multiple map interfaces respectively, and obtain at least one longitude and latitude information of any unmatched enterprise data under the corresponding map based on the enterprise indication information (that is, obtain at least one longitude and latitude information of any unmatched enterprise data under each map). One map interface is used to access one map; that is, the electronic device can obtain at least one longitude and latitude information of any unmatched enterprise data under each map from multiple maps, that is, obtain at least one longitude and latitude information of any unmatched enterprise data under any map from any map. Optionally, the multiple maps may include but are not limited to at least two of the following: AutoNavi Map, Baidu Map, and Tencent Map, etc., which are not limited in the embodiment of the present invention; accordingly, the electronic device can integrate multiple map interfaces to achieve the acquisition of at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data. Based on this, the embodiment of the present invention does not rely solely on a single map API, and can effectively avoid coverage limitations, thereby improving the accuracy of at least one longitude and latitude information to be verified corresponding to the unmatched enterprise data.
[0075] Optionally, the electronic device may also determine the latitude and longitude accuracy of each map among multiple maps (the latitude and longitude accuracy of a map may also be referred to as the map interface accuracy of the corresponding map), and determine the number of longitude and latitude obtained for each map based on the latitude and longitude accuracy of each map. Based on this, when calling each map interface among the multiple map interfaces respectively, and obtaining at least one longitude and latitude information of any unmatched enterprise data under the corresponding map based on the enterprise indication information, for any map among the multiple maps, the electronic device may call the map interface of any map, and based on the enterprise indication information, obtain longitude and latitude information of a number corresponding to the number of longitude and latitude obtained for any map, and use the obtained longitude and latitude information as the at least one longitude and latitude information of any unmatched enterprise data under any map, and then add the longitude and latitude information of a number corresponding to the number of longitude and latitude obtained for any map to the at least one longitude and latitude information of any unmatched enterprise data under any map. Optionally, the electronic device may invoke a map interface of any map and obtain multiple pieces of latitude and longitude information to be selected based on the enterprise indication information. The multiple pieces of latitude and longitude information to be selected may be sorted by accuracy, such as sorted in descending order of accuracy, so that a number of pieces of latitude and longitude information corresponding to any previous map can be selected from the multiple pieces of latitude and longitude information to be selected, thereby obtaining a number of pieces of latitude and longitude information corresponding to any previous map, and so on. Optionally, the number of pieces of latitude and longitude information to be selected in the multiple pieces of latitude and longitude information to be selected may be set based on experience, may be set based on actual needs, or may be preset by any map, and this is not limited in the embodiments of the present invention.
[0076] Optionally, the latitude and longitude accuracy of each map can be determined based on the historical enterprise latitude and longitude acquisition data of each map. The historical enterprise latitude and longitude acquisition data of a map may include the latitude and longitude information of each enterprise in the corresponding map among multiple enterprises acquired at historical time. Therefore, the latitude and longitude accuracy of the corresponding map can be determined based on the historical enterprise latitude and longitude acquisition data of a map and the precise latitude and longitude information of each enterprise. For example, the accurate number of enterprise latitude and longitude information under any map can be determined based on the historical enterprise latitude and longitude acquisition data of any map and the precise latitude and longitude information of each enterprise, so as to take the ratio between the accurate number of enterprise latitude and longitude information under any map and the total number of enterprises among multiple enterprises as the latitude and longitude accuracy of any map; or, the latitude and longitude accuracy of each map can be stored in the electronic device's own storage space. At this time, the latitude and longitude accuracy of each map can be directly obtained from its own storage space to determine the latitude and longitude accuracy of each map, and so on; the embodiments of the present invention are not limited to this. For example, the plurality of enterprises may include all enterprises indicated by the revised enterprise data in the revised enterprise data set. In this case, the revised enterprise data set may be used to determine the accuracy of the latitude and longitude of any map, and so on.
[0077] In one embodiment, the electronic device can assign weights to each map according to the latitude and longitude accuracy of each map to obtain the weight assignment results of each map (the higher the latitude and longitude accuracy, the higher the weight assignment result, and the weight assignment result of a map can also be called the weight of the map interface of the corresponding map), and can determine the latitude and longitude acquisition quantity corresponding to each map based on the weight assignment results of each map and the preset latitude and longitude acquisition quantity. For example, the rounded result of the multiplication result between the weight assignment result of each map and the preset latitude and longitude acquisition quantity can be used as the latitude and longitude acquisition quantity corresponding to the corresponding map, or the weight assignment results can be sorted from high to low. In order, multiple longitude and latitude acquisition numbers are sequentially used as the longitude and latitude acquisition numbers corresponding to each map, and multiple longitude and latitude acquisition numbers can be reduced in sequence (that is, multiple longitude and latitude acquisition numbers can be allocated in order from large to small, so that the largest longitude and latitude acquisition number is allocated to the map with the largest weight allocation result, and the smallest longitude and latitude acquisition number is allocated to the map with the smallest weight allocation result, etc.), and so on; based on this, when the weight allocation result of the first map is higher than the weight allocation result of the second map, the longitude and latitude acquisition number corresponding to the first map is greater than the longitude and latitude acquisition number corresponding to the second map, and the first map and the second map can be any two different maps among the multiple maps. Exemplarily, the electronic device can sequentially allocate multiple weights to each map in order from large to small in terms of longitude and latitude accuracy, and each weight in the multiple weights can be reduced in sequence, that is, a larger weight can be allocated to a map with a larger longitude and latitude accuracy, thereby obtaining a weight allocation result for each map, and so on; the embodiment of the present invention is not limited to this. Optionally, the preset longitude and latitude acquisition number can be set according to experience or according to actual needs, and the embodiment of the present invention is not limited to this. Optionally, the multiple numbers of longitude and latitude obtained and the multiple weights can be set according to experience or actual needs, or can be randomly generated within a corresponding range, and the embodiment of the present invention does not limit this. Based on this, the embodiment of the present invention can realize dynamic weight allocation, that is, dynamically adjust the priority of each map according to the accuracy of the longitude and latitude of each map, so that the number of longitude and latitude obtained corresponding to the map with a higher priority is larger, and more longitude and latitude information can be obtained from the map with a higher priority.
[0078] In another embodiment, the electronic device may also directly use the multiple longitude and latitude acquisition numbers as the longitude and latitude acquisition numbers corresponding to each map in order from large to small latitude and longitude accuracy, that is, the multiple longitude and latitude acquisition numbers may be allocated to maps with longitude and longitude accuracy from large to small in order from large to small, and so on; the embodiment of the present invention is not limited to this.
[0079] It can be seen that the embodiment of the present invention can obtain at least one latitude and longitude information of any unmatched enterprise data under the corresponding map from each map respectively, and thus obtain the optimal result of any unmatched enterprise data under the corresponding map; exemplarily, when the enterprise indication information is the enterprise address, address resolution redundancy can be achieved through the enterprise address, that is, a single address can call multiple map interfaces, thereby obtaining the optimal result under each map.
[0080] Correspondingly, the electronic device can add at least one longitude and latitude information of any unmatched enterprise data under each map to at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data, thereby obtaining at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data.
[0081] Based on this, the embodiment of the present invention can obtain more latitude and longitude information from a map with higher latitude and longitude accuracy (i.e., the higher the latitude and longitude accuracy, the greater the number of latitude and longitude obtained) to obtain more accurate latitude and longitude information to be verified corresponding to any unmatched enterprise data.
[0082] S205 : For any unmatched enterprise data among the N unmatched enterprise data, determine the boundary data of the boundary area corresponding to the unmatched enterprise data.
[0083] Optionally, the electronic device may also obtain target boundary data; based on this, boundary data of a boundary area corresponding to any unmatched enterprise data may be determined from the target boundary data. The boundary area corresponding to any unmatched enterprise data may be the boundary area to which the enterprise indicated by any unmatched enterprise data belongs. Optionally, when any unmatched enterprise data includes a region identifier, the boundary area corresponding to any unmatched enterprise data may be determined based on the region identifier in the unmatched enterprise data. A region identifier is used to indicate a boundary area. Alternatively, the boundary area to which the enterprise indicated by any unmatched enterprise data belongs may be determined from the enterprise boundary indicator data. The enterprise boundary indicator data may include the relationship between the enterprise and the boundary area, etc. In an embodiment of the present invention, the target boundary data may include boundary data of a boundary area to which each enterprise indicated by the to-be-corrected enterprise data in at least one to-be-corrected enterprise data belongs. Exemplarily, the target boundary data may include boundary data of a boundary area to which each enterprise in a target area (e.g., the entire country, etc.) belongs. Optionally, the target area may be any area, and this is not limited in this embodiment of the present invention. Optionally, a boundary area may be an administrative division result (i.e., an administrative district) or a park, etc., and this is not limited in this embodiment of the present invention.
[0084] Optionally, the target boundary data can be map boundary data in GeoJSON format (a format for encoding various geographic data structures) (which may be referred to as GeoJSON boundary data). Optionally, the target boundary data may be stored in the electronic device's own storage space. In this case, the target boundary data may be obtained from its own storage space; or, the electronic device may obtain a boundary data download link, and use the boundary data download link to download the target boundary data, and so on; this is not limited in the embodiment of the present invention. Optionally, the boundary data in the target boundary data may be obtained through ArcGIS (a professional geographic information software) and / or an open source platform, that is, the target boundary data may be constructed using administrative district division results, park boundary data, etc. obtained through ArcGIS and / or an open source platform. It can be seen that the embodiment of the present invention can combine open source tools with commercial APIs to balance accuracy and cost, thereby achieving longitude and latitude correction.
[0085] S206, based on the boundary data, determine whether at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data is located in the boundary area, so as to determine P longitude and latitude information located in the boundary area from the at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data, where P is a non-negative integer.
[0086] The above-mentioned P longitude and latitude information may also be referred to as the longitude and latitude information within the P boundary areas corresponding to any unmatched enterprise data.
[0087] Optionally, the electronic device may adopt a ray determination method (a geometric algorithm used to determine whether a point is inside a polygon, also referred to as the ray method), based on the boundary data of the boundary area corresponding to any unmatched enterprise data, to determine whether at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data is located in the boundary area (here refers to the boundary area corresponding to any unmatched enterprise data); wherein, the core idea of the ray determination method is: starting from the target point, emit a ray in any direction, count the number of intersections between the ray and the polygon edge, if the intersection happens to be at the vertex of the polygon, special processing is required (such as the edge where the polygon vertex is located is counted if it is on the left side of the ray, and not counted if it is on the right side of the ray), if the ray and the edge are collinear, the edge needs to be skipped (that is, the number of intersections on the edge is not counted). Optionally, for any latitude and longitude information to be verified in at least one latitude and longitude information to be verified corresponding to any unmatched enterprise data (one latitude and longitude information is a latitude and longitude point), the electronic device may adopt a ray determination method to determine whether any latitude and longitude information to be verified is located within the boundary area corresponding to any unmatched enterprise data based on the boundary data of the boundary area corresponding to any unmatched enterprise data. That is to say, the embodiment of the present invention may use GeoJSON boundary data and a ray algorithm to determine whether any latitude and longitude information to be verified is within the allowed boundary area (i.e., the boundary area corresponding to any unmatched enterprise data); specifically, the electronic device may adopt a ray determination method to determine any latitude and longitude information to be verified based on the boundary data of the boundary area corresponding to any unmatched enterprise data. Verify the number of intersections corresponding to the longitude and latitude information (i.e., the number of intersections obtained by emitting a ray in any direction from any longitude and latitude information to be verified). If the number of intersections corresponding to any longitude and latitude information to be verified is an odd number, it can be determined that any longitude and latitude information to be verified is located within the boundary area corresponding to any unmatched enterprise data. If the number of intersections corresponding to any longitude and latitude information to be verified is an even number, it can be determined that any longitude and latitude information to be verified is located outside the boundary area corresponding to any unmatched enterprise data (i.e., not within the boundary area corresponding to any unmatched enterprise data). Based on this, the embodiment of the present invention can determine whether any longitude and latitude information to be verified is located within the boundary area corresponding to any unmatched enterprise data based on the number of intersections corresponding to any longitude and latitude information to be verified.
[0088] For example, Figure 3As shown, several possible situations are illustrated by taking points A, B, C, D, E, and F as examples. The intersection of the ray emitted at point A and the polygon is a vertex of the polygon, and the edges where the intersections are located are all on the right side of the ray (not counted), then the number of intersections corresponding to point A is 0, and it is outside the polygon; the intersection of the ray emitted at point B and the polygon that is closer to point B is a vertex of the polygon, and the edges where the intersections are located are all on the right side of the ray, and the other intersection of the ray emitted at point B and the polygon is a vertex of the polygon, and one of the edges where the intersections are located is on the left side of the ray (counted) and the other is on the right side of the ray, then the number of intersections corresponding to point B is 1, and it is inside the polygon; the intersection of the ray emitted at point C and the polygon that is closest to point C is not a vertex of the polygon, and the other intersection It is a vertex of the polygon and the two sides where the intersection is located are both on the left side of the ray, then the number of intersections corresponding to point C is 3, and it is inside the polygon; the intersection of the ray emitted at point D and the polygon is a vertex of the polygon, and one side where the intersection is located is on the left side of the ray, and the other side where the intersection is located is on the right side of the ray, then the number of intersections corresponding to point D is 1, and it is inside the polygon; the intersection of the ray emitted at point E and the polygon is a vertex of the polygon, and the two sides where the intersection is located are both on the left side of the ray, then the number of intersections corresponding to point E is 2, and it is outside the polygon; the intersection of the ray emitted at point F and the polygon is a vertex of the polygon, and the ray is collinear with an edge (need to be skipped, that is, the overlapping edges are eliminated), and the other side where the intersection is located is on the left side of the ray, then the number of intersections corresponding to point F is 1, and it is inside the polygon, and so on.
[0089] Based on this, the embodiment of the present invention can eliminate abnormal longitude and latitude points that deviate from the corresponding boundary area from at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data (that is, eliminate all longitude and latitude information that is not located in the boundary area corresponding to any unmatched enterprise data from at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data), and accurately identify points outside the boundary area, thereby further realizing accurate screening of longitude and latitude information.
[0090] It can be seen that the embodiment of the present invention can combine GeoJSON boundary data with a landing point algorithm (such as the above-mentioned ray determination method) to achieve precise area verification, that is, it can use advanced GeoJSON format map boundary data, combined with a precise landing point algorithm, to perform strict geographic area verification on longitude and latitude points, thereby accurately marking any abnormal points that deviate from the preset geographic range (i.e., the boundary area to which they belong), thereby ensuring the spatial accuracy of the data; and, the embodiment of the present invention can improve the accuracy of area recognition through multi-source API fusion and GeoJSON boundary verification. As shown by experiments, the accuracy of area recognition can be greater than or equal to 90%.
[0091] S207: Based on the P pieces of longitude and latitude information, determine the target longitude and latitude information corresponding to any unmatched enterprise data.
[0092] Optionally, the electronic device can display P pieces of latitude and longitude information; illustratively, the P pieces of latitude and longitude information can be displayed via a GIS platform (a geographic information system, such as Leaflet, Mapbox, or other mapping libraries), thereby enabling online map visualization to display the possible latitude and longitude locations of the corresponding enterprise. Based on this, a user (such as a latitude and longitude correction reviewer) can manually review the P pieces of latitude and longitude information, thereby performing a latitude and longitude review and confirmation operation for the P pieces of latitude and longitude information. It should be noted that the embodiments of the present invention do not limit the specific implementation methods of the longitude and latitude review operation; for example, the user can drag any longitude and latitude point to update the coordinates in real time, and can perform a confirmation operation on the updated longitude and latitude point (such as selecting the updated longitude and latitude point and clicking or long pressing the confirmation button (i.e., the pressing time is greater than the preset pressing time threshold)), etc.), thereby realizing the longitude and latitude review confirmation operation. At this time, the longitude and latitude review confirmation operation can be used to indicate the confirmed longitude and latitude information (here, the selected updated longitude and latitude point); for another example, the user can select any longitude and latitude information from P longitude and latitude information and perform a confirmation operation, thereby realizing the longitude and latitude review confirmation operation. At this time, the longitude and latitude review confirmation operation can be used to indicate the confirmed longitude and latitude information (Here, any selected longitude and latitude information); for another example, when the user confirms that there is no precise longitude and latitude information of the enterprise indicated by any unmatched enterprise data among the P longitude and latitude information, and is unsure of the precise longitude and latitude information of the enterprise indicated by any unmatched enterprise data, or when the value of P is 0 (at this time, at least one longitude and latitude information to be verified corresponding to any unmatched enterprise data is all located outside the corresponding boundary area), the user can perform an abnormal marking operation on any unmatched enterprise data (i.e., perform abnormal marking on any unmatched enterprise data) to implement a longitude and latitude review and confirmation operation. At this time, an on-site verification task can be generated for the enterprise indicated by any unmatched enterprise data, that is, the longitude and latitude review and confirmation operation can be used to indicate the generation of an on-site verification task, etc. Optionally, the preset press time threshold can be set according to experience or actual needs, and the embodiment of the present invention is not limited to this.
[0093] Optionally, after obtaining the longitude and latitude information within the P boundary areas corresponding to each unmatched enterprise data, the electronic device may display the longitude and latitude information within the P boundary areas corresponding to each unmatched enterprise data; optionally, the electronic device may respond to a separate display operation for the longitude and latitude information within the P boundary areas corresponding to any unmatched enterprise data to only display the longitude and latitude information within the P boundary areas corresponding to any unmatched enterprise data; it should be noted that the embodiment of the present invention does not limit the specific implementation of the separate display operation. Optionally, the electronic device may also sequentially display the longitude and latitude information within the P boundary areas corresponding to each unmatched enterprise data, that is, after the user performs a latitude and longitude review and confirmation operation on the longitude and latitude information within the P boundary areas corresponding to one unmatched enterprise data, it may display the longitude and latitude information within the next P boundary areas corresponding to the next unmatched enterprise data, and so on; the embodiment of the present invention does not limit this.
[0094] Furthermore, the electronic device may respond to a latitude and longitude review and confirmation operation for P latitude and longitude information (here, the latitude and longitude information within the P boundary areas corresponding to any unmatched enterprise data), and based on the review and confirmation indication information indicated by the latitude and longitude review and confirmation operation, determine the target latitude and longitude information corresponding to any unmatched enterprise data. Optionally, if the review and confirmation indication information indicated by the latitude and longitude review and confirmation operation is a latitude and longitude information (such as the confirmed latitude and longitude information mentioned above), the review and confirmation indication information indicated by the latitude and longitude review and confirmation operation may be used as the target latitude and longitude information corresponding to any unmatched enterprise data; if the review and confirmation indication information indicated by the latitude and longitude review and confirmation operation is an abnormality indicator (which can be used to indicate the generation of an on-site verification task), when an on-site positioning confirmation operation is detected, the latitude and longitude information indicated by the on-site positioning confirmation operation (here, the on-site verification latitude and longitude information) may be used as the target latitude and longitude information corresponding to any unmatched enterprise data, and so on. Optionally, the abnormality indicator may be set according to experience or actual needs, and the embodiment of the present invention is not limited to this.
[0095] It should be noted that the embodiments of the present invention do not limit the specific implementation methods of the on-site positioning confirmation operation; illustratively, the on-site verification personnel can take photos and upload them on-site (which may include on-site verification of longitude and latitude information, thereby associating enterprises with abnormal longitude and latitude points or unmatched enterprise data, forming a complete data chain, and making the task closed-loop), thereby realizing the on-site positioning confirmation operation, so that the electronic device detects the on-site positioning confirmation operation, or the longitude and latitude correction reviewer can perform a confirmation operation based on the on-site verification longitude and latitude information corresponding to any unmatched enterprise data uploaded by the on-site verification personnel (that is, manually review the on-site verification longitude and latitude information again) to realize the on-site positioning confirmation operation, etc. Based on this, the embodiments of the present invention can perform real-time positioning for enterprises with abnormal longitude and latitude points, that is, manually call the GPS (Global Positioning System) module of the device on-site to obtain high-precision coordinates (that is, on-site verification of longitude and latitude information).
[0096] Based on this, the embodiments of the present invention can implement a modular design to support the implementation of new data sources (i.e., obtaining at least one enterprise data to be corrected), verification rules (i.e., data cleaning), and regional boundaries (i.e., longitude and latitude landing point judgment verification), etc., so as to support the longitude and latitude correction of a large amount of data and ensure the timeliness is met, such as supporting enterprise data to be corrected with a data volume of approximately 20,000, etc.
[0097] From the above, we can see that Figure 4As shown, after obtaining at least one enterprise data to be corrected, the embodiment of the present invention can perform data cleaning on the at least one enterprise data to be corrected, and then intelligently match the corrected data (i.e., perform data matching with the corrected enterprise data set); for any enterprise data to be corrected in the at least one enterprise data to be corrected, if any enterprise data to be corrected matches the corrected enterprise data, the corresponding enterprise precise longitude and latitude information is obtained; if any enterprise data to be corrected does not match the corrected enterprise data, the integrated multiple map interfaces can be called to obtain the corresponding at least one longitude and latitude information to be verified, so as to determine the longitude and latitude landing point. The determination is to determine the latitude and longitude information located in the corresponding boundary area from the corresponding at least one latitude and longitude information to be verified, and then respond to the latitude and longitude review operation after manual review; if the manual review is passed (that is, the review confirmation indication information indicated by the latitude and longitude review operation is a latitude and longitude information), the corresponding enterprise's precise latitude and longitude information can be obtained; if the manual review is not passed (that is, the review confirmation indication information indicated by the latitude and longitude review confirmation operation is an abnormal mark), then after manual real-time positioning through a GPS device, respond to the on-site positioning confirmation operation, thereby obtaining the corresponding enterprise's precise latitude and longitude information, and so on. For example, assuming that the at least one enterprise data to be corrected includes the enterprise data to be corrected of each enterprise in at least one enterprise in any area, and the latitude and longitude information in the at least one enterprise data to be corrected can be as follows Figure 5 As shown, at this time, there is a portion of the enterprise data to be corrected whose latitude and longitude information is outside the corresponding boundary area in at least one enterprise data to be corrected; then after the latitude and longitude correction method proposed in the embodiment of the present invention is used to correct the latitude and longitude of at least one enterprise data to be corrected, the latitude and longitude information in the latitude and longitude correction result can be as follows: Figure 6 As shown, at this time, the latitude and longitude information in the latitude and longitude correction result may all be located within the corresponding boundary area, and so on.
[0098] S208: Use the target longitude and latitude information corresponding to each unmatched enterprise data to correct the longitude and latitude information in the corresponding unmatched enterprise data.
[0099] In an embodiment of the present invention, after obtaining at least one enterprise data to be corrected and a set of corrected enterprise data, data matching can be performed on at least one enterprise data to be corrected and a set of corrected enterprise data to obtain corrected enterprise data corresponding to each matched enterprise data in M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected; based on this, the longitude and latitude information in the corresponding matched enterprise data can be corrected based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data. Furthermore, at least one longitude and latitude information to be verified corresponding to each of the N unmatched enterprise data can be obtained respectively; for any of the N unmatched enterprise data, the boundary data of the boundary area corresponding to any of the unmatched enterprise data can be determined; and based on the boundary data, it is determined whether the at least one longitude and latitude information to be verified corresponding to any of the unmatched enterprise data is located within the boundary area, so as to determine P longitude and latitude information located within the boundary area from the at least one longitude and latitude information to be verified corresponding to any of the unmatched enterprise data, where P is a non-negative integer; accordingly, the target longitude and latitude information corresponding to any of the unmatched enterprise data can be determined based on the P longitude and latitude information. Based on this, the target longitude and latitude information corresponding to each of the unmatched enterprise data can be used to correct the longitude and latitude information in the corresponding unmatched enterprise data. It can be seen that the embodiment of the present invention can integrate the geocoding API to determine the at least one longitude and latitude information to be verified corresponding to each of the unmatched enterprise data, and can determine the target longitude and latitude information corresponding to each of the unmatched enterprise data through GeoJSON region verification, etc., thereby conveniently implementing longitude and latitude correction to improve the efficiency of longitude and latitude correction.
[0100] Based on the description of the related embodiments of the latitude and longitude correction method above, the embodiment of the present invention further proposes a latitude and longitude correction device, which can be a computer program (including program code) running in an electronic device; Figure 7 As shown, the latitude and longitude correction device may include an acquisition unit 701 and a processing unit 702. The latitude and longitude correction device may execute Figure 1 or Figure 2 The latitude and longitude correction method shown, that is, the latitude and longitude correction device can run the above units:
[0101] An acquisition unit 701 is configured to acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data;
[0102] Processing unit 702 is configured to perform data matching on the at least one enterprise data to be corrected and the set of corrected enterprise data to obtain corrected enterprise data corresponding to each matched enterprise data in M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected;
[0103] The processing unit 702 is further configured to correct the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data;
[0104] The acquisition unit 701 is further configured to respectively acquire at least one piece of latitude and longitude information to be verified corresponding to each piece of the N unmatched enterprise data;
[0105] The processing unit 702 is also used to determine the target longitude and latitude information corresponding to the corresponding unmatched enterprise data based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, and use the target longitude and latitude information corresponding to each unmatched enterprise data to correct the longitude and latitude information in the corresponding unmatched enterprise data.
[0106] In one embodiment, when the processing unit 702 performs data matching on the at least one enterprise data to be corrected and the corrected enterprise data set to obtain the corrected enterprise data corresponding to each matched enterprise data in the M matched enterprise data and the N unmatched enterprise data, it may be specifically configured to:
[0107] traversing each enterprise data to be revised in the at least one enterprise data to be revised, and taking the currently traversed enterprise data to be revised as the current enterprise data;
[0108] Performing data matching on the current enterprise data and the revised enterprise data set to obtain a matching result of the current enterprise data;
[0109] If the matching result is the corrected enterprise data corresponding to the current enterprise data, the current enterprise data is regarded as matched enterprise data;
[0110] If the matching result is not the corrected enterprise data corresponding to the current enterprise data, the current enterprise data is treated as an unmatched enterprise data;
[0111] After traversing each of the at least one enterprise data to be corrected, the corrected enterprise data corresponding to each of the M matched enterprise data and N unmatched enterprise data are obtained.
[0112] In another embodiment, when the processing unit 702 performs data matching on the current enterprise data and the revised enterprise data set to obtain a matching result of the current enterprise data, it may be specifically configured to:
[0113] If the current enterprise data includes an enterprise identifier, then based on the enterprise identifier in the current enterprise data, performing data matching on the current enterprise data and the revised enterprise data set to obtain a matching result for the current enterprise data;
[0114] If the current enterprise data does not include an enterprise identifier, at least one target field is determined, and information to be matched including the field contents of each target field in the at least one target field is determined from the current enterprise data, so as to perform data matching between the current enterprise data and the revised enterprise data set based on the information to be matched, and obtain a matching result of the current enterprise data.
[0115] In another embodiment, when respectively acquiring at least one to-be-verified longitude and latitude information corresponding to each of the N unmatched enterprise data, the acquiring unit 701 may be specifically configured to:
[0116] For any unmatched enterprise data among the N unmatched enterprise data, determine enterprise indication information from the any unmatched enterprise data,
[0117] Calling each of the plurality of map interfaces respectively, and obtaining at least one latitude and longitude information of any unmatched enterprise data under a corresponding map based on the enterprise indication information, wherein one map interface is used to access one map;
[0118] The at least one longitude and latitude information of any unmatched enterprise data under each map is added to the at least one longitude and latitude information to be verified corresponding to the any unmatched enterprise data.
[0119] In another implementation, the processing unit 702 may further be configured to:
[0120] Determining the latitude and longitude accuracy of each map among the multiple maps, and determining the number of longitude and latitude acquisitions corresponding to each map based on the latitude and longitude accuracy of each map;
[0121] When the acquisition unit 701 calls each of the plurality of map interfaces respectively and acquires at least one longitude and latitude information of the unmatched enterprise data under the corresponding map based on the enterprise indication information, it can be specifically used to:
[0122] For any of the multiple maps, call the map interface of any of the maps, and based on the enterprise indication information, obtain the number of longitude and latitude information corresponding to the longitude and latitude of any of the maps, and use the obtained longitude and latitude information as at least one longitude and latitude information of any unmatched enterprise data under any of the maps.
[0123] In another embodiment, when the processing unit 702 determines the target longitude and latitude information corresponding to the corresponding unmatched enterprise data based on the at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, it can be specifically configured to:
[0124] For any unmatched enterprise data among the N unmatched enterprise data, determining boundary data of a boundary area corresponding to the any unmatched enterprise data;
[0125] Based on the boundary data, determining whether at least one piece of latitude and longitude information to be verified corresponding to any unmatched enterprise data is located within the boundary area, so as to determine P pieces of latitude and longitude information located within the boundary area from the at least one piece of latitude and longitude information to be verified corresponding to any unmatched enterprise data, where P is a non-negative integer;
[0126] Based on the P pieces of longitude and latitude information, the target longitude and latitude information corresponding to any unmatched enterprise data is determined.
[0127] In another embodiment, when the processing unit 702 determines the target longitude and latitude information corresponding to any unmatched enterprise data based on the P longitude and latitude information, it may be specifically configured to:
[0128] Display the P latitude and longitude information;
[0129] In response to a latitude and longitude review and confirmation operation on the P latitude and longitude information, and based on review and confirmation indication information indicated by the latitude and longitude review and confirmation operation, target latitude and longitude information corresponding to any unmatched enterprise data is determined.
[0130] According to one embodiment of the present invention, Figure 7 Each unit in the latitude and longitude correction device shown can be individually or completely combined into one or several other units to form a structure, or one (or some) of the units can be further divided into multiple functionally smaller units to form a structure, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In actual applications, the functions of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, any latitude and longitude correction device can also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0131] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory (RAM), a read-only memory (ROM), and other processing elements and storage elements. Figure 1 or Figure 2 A computer program (including program code) for each step involved in the corresponding method shown in Figure 7The latitude and longitude correction device shown in and the latitude and longitude correction method of the embodiment of the present invention are implemented. The computer program can be recorded on a computer storage medium, for example, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.
[0132] In an embodiment of the present invention, after obtaining at least one piece of enterprise data to be corrected and a set of corrected enterprise data, data matching can be performed on the at least one piece of enterprise data to be corrected and the set of corrected enterprise data to obtain corrected enterprise data corresponding to each piece of matched enterprise data and N pieces of unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected. Then, based on the longitude and latitude information in the corrected enterprise data corresponding to each piece of matched enterprise data, the longitude and latitude information in the corresponding matched enterprise data can be corrected; and at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data in the N pieces of unmatched enterprise data can be obtained. Based on this, based on the at least one piece of longitude and latitude information to be verified corresponding to each piece of unmatched enterprise data, the target longitude and latitude information corresponding to the corresponding unmatched enterprise data can be determined, and the target longitude and latitude information corresponding to each piece of unmatched enterprise data can be used to correct the longitude and latitude information in the corresponding unmatched enterprise data. It can be seen that the embodiment of the present invention can correct the longitude and latitude of M matched enterprise data through the corrected enterprise data set, and correct the longitude and latitude of N unmatched enterprise data through at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data in the N unmatched enterprise data, thereby conveniently performing longitude and latitude correction to effectively improve the efficiency of longitude and latitude correction; and, at least one enterprise data to be corrected may include a large amount of data (that is, the amount of data of the enterprise data to be corrected may be large), so the embodiment of the present invention can ensure timeliness when faced with a large amount of enterprise data to be corrected that needs to be processed.
[0133] Based on the description of the above method embodiment and apparatus embodiment, the exemplary embodiments of the present invention further provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, and when executed by the at least one processor, the computer program causes the electronic device to perform a method according to an embodiment of the present invention.
[0134] Exemplary embodiments of the present invention further provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.
[0135] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is configured to cause the computer to perform a method according to an embodiment of the present invention.
[0136] refer to Figure 8 , a block diagram of an electronic device 800 that can serve as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0137] like Figure 8 As shown, the electronic device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0138] Multiple components within electronic device 800 are connected to I / O interface 805, including an input unit 806, an output unit 807, a storage unit 808, and a communication unit 809. Input unit 806 can be any type of device capable of inputting information into electronic device 800. Input unit 806 can receive input numeric or character information and generate key input signals related to user settings and / or function control of the electronic device. Output unit 807 can be any type of device capable of presenting information and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 808 may include, but is not limited to, a magnetic disk or an optical disk. Communication unit 809 allows electronic device 800 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0139] The computing unit 801 can be various general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above. For example, in some embodiments, the latitude and longitude correction method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 800 via the ROM 802 and / or the communication unit 809. In some embodiments, the computing unit 801 can be configured to perform the latitude and longitude correction method by any other appropriate means (e.g., by means of firmware).
[0140] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0141] In the context of the present invention, machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0142] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., a magnetic disk, an optical disk, a memory, a programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0143] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0144] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0145] Computer systems may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The client and server relationship arises through computer programs running on the respective computers and having a client-server relationship to each other.
[0146] Furthermore, it should be understood that the above disclosure is only a preferred embodiment of the present invention and certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A latitude and longitude correction method, characterized in that: include: Acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data; Performing data matching on the at least one enterprise data to be revised with the revised enterprise data set to obtain revised enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be revised; Correcting the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data; Respectively obtaining at least one piece of latitude and longitude information to be verified corresponding to each piece of unmatched enterprise data in the N unmatched enterprise data; Based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, the target longitude and latitude information corresponding to the corresponding unmatched enterprise data is determined, and the longitude and latitude information in the corresponding unmatched enterprise data is corrected using the target longitude and latitude information corresponding to each unmatched enterprise data.
2. The method according to claim 1, characterized in that The step of performing data matching on the at least one enterprise data to be corrected and the corrected enterprise data set to obtain corrected enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data includes: traversing each enterprise data to be revised in the at least one enterprise data to be revised, and taking the currently traversed enterprise data to be revised as the current enterprise data; Performing data matching on the current enterprise data and the revised enterprise data set to obtain a matching result of the current enterprise data; If the matching result is the corrected enterprise data corresponding to the current enterprise data, the current enterprise data is regarded as matched enterprise data; If the matching result is not the corrected enterprise data corresponding to the current enterprise data, the current enterprise data is treated as an unmatched enterprise data; After traversing each of the at least one enterprise data to be corrected, the corrected enterprise data corresponding to each of the M matched enterprise data and N unmatched enterprise data are obtained.
3. The method according to claim 2, characterized in that The performing data matching on the current enterprise data and the revised enterprise data set to obtain a matching result of the current enterprise data includes: If the current enterprise data includes an enterprise identifier, then based on the enterprise identifier in the current enterprise data, performing data matching on the current enterprise data and the revised enterprise data set to obtain a matching result for the current enterprise data; If the current enterprise data does not include an enterprise identifier, at least one target field is determined, and information to be matched including the field contents of each target field in the at least one target field is determined from the current enterprise data, so as to perform data matching between the current enterprise data and the revised enterprise data set based on the information to be matched, and obtain a matching result of the current enterprise data.
4. The method according to any one of claims 1 to 3, characterized in that The step of respectively obtaining at least one piece of latitude and longitude information to be verified corresponding to each piece of the N unmatched enterprise data includes: For any unmatched enterprise data among the N unmatched enterprise data, determine enterprise indication information from the any unmatched enterprise data, Calling each of the plurality of map interfaces respectively, and obtaining at least one latitude and longitude information of any unmatched enterprise data under a corresponding map based on the enterprise indication information, wherein one map interface is used to access one map; The at least one longitude and latitude information of any unmatched enterprise data under each map is added to the at least one longitude and latitude information to be verified corresponding to the any unmatched enterprise data.
5. The method according to claim 4, characterized in that The method further comprises: Determining the latitude and longitude accuracy of each map among the multiple maps, and determining the number of longitude and latitude acquisitions corresponding to each map based on the latitude and longitude accuracy of each map; The calling each of the plurality of map interfaces respectively, and obtaining at least one latitude and longitude information of any unmatched enterprise data under a corresponding map based on the enterprise indication information, includes: For any of the multiple maps, call the map interface of any of the maps, and based on the enterprise indication information, obtain the number of longitude and latitude information corresponding to the longitude and latitude of any of the maps, and use the obtained longitude and latitude information as at least one longitude and latitude information of any unmatched enterprise data under any of the maps.
6. The method according to any one of claims 1 to 3, characterized in that The determining target longitude and latitude information corresponding to the corresponding unmatched enterprise data based on the at least one to-be-verified longitude and latitude information corresponding to each unmatched enterprise data includes: For any unmatched enterprise data among the N unmatched enterprise data, determining boundary data of a boundary area corresponding to the any unmatched enterprise data; Based on the boundary data, determining whether at least one piece of latitude and longitude information to be verified corresponding to any unmatched enterprise data is located within the boundary area, so as to determine P pieces of latitude and longitude information located within the boundary area from the at least one piece of latitude and longitude information to be verified corresponding to any unmatched enterprise data, where P is a non-negative integer; Based on the P pieces of longitude and latitude information, the target longitude and latitude information corresponding to any unmatched enterprise data is determined.
7. The method according to claim 6, characterized in that The determining, based on the P pieces of latitude and longitude information, target latitude and longitude information corresponding to any unmatched enterprise data includes: Display the P latitude and longitude information; In response to a latitude and longitude review and confirmation operation on the P latitude and longitude information, and based on review and confirmation indication information indicated by the latitude and longitude review and confirmation operation, target latitude and longitude information corresponding to any unmatched enterprise data is determined.
8. A latitude and longitude correction device, characterized in that: The device comprises: an acquiring unit, configured to acquire at least one piece of enterprise data to be revised, and acquire a set of revised enterprise data; a processing unit configured to perform data matching on the at least one enterprise data to be corrected and the set of corrected enterprise data, to obtain corrected enterprise data corresponding to each matched enterprise data in the M matched enterprise data and N unmatched enterprise data, where the sum of M and N is the number of enterprise data to be corrected; The processing unit is further configured to correct the longitude and latitude information in the corresponding matched enterprise data based on the longitude and latitude information in the corrected enterprise data corresponding to each matched enterprise data; The acquisition unit is further configured to respectively acquire at least one piece of latitude and longitude information to be verified corresponding to each piece of the N unmatched enterprise data; The processing unit is also used to determine the target longitude and latitude information corresponding to the corresponding unmatched enterprise data based on at least one longitude and latitude information to be verified corresponding to each unmatched enterprise data, and use the target longitude and latitude information corresponding to each unmatched enterprise data to correct the longitude and latitude information in the corresponding unmatched enterprise data.
9. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.