Address information query methods, devices, electronic equipment and storage media
By querying and storing address information in the vehicle terminal map database, the problems of low address information conversion accuracy and frequent external calls are solved, achieving more efficient address information query and reducing data parsing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LION AUTOMOTIVE TECH NANJING CO LTD
- Filing Date
- 2022-09-29
- Publication Date
- 2026-06-02
AI Technical Summary
In existing technologies, address information conversion accuracy is low and the range is limited, while frequent external calls lead to high data parsing costs.
The system queries the latitude and longitude coordinates in the vehicle terminal's preset map database to determine if the preset conditions are met. If not, it calls the geocoding parsing function, stores the externally called data, and updates the database to reduce the number of calls.
It improves the accuracy and scope of address information queries and reduces data parsing costs.
Smart Images

Figure CN115544088B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of address resolution technology, and in particular to an address information query method, apparatus, electronic device and storage medium. Background Technology
[0002] With the continuous improvement of vehicle-to-everything (V2X) data acquisition technologies, sensing and data capture technologies are widely used in transportation, and the acquired map data has numerous applications in business analysis and driving trajectory mapping. However, the map data acquired through sensing and data capture technologies consists of raw latitude and longitude geographic coordinates. It is necessary to convert these coordinates into actual text-based address information to enable further analysis and application for V2X business prediction, thereby maximizing the benefits of data processing.
[0003] In related technologies, the methods for converting latitude and longitude geographic coordinate information into actual text-based address information mainly include the following two types: matching and calculating the obtained latitude and longitude geographic coordinate information with the national geographic latitude and longitude information database, and calling the API (Application Programming Interface) of external map service providers to perform geographic information reverse encoding.
[0004] However, the two methods mentioned above can only refine the converted text address information to the three levels of province, city, and district, which limits business applications and results in poor accuracy. At the same time, this external call is a paid call and has a high data parsing cost. Summary of the Invention
[0005] This application provides an address information query method, apparatus, electronic device, and storage medium to solve the problems of low accuracy and limited scope of information retrieval in related technologies, as well as the high cost of data parsing caused by multiple external calls.
[0006] The first aspect of this application provides a method for querying address information, including the following steps:
[0007] Collect the latitude and longitude coordinates of the target data;
[0008] Using the latitude and longitude coordinates as an index, a preset map database stored in the vehicle terminal is queried to obtain matching results, and it is determined whether the matching results meet preset optimal conditions; and
[0009] If the preset optimal conditions are met, the matching result is taken as the optimal matching result, and the first address information corresponding to the target data is determined based on the optimal matching result; otherwise, the preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data.
[0010] According to one embodiment of this application, when the preset optimal condition is not met, the method further includes:
[0011] The latitude and longitude coordinates and the second address information are stored in the preset map database.
[0012] According to one embodiment of this application, the step of querying a preset map database stored in the vehicle terminal using the latitude and longitude coordinate information as an index to obtain a matching result, and determining whether the matching result meets a preset optimal condition, includes:
[0013] The identifier of the latitude and longitude coordinate information is parsed;
[0014] Calculate the distance between at least one historical address information corresponding to the identifier in the preset map database and the latitude and longitude coordinate information;
[0015] At least one matching result is determined based on the distance to each historical address information;
[0016] Determine whether the distance of the at least one matching result is greater than a preset threshold;
[0017] If it is greater than the preset threshold, then the preset optimal condition is determined to be met.
[0018] According to one embodiment of this application, before calling the preset query software to perform geographic inverse encoding parsing of the latitude and longitude coordinate information, the method further includes:
[0019] An input file is generated based on the latitude and longitude coordinates and the file requirements of the preset query software.
[0020] According to one embodiment of this application, the above-described address information query method further includes:
[0021] The data in the preset map database is updated every preset time interval or upon receiving an update command.
[0022] According to the address information query method of this application embodiment, the latitude and longitude coordinates of the target data are collected and used as an index to query a preset map database stored in the vehicle terminal to obtain a matching result. If the matching result meets the preset optimal conditions, it is taken as the optimal matching result, and the first address information corresponding to the target data is determined. Otherwise, preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data. This solves the problems of low information retrieval accuracy and limited range in related technologies, as well as the high data parsing cost caused by multiple external calls. By making the latitude and longitude coordinate information retrieval intelligent and continuously storing the data from external calls, the number of calls is reduced, thereby improving the matching algorithm and accuracy of the system and reducing the data parsing cost.
[0023] A second aspect of this application provides an address information query device, comprising:
[0024] The acquisition module is used to collect the latitude and longitude coordinates of the target data;
[0025] The query module is used to query a preset map database stored in the vehicle terminal using the latitude and longitude coordinates as an index, obtain matching results, and determine whether the matching results meet preset optimal conditions; and
[0026] The matching module is used to take the matching result as the optimal matching result if the preset optimal condition is met, and determine the first address information corresponding to the target data based on the optimal matching result; otherwise, it calls the preset query software to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data.
[0027] According to one embodiment of this application, when the preset optimal condition is not met, it is further used for:
[0028] The latitude and longitude coordinates and the second address information are stored in the preset map database.
[0029] According to one embodiment of this application, the query module is specifically used for:
[0030] The identifier of the latitude and longitude coordinate information is parsed;
[0031] Calculate the distance between at least one historical address information corresponding to the identifier in the preset map database and the latitude and longitude coordinate information;
[0032] At least one matching result is determined based on the distance to each historical address information;
[0033] Determine whether the distance of the at least one matching result is greater than a preset threshold;
[0034] If it is greater than the preset threshold, then the preset optimal condition is determined to be met.
[0035] According to one embodiment of this application, before calling the preset query software to perform geographic inverse encoding parsing of the latitude and longitude coordinate information, the matching module is further configured to:
[0036] An input file is generated based on the latitude and longitude coordinates and the file requirements of the preset query software.
[0037] According to one embodiment of this application, the above-described address information query device is further used for:
[0038] The data in the preset map database is updated every preset time interval or upon receiving an update command.
[0039] According to the address information query device of this application embodiment, the latitude and longitude coordinates of the target data are collected and used as an index to query a preset map database stored in the vehicle terminal to obtain a matching result. If the matching result meets the preset optimal conditions, it is taken as the optimal matching result, and the first address information corresponding to the target data is determined. Otherwise, preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data. This solves the problems of low information retrieval accuracy and limited range in related technologies, as well as the high data parsing cost caused by multiple external calls. By making the latitude and longitude coordinate information retrieval intelligent and continuously storing the data from external calls to reduce the number of calls, the matching algorithm and accuracy of the system are improved, and the data parsing cost is reduced.
[0040] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the address information query method as described in the above embodiments.
[0041] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the address information query method as described in the above embodiments.
[0042] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0043] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0044] Figure 1This is a flowchart illustrating an address information query method provided according to an embodiment of this application;
[0045] Figure 2 This is a flowchart illustrating address information retrieval according to one embodiment of this application;
[0046] Figure 3 This is a flowchart of a query module 1, a data parsing module, and a query module 11 according to an embodiment of this application;
[0047] Figure 4 A flowchart of data in a calculation module according to one embodiment of this application;
[0048] Figure 5 This is an example diagram of an address information query device according to an embodiment of this application;
[0049] Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0050] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0051] The following description, with reference to the accompanying drawings, outlines an address information query method, apparatus, electronic device, and storage medium according to embodiments of this application. Addressing the issues of low accuracy and limited scope of information retrieval in related technologies mentioned in the background section, as well as the high data parsing costs resulting from multiple external calls, this application provides an address information query method. In this method, latitude and longitude coordinates of target data are collected and used as an index to query a preset map database stored in a vehicle terminal to obtain a matching result. If the matching result meets preset optimal conditions, it is taken as the optimal matching result, and the first address information corresponding to the target data is determined. Otherwise, preset query software is invoked to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data. This solves the problems of low accuracy and limited scope of information retrieval in related technologies, as well as the high data parsing costs caused by multiple external calls. By intelligentizing the retrieval of latitude and longitude coordinate information and continuously storing data from external calls to reduce the number of calls, the matching algorithm and accuracy of the system are improved, and the data parsing cost is reduced.
[0052] Before introducing the embodiments of this application, let me first introduce the relevant system modules involved in the embodiments of this application, namely: input module, data query module 1, data parsing module, data storage module 2, data query module 11, data storage module 21, data recalculation module, and data update module.
[0053] The input module is used to read the formatted text input, which mainly includes the latitude and longitude two-dimensional coordinate information input and concatenate it into a string, and then reasonably divide it into small batch concurrent queries.
[0054] Data query module 1 is used to first query the historical data of the VIN (Vehicle Identification Number). If there is no historical address information for the VIN, it will then search the local map database. If there is no data in the local map database, it will then call the external map API data interface for paid parsing.
[0055] The data parsing module is used to classify and sort the result data returned by the external map according to the algorithm rules of continuous iterative optimization.
[0056] Data storage module 2 is used to store sorted data into a preset map database and store the metadata of the query to ensure that historical query analysis is traceable.
[0057] The data query module 11 is used to parse the location of the VIN code's driving geographic information for the past 15 days. If there is no optimal matching result, it will first query the preset map database. If there is no data, it will then call the external map paid API data interface for precise query.
[0058] The data storage module 21 is used to store the retrieved geo-encoded information into a local database and store the query metadata to ensure that historical query analysis is traceable.
[0059] The data recalculation module is used to perform calculations on locally stored data. Whenever the algorithm model is updated and iterated, the historical data is recalculated to continuously improve the matching degree.
[0060] The data update module is used to periodically call external map APIs to update the preset map database according to a custom time strategy, thereby ensuring the accuracy and timeliness of local data.
[0061] Specifically, Figure 1 This is a flowchart illustrating an address information query method provided in an embodiment of this application.
[0062] like Figure 1 As shown, the address information query method includes the following steps:
[0063] In step S101, the latitude and longitude coordinates of the target data are collected.
[0064] Specifically, this application embodiment is based on database technology. First, the vehicle's T-BOX (Telematics-BOX, vehicle networking system) performs a full-text query in a preset map database to obtain the latitude and longitude coordinates of the target data. The preset map database is the vehicle terminal's map database, and the latitude and longitude coordinates are a two-dimensional list of coordinates.
[0065] Furthermore, such as Figure 2 As shown in the embodiment of this application, after collecting the latitude and longitude coordinate information of the target data, it is necessary to perform data preprocessing on the latitude and longitude coordinate information, namely data cleaning, including removing duplicate records, converting standard coordinate system latitude and longitude to Mars coordinate system latitude and longitude, and processing the two-dimensional coordinates into strings, etc.
[0066] In this application, the standard coordinate system latitude and longitude can adopt the WGS84 coordinate system. For example, GPS (Global Positioning System) positioning devices and hardware all use this standard coordinate system. The Mars coordinate system latitude and longitude can adopt the GCJ-02 coordinate system of the State Bureau of Surveying and Mapping. For example, Gaode Map, Tencent Map, and Aowei Interactive Map use this coordinate system.
[0067] In step S102, the latitude and longitude coordinates are used as an index to query the preset map database stored in the vehicle terminal to obtain the matching result, and it is determined whether the matching result meets the preset optimal conditions.
[0068] Furthermore, in some embodiments, using latitude and longitude coordinate information as an index, a preset map database stored in the vehicle terminal is queried to obtain matching results, and it is determined whether the matching results meet preset optimal conditions, including: parsing the identifier of latitude and longitude coordinate information; calculating the distance between at least one historical address information corresponding to the identifier in the preset map database and the latitude and longitude coordinate information; determining at least one matching result based on the distance between each historical address information; determining whether the distance of at least one matching result is greater than a preset threshold; if it is greater than the preset threshold, it is determined that the preset optimal conditions are met.
[0069] The preset threshold can be a threshold set by relevant technical personnel or a threshold obtained through multiple computer simulations; no specific limitation is made here.
[0070] Specifically, in this embodiment, based on the latitude and longitude coordinate information of the target data collected above, the identifier of the latitude and longitude coordinate information, namely the VIN code, is parsed. That is, it is necessary to query whether the historical address information of the VIN code corresponding to the latitude and longitude coordinate information of the target data exists in the preset map database. If the VIN code exists, the distance between at least one historical address information corresponding to the VIN code in the preset map database and the latitude and longitude coordinate information is further calculated, and at least one matching result is determined based on the distance between the latitude and longitude coordinate information and each historical address information. If the distance of the obtained matching result is greater than a preset threshold, it is determined that the latitude and longitude coordinate information and the corresponding historical address information meet the preset optimal conditions.
[0071] In step S103, if the preset optimal conditions are met, the matching result is taken as the optimal matching result, and the first address information corresponding to the target data is determined based on the optimal matching result; otherwise, the preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data.
[0072] The preset query software can be Amap, Baidu Map, Tencent Map, or other query software with map training functions, and no specific restrictions are made here.
[0073] Specifically, if the distance between the latitude and longitude coordinates information and each historical address information in this application embodiment meets the preset optimal conditions, then the matching result that meets the preset optimal conditions is selected as the optimal matching result, and then the first address information corresponding to the optimal matching result is returned, that is, the historical address information corresponding to the optimal VIN code found.
[0074] Furthermore, in some embodiments, when the preset optimal conditions are not met, the method further includes: storing the latitude and longitude coordinate information and the second address information in a preset map database.
[0075] Specifically, if the VIN code corresponding to the latitude and longitude coordinates of the target data in the preset map database does not exist, or if no matching result satisfying the preset optimal conditions is found based on the distance between the latitude and longitude coordinates and each historical address information, then a latitude and longitude coordinate query needs to be performed in the full-text map database. If a matching result satisfying the preset optimal conditions is found, the historical address information corresponding to the optimal VIN code is returned. If no matching result satisfying the preset optimal conditions is found, the preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data, and then it is stored in the preset map database.
[0076] Specifically, if no matching result meeting the preset optimal conditions is found in this embodiment, it is necessary to additionally call preset query software to search for the latitude and longitude coordinates of the target data. When searching for latitude and longitude coordinates using the preset query software, an input file needs to be generated according to the latitude and longitude coordinates and the file requirements of the preset query software. In other words, when calling the preset query software API, the collected latitude and longitude coordinates need to be converted into coordinates that conform to the data interface requirements of the corresponding preset query software API, and then subjected to geocoding parsing. Since the software application layer of this embodiment will have deviations if it directly uses the standard coordinate system for positioning when using the map API, coordinate system transformation is required to ensure the accuracy of the latitude and longitude coordinates.
[0077] Furthermore, after calling an external map for reverse encoding parsing in this embodiment, the returned raw JSON data needs to be archived and stored, and the corresponding JSON strings are parsed hierarchically. Simultaneously, the data is stored in the vehicle terminal's preset map database. This ensures that the same data can be retrieved from the vehicle terminal's preset map database the next time it is queried, avoiding repeated queries and multiple paid API calls when the VIN code appears repeatedly. This saves costs and improves retrieval efficiency. Additionally, since GPS signals have a certain degree of drift, the accuracy of matching can be continuously improved by incorporating machine learning algorithms based on the complexity of the business and combining multiple features.
[0078] It should be noted that, after calling an external map API, this application embodiment will generate two types of data: geographical information data such as province, city, district, road, and POI (Point of Interest) in the form of a returned JSON file, and metadata of the API call, such as the call time and return status code.
[0079] Specifically, such as Figure 3 As shown, firstly, the two types of data are stored in different tables of the vehicle terminal's preset map database, and a correlation key is designed to link the two sets of data together. Secondly, the linked data are passed to the data parsing module, and the latitude and longitude coordinate information is divided into different intervals to improve retrieval efficiency during full-text search. A continuously iterative optimization algorithm is used to classify and sort the data, such as arranging the data of the best matching result. The input target data and the data of the best matching result are stored in a one-to-one correspondence in the reference table established in the preset map database. This allows the system to prioritize querying the reference table in the preset map database when there is the same input data to be retrieved, and directly return the matched result, saving the time and cost of calling the API.
[0080] Furthermore, based on the latitude and longitude coordinates of the target data collected above, after querying the VIN code of the latitude and longitude coordinates, this application embodiment can also perform location parsing on the geographical information of the driving history of the VIN code for the most recent 15 days. If the optimal matching result is not found in the preset map database, the preset query software is called to perform a precise query, and the retrieved geographic reverse encoding information is stored in the preset map database, along with the query metadata, to ensure that the historical query analysis is traceable.
[0081] Furthermore, in some embodiments, the above-described address information query method further includes: updating data in a preset map database every preset time interval or upon receiving an update instruction.
[0082] The preset duration can be a user-defined time threshold, a vehicle system default time threshold, or a time threshold obtained through multiple computer simulations; no specific limitation is made here.
[0083] Specifically, the address information query method in this application embodiment also needs to periodically call the preset query software API to update the preset map database of the vehicle terminal and upgrade the matching related algorithms to continuously improve the accuracy and timeliness of the address information.
[0084] Specifically, such as Figure 4 The flowchart shown is of the data recalculation module in this embodiment of the application. When the vehicle terminal's preset map database receives an update command or automatically updates its algorithm after a preset period (e.g., one month), firstly, it reads the lookup table established in the preset map database, retrieves all input data, and queries all the original return data corresponding to these input data; secondly, it sorts these original return data sequentially using the updated algorithm, re-sorts and calculates the optimal matching result; finally, it compares whether the updated optimal matching result is consistent with the existing result. If they are consistent, the updated optimal matching result is discarded, and the existing data is kept; if they are inconsistent, the existing data is logically deleted, and the new input data and the new optimal matching result are combined and stored in the lookup table for direct retrieval in subsequent use. By running the recalculation module, the number of calls to external maps is reduced, and the accuracy of information matching is continuously improved.
[0085] According to the address information query method of this application embodiment, the latitude and longitude coordinates of the target data are collected and used as an index to query a preset map database stored in the vehicle terminal to obtain a matching result. If the matching result meets the preset optimal conditions, it is taken as the optimal matching result, and the first address information corresponding to the target data is determined. Otherwise, preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data. This solves the problems of low information retrieval accuracy and limited range in related technologies, as well as the high data parsing cost caused by multiple external calls. By making the latitude and longitude coordinate information retrieval intelligent and continuously storing the data from external calls, the number of calls is reduced, thereby improving the matching algorithm and accuracy of the system and reducing the data parsing cost.
[0086] Next, the address information query device proposed according to the embodiments of this application is described with reference to the accompanying drawings.
[0087] Figure 5 This is a block diagram of an address information query device according to an embodiment of this application.
[0088] like Figure 5 As shown, the address information query device 10 includes: a collection module 100, a query module 200, and a matching module 300.
[0089] The acquisition module 100 is used to acquire the latitude and longitude coordinates of the target data.
[0090] The query module 200 is used to query a preset map database stored in the vehicle terminal using latitude and longitude coordinates as an index, obtain matching results, and determine whether the matching results meet preset optimal conditions; and
[0091] The matching module 300 is used to take the matching result as the optimal matching result if the preset optimal conditions are met, and determine the first address information corresponding to the target data based on the optimal matching result; otherwise, it calls the preset query software to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data.
[0092] Furthermore, in some embodiments, when the preset optimal condition is not met, it is also used for:
[0093] Store the latitude and longitude coordinates and the second address information into the preset map database.
[0094] Furthermore, in some embodiments, the query module 200 is specifically used for:
[0095] Identify and interpret latitude and longitude coordinate information;
[0096] Calculate the distance between at least one historical address information corresponding to the identifier in the preset map database and the latitude and longitude coordinate information;
[0097] At least one matching result is determined based on the distance to each historical address information;
[0098] Determine whether the distance of at least one matching result is greater than a preset threshold;
[0099] If the value is greater than the preset threshold, then the preset optimal condition is satisfied.
[0100] Furthermore, in some embodiments, before invoking preset query software to perform geographic reverse encoding parsing of latitude and longitude coordinate information, the matching module 300 is also used for:
[0101] The input file is generated based on latitude and longitude coordinates and the file requirements of the preset query software.
[0102] Furthermore, in some embodiments, the address information query device 10 described above is also used for:
[0103] Update the data in the preset map database every preset time interval or upon receiving an update command.
[0104] According to the address information query device of this application embodiment, the latitude and longitude coordinates of the target data are collected and used as an index to query a preset map database stored in the vehicle terminal to obtain a matching result. If the matching result meets the preset optimal conditions, it is taken as the optimal matching result, and the first address information corresponding to the target data is determined. Otherwise, preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data. This solves the problems of low information retrieval accuracy and limited range in related technologies, as well as the high data parsing cost caused by multiple external calls. By making the latitude and longitude coordinate information retrieval intelligent and continuously storing the data from external calls to reduce the number of calls, the matching algorithm and accuracy of the system are improved, and the data parsing cost is reduced.
[0105] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include:
[0106] The memory 601, the processor 602, and the computer program stored on the memory 601 and capable of running on the processor 602.
[0107] When the processor 602 executes the program, it implements the address information query method provided in the above embodiments.
[0108] Furthermore, electronic devices also include:
[0109] Communication interface 603 is used for communication between memory 601 and processor 602.
[0110] The memory 601 is used to store computer programs that can run on the processor 602.
[0111] The memory 601 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0112] If the memory 601, processor 602, and communication interface 603 are implemented independently, then the communication interface 603, memory 601, and processor 602 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0113] Optionally, in a specific implementation, if the memory 601, processor 602, and communication interface 603 are integrated on a single chip, then the memory 601, processor 602, and communication interface 603 can communicate with each other through an internal interface.
[0114] The processor 602 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0115] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the address information query method described above.
[0116] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0117] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0118] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0119] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0120] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0121] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0122] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0123] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A method for querying address information, characterized in that, Includes the following steps: Collect the latitude and longitude coordinates of the target data; Using the latitude and longitude coordinates as an index, a preset map database stored in the vehicle terminal is queried to obtain a matching result, and it is determined whether the matching result meets the preset optimal conditions. as well as If the preset optimal conditions are met, the matching result is taken as the optimal matching result, and the first address information corresponding to the target data is determined based on the optimal matching result; otherwise, the preset query software is called to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data. The step of querying a preset map database stored in the vehicle terminal using the latitude and longitude coordinate information as an index to obtain matching results and determining whether the matching results meet preset optimal conditions includes: parsing the identifier of the latitude and longitude coordinate information, wherein the identifier is a VIN code; calculating the distance between at least one historical address information corresponding to the identifier in the preset map database and the latitude and longitude coordinate information; determining at least one matching result based on the distance between each historical address information; determining whether the distance of the at least one matching result is greater than a preset threshold; if it is greater than the preset threshold, then it is determined that the preset optimal conditions are met. If the VIN code corresponding to the latitude and longitude coordinates of the target data in the preset map database does not exist, or if no matching result satisfying the preset optimal conditions is found based on the distance between the latitude and longitude coordinates and each historical address information, the latitude and longitude coordinates will continue to be queried in the full-text map database. If a matching result satisfying the preset optimal conditions is found, the historical address information corresponding to the optimal VIN code will be returned. If no matching result satisfying the preset optimal conditions is found, the preset query software will be called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data, and store it in the preset map database.
2. The method according to claim 1, characterized in that, Before calling the preset query software to perform geographic reverse encoding parsing on the latitude and longitude coordinate information, the method further includes: An input file is generated based on the latitude and longitude coordinates and the file requirements of the preset query software.
3. The method according to any one of claims 1-2, characterized in that, Also includes: The data in the preset map database is updated every preset time interval or upon receiving an update command.
4. An address information query device, characterized in that, include: The acquisition module is used to collect the latitude and longitude coordinates of the target data; The query module is used to query a preset map database stored in the vehicle terminal using the latitude and longitude coordinate information as an index, obtain matching results, and determine whether the matching results meet preset optimal conditions. as well as The matching module is used to take the matching result as the optimal matching result if the preset optimal condition is met, and determine the first address information corresponding to the target data based on the optimal matching result; otherwise, it calls the preset query software to perform geographic reverse encoding parsing on the latitude and longitude coordinate information to obtain the second address information corresponding to the target data. The query module is specifically used for: parsing the identifier of the latitude and longitude coordinate information, wherein the identifier is a VIN code; calculating the distance between at least one historical address information corresponding to the identifier in a preset map database and the latitude and longitude coordinate information; determining at least one matching result based on the distance between each historical address information; determining whether the distance of the at least one matching result is greater than a preset threshold; if it is greater than the preset threshold, determining that the preset optimal condition is met. If the VIN code corresponding to the latitude and longitude coordinates of the target data in the preset map database does not exist, or if no matching result satisfying the preset optimal conditions is found based on the distance between the latitude and longitude coordinates and each historical address information, the latitude and longitude coordinates will continue to be queried in the full-text map database. If a matching result satisfying the preset optimal conditions is found, the historical address information corresponding to the optimal VIN code will be returned. If no matching result satisfying the preset optimal conditions is found, the preset query software will be called to perform geographic reverse encoding parsing on the latitude and longitude coordinates to obtain the second address information corresponding to the target data, and store it in the preset map database.
5. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the program to implement the address information query method as described in any one of claims 1-3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the address information query method as described in any one of claims 1-3.