Vehicle address query method and device, terminal equipment and storage medium
The area where the vehicle is located is directly determined through area encoding and matches the address data cached in memory, solving the matching failure problem caused by floating point accuracy, and improving address query efficiency and system efficiency.
Patent Information
- Application Number
- CN202411699113.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-14
AI Technical Summary
The existing vehicle address query method fails due to floating point accuracy problems, resulting in low address query efficiency, low hit rate and low system efficiency.
Through area encoding, the approximate area of the vehicle is directly determined, and then matched with the cache address data in memory, reducing the positioning and computing load and increasing the probability of matching success.
Improve the efficiency of address query, reduce IO operations of database and disk, reduce the number of API calls to map servers, and reduce the cost of map usage.
Smart Images

Figure CN119621765A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicle address query, and in particular to a vehicle address query method, device, terminal equipment and storage medium. Background Art
[0002] The vehicle network management system usually needs to display the real-time location of the vehicle and the address information of the location on the map. The address information often needs to be obtained through the API request query from the map provider. Usually, longitude and latitude are saved as floating point numbers, and the address query interface provided by the map service provider also requires the address to be provided in floating point format for query. First of all, the storage characteristics of floating point numbers in computers can only maintain a certain precision and cannot guarantee accuracy, that is, under a certain precision, it can only be rounded. For example, a longitude value of 123.456 may be saved in the computer memory as 123.4599999. In this case, the floating point number in the computer cannot be accurately matched. Secondly, due to the characteristics of satellite positioning, even at the same location point, the positioning results from the positioning module still have slight changes, causing the longitude and latitude data to change accordingly.
[0003] Due to the above characteristics, if you only cache the address by saving the longitude and latitude and its corresponding address, and expect to call the cached address the next time the same longitude and latitude appear, the hit rate will be very low. The low hit rate will cause the address to often not match, and it will be considered a new address, and the address will be queried from the map server again. In the end, different longitude and latitude values of the same address will be called multiple times to query the map server, and the database will also save duplicate data. This inefficient address caching method leads to low system efficiency. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a vehicle address query method, apparatus, terminal device and storage medium, which can effectively solve the problem of low address query efficiency.
[0005] First, please provide a vehicle address query method, including:
[0006] When receiving the geographic location of the vehicle, determining the area code of the area where the vehicle is located according to the geographic location;
[0007] Determining, according to the region code, whether the address data of the region is in the memory;
[0008] If the address data of the area is in the memory, a match is performed based on the geographical location and the address data. If the same address data is matched, the current address of the vehicle is fed back.
[0009] In one embodiment, the geographic location includes vehicle longitude and vehicle latitude;
[0010] The step of determining the area code of the area where the vehicle is located according to the geographical location includes:
[0011] The vehicle longitude and the vehicle latitude are encoded and calculated to obtain a position code, where the position code is an area code of the area where the vehicle is located.
[0012] In one embodiment, the method further comprises:
[0013] If the address data of the area is not in the memory, all address data within the corresponding area code are loaded from the database according to the area code.
[0014] In one embodiment, the method further comprises:
[0015] If the same address data is not matched, or the address data of the area is in the memory but the address data is expired, the address data in the area corresponding to the area code is updated through the map query interface;
[0016] The updated address data is matched with the geographic location and the current address of the vehicle is fed back.
[0017] In one embodiment, updating the address data in the area corresponding to the area code includes:
[0018] Acquire address information that needs to be updated, the address information including address longitude, address latitude and address name;
[0019] Determine the area code of the area according to the address information;
[0020] Calculate the relative geographical location of the longitude and latitude of the address in the area where the address is located;
[0021] The area code, the relative geographical location, the address name and the current update time are stored in association.
[0022] In one embodiment, the address information includes: address longitude and address latitude;
[0023] The calculating the relative geographical location of the address information in the area includes:
[0024] Obtain the regional longitude and regional latitude of the area;
[0025] Calculate the difference between the longitude of the address and the longitude of the area as the relative longitude;
[0026] Calculating the difference between the address latitude and the area latitude as the relative latitude;
[0027] The relative longitude and the relative latitude are relative geographical locations.
[0028] In one embodiment, the encoding and calculating the vehicle longitude and the vehicle latitude to obtain the position code includes:
[0029] Performing data processing on the vehicle longitude and the vehicle latitude according to a preset accuracy to obtain an integer value of the vehicle longitude and an integer value of the vehicle latitude;
[0030] The integer value of the vehicle longitude and the integer value of the vehicle latitude are concatenated in a preset manner to obtain a corresponding position code.
[0031] In a second aspect, the present application also provides a vehicle address query device, comprising:
[0032] A receiving module, configured to determine, upon receiving the geographic location of the vehicle, the area code of the area where the vehicle is located according to the geographic location;
[0033] A matching module, used for determining whether the address data of the region is in the memory according to the region code;
[0034] The positioning module is used to match the address data of the area according to the geographical location if the address data of the area is in the memory, and to feedback the current address of the vehicle if the same address data is matched.
[0035] In a third aspect, the present application also provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the vehicle address query method.
[0036] In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the vehicle address query method.
[0037] The embodiments of the present application have the following beneficial effects:
[0038] The present application directly determines the approximate area of the vehicle through area coding, and then matches it with the address data in the area cached in the memory to determine the current address of the vehicle. The matching process reduces the computational load of positioning through rough calculations, improves the probability of successful matching, thereby reducing database and disk IO operations, thereby improving the efficiency of address queries. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 A schematic diagram showing a flow chart of a vehicle address query method according to an embodiment of the present application is shown;
[0041] Figure 2 A schematic diagram of a process of updating address data in an embodiment of the present application is shown;
[0042] Figure 3 A schematic structural diagram of a vehicle address query device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0044] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0045] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.
[0046] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0047] When performing address matching on the latitude and longitude information fed back by the vehicle, the match often fails due to the problem of floating-point precision. For this reason, this application reduces the error caused by floating-point precision by setting area coding. The approximate location of the vehicle is directly determined by area coding, and then matched with the data in the memory to determine the address of the vehicle's location, which reduces the calculation load of positioning, reduces the IO operations of the database and disk, and improves the positioning efficiency.
[0048] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0049] The vehicle address query method is described below in conjunction with some specific embodiments.
[0050] Figure 1 A flow chart of a vehicle address query method according to an embodiment of the present application is shown. Exemplarily, the vehicle address query method includes the following steps:
[0051] Step S100, when the geographic location of the vehicle is received, the area code of the area where the vehicle is located is determined according to the geographic location.
[0052] The method of this embodiment is applied to a vehicle network management system, which mainly displays the real-time location of the vehicle and the address information of the location on a map. The vehicle will report its geographical location based on the positioning system, and the geographical location is the latitude and longitude information of the vehicle.
[0053] Address information refers to information about representative addresses such as ground buildings, roads, and landmarks, such as a certain street or a certain community, which is more intuitive than longitude and latitude.
[0054] For the driver, rather than the longitude and latitude, he wants to know the address name of his current location more. The vehicle network management system is used to feedback the corresponding address name according to the longitude and latitude feedback from the vehicle.
[0055] Specifically, when the vehicle longitude and vehicle latitude of the vehicle are received, preset coding calculations are performed respectively, and after the calculations, the area code of the area where the vehicle is located can be obtained.
[0056] The calculation process may be to process the vehicle longitude and the vehicle latitude according to a preset accuracy to obtain an integer value of the vehicle longitude and an integer value of the vehicle latitude;
[0057] The integer value of the vehicle longitude and the integer value of the vehicle latitude are concatenated in a preset manner to obtain a corresponding position code.
[0058] For example, if the preset precision is two decimal places, that is, accurate to 0.01, when processing data, for the data 10.234, 0.004 will be directly rounded off, and the data after processing will be 10.23. Similarly, for 10.235, 0.005 will be rounded off. This is not a rounding rule, but only retaining the data within the precision, and directly rounding off the data outside the precision.
[0059] Then convert the data into an integer. For 10.23, you need to multiply it by 100 to get the integer 1023. It can be understood that if the precision is 3 decimal places, then for the number 10.456, it will be multiplied by 1000 to get 10456.
[0060] The above method can be used to obtain the integer value of the vehicle's longitude and the integer value of the vehicle's latitude respectively.
[0061] For these two integer values, corresponding concatenation operations can be performed to obtain corresponding encoding values.
[0062] The splicing rule may be to store the integer value of the vehicle's longitude in the lower position and the integer value of the vehicle's latitude in the upper position. Similarly, there are multiple splicing methods, and the splicing method can be spliced in an agreed manner. In this way, the area code is obtained, indicating that the vehicle is in the area represented by the area code.
[0063] It can be seen that in this embodiment, by calculating the area code, the area where the vehicle is located and the corresponding area code can be directly determined without matching and comparing, and the area code can point to the longitude and latitude coordinates under a preset accuracy. As long as the preset accuracy is set reasonably, there will not be much deviation. For example, if 0.01 is used as the preset accuracy, 0.01 longitude and latitude is about 1.1 kilometers. This range is not large and is within the controllable error range, so it can also meet the requirements of vehicle monitoring.
[0064] In order to explain the principle here conveniently, the preset accuracy is 0.01 for explanation. The area of this embodiment is demarcated with the preset accuracy as the interval range. Each area is divided according to the longitude and latitude span of 0.01 degrees. For example, 0 degrees east longitude to 0.01 degrees east longitude, 0 degrees north latitude to 0.01 degrees north latitude is an area. All the longitude and latitude coordinates in this area are calculated according to the above calculation method, and the final code value is the same. According to the above method, multiple areas can be divided. It can be known that the longitude and latitude in each area can be calculated according to the above method. The same code value can be calculated, so the code value can represent the area. Therefore, in order to determine the location of the vehicle in this embodiment, the above calculation method can be used to initially determine which area it falls into.
[0065] The area coding method of this embodiment is actually to demarcate multiple areas by reducing the accuracy, so that before matching the coordinates, it is possible to roughly determine in which area the coordinates of the vehicle are located. Then, when matching the coordinates, only the address data in the area needs to be used for matching, which reduces the data pressure faced during matching.
[0066] Step S200: determining whether the address data of the area is in the memory according to the area code.
[0067] The area code can be used to directly find the address data stored in the corresponding area. The address data in the area is stored in correspondence with the area code of the area based on the relative position of the address. Therefore, after determining the area code, it can be used as an index to find all the corresponding address data.
[0068] The relative position here refers to the difference between the longitude and latitude of the address and the longitude and latitude of the area.
[0069] Its calculation expression is:
[0070] Relative longitude = address longitude - area longitude;
[0071] Relative latitude = address latitude - area latitude;
[0072] The regional longitude and regional latitude are longitude and latitude values representing the region, which are calculated based on any sampling point in the region and a preset accuracy.
[0073] Taking the preset precision of 0.01 as an example, the regional longitude is the longitude of the sampling point multiplied by 100, then rounded and divided by 100. The regional latitude is the latitude of the sampling point multiplied by 100, then rounded and divided by 100.
[0074] In the above calculation process, 100 is the reciprocal of the preset precision of 0.01. After multiplying by 100 and rounding, only the integer digits are retained, and all the digits at the decimal point are removed. Then dividing by 100 regresses the digits, and finally the regional longitude and regional latitude representing the area are obtained.
[0075] for example:
[0076] Longitude 123.456789, latitude 23.456789, the longitude and latitude coordinates of the area where it is located are 123.45, 23.45.
[0077] Longitude -123.456789, latitude -23.456789, the base coordinates of the area where it is located are -123.45, -23.45.
[0078] In this way, the regional longitude and latitude can be obtained for calculation. It can be understood that when the preset precision is other values, such as 0.1, or 0.001 and other values, the regional longitude and latitude can also be calculated in the above method, and then combined with the previous formula to calculate the relative longitude and latitude.
[0079] The time calculated from the relative longitude and latitude is a floating point number. In order to reduce storage space, in one embodiment, the relative longitude and latitude can be integerized, which reduces the number of bytes required to be saved. At the same time, after being converted into an integer, it is also convenient for comparison and calculation compared to floating point numbers.
[0080] For example, when the preset precision is 0.01, the calculated relative longitude is 0.00345. In order to save data conveniently, only some valid data can be saved in integer form. For example, if only 34 is saved, the relative longitude can be multiplied by 10000 to get 34.5, and then rounded to 34. Here 10000 is the square of the reciprocal of the precision. At this time, two digits of relative precision can be saved. If three digits are to be saved, it can be multiplied by 100000, and so on. The number of digits to be saved can be calculated by the number of digits to be saved and the reciprocal of the precision, and finally the relative position is saved with a shorter integer.
[0081] After the regional code is determined, the corresponding regional code will be searched in the memory first, because the memory caches the data that has been called, which is faster than reading data from the database.
[0082] If the address data corresponding to the area code is not read from the memory, it is necessary to find the corresponding address data from the database through the area code and load it into the memory for subsequent matching operations.
[0083] In one embodiment, if there is no vehicle in a certain area, the address data corresponding to the area can be cleared from the memory to make room for other data. It is understandable that, except for cities, highways and towns, vehicles rarely pass through most areas, so for some sparsely populated areas, their data may not be put into the cache. When there is no vehicle in the area, the address data in this area can also be cleared to avoid wasting storage space.
[0084] When a vehicle passes through an area for the first time, the address data corresponding to the area code may not be read from the memory. At this time, it is necessary to obtain the address data corresponding to the area code saved in the database and load it into the memory. When the vehicle passes through the area subsequently, the data in the memory can be directly called for matching.
[0085] Step S300: If the address data of the area is in the memory, matching is performed based on the geographical location and the address data. If the same address data is matched, the current address of the vehicle is fed back.
[0086] When the address data corresponding to the area code can be found from the memory, the geographic location and the address data can be matched to find the address where the current vehicle is located.
[0087] The address data is a relative position, so the relative position of the vehicle's geographic location must also be calculated, and then the relative position of the vehicle and the relative position of the address data are compared. When the same relative position is matched, the address of the current vehicle can be found.
[0088] In this embodiment, the calculation method of the relative position is given in the above steps and will not be repeated here.
[0089] After finding the vehicle's address in the above manner, the result can be fed back to the vehicle to complete the query of the vehicle's current address. The current address refers to an address in the form of "such and such road" or "such and such community", which can be an address named by an administrative division, so that the driver can intuitively know his or her location through these address names.
[0090] In addition, if the same address data is not matched, or the address data of the area is in the memory but expired, the address data in the area corresponding to the area code will be updated through the map query interface before the matching operation is performed.
[0091] Among them, if the corresponding address is not matched, it means that there may be errors in this match, and the operator's data is needed for feedback. The expiration of data takes into account that some landmark buildings may change with the passage of time. For example, there is an office building in a certain place, but 50 years later, the office building is demolished and a park is built. If the data is still old data, an incorrect address will be fed back. Therefore, this embodiment can set an effective time. If it exceeds the effective time, it means that the saved address is expired and there is a risk of change, and it needs to be updated. Otherwise, it does not need to be updated.
[0092] The method for determining expiration may be to set a preset expiration time, such as 10 years, 20 years, etc. Different expiration times may be set for different addresses. For example, for residential areas, they will not be demolished easily, so the expiration time may be set to more than 70 years. For some commercial areas such as shops and office buildings, which have higher liquidity, the preset expiration time may be shorter, such as 5 years or 3 years.
[0093] The vehicle address query method of this embodiment adjusts the accuracy of the longitude and latitude of the vehicle location by means of area coding, and then avoids the matching problem caused by floating-point precision by using the relative longitude and latitude and address data for matching, thereby improving the matching efficiency, thereby reducing the scenario of querying the map information provided by the operator, increasing the speed of the entire address feedback, effectively reducing the API calls to the address server supplier, and effectively reducing the cost of map use.
[0094] The step of updating the address data in the area corresponding to the area code is as follows: Figure 2 As shown, including:
[0095] Step S400: Acquire address information that needs to be updated.
[0096] The address information to be updated is all the address information in the current area corresponding to the area code calculated in the previous step, which can be obtained through the interface provided by the operator. Because the longitude and latitude coordinates of the area are known, all the address data within the area can be obtained from the interface provided by the operator based on the coordinates.
[0097] The address information includes the address name and the corresponding address longitude and address latitude.
[0098] There may be multiple addresses in one area, for example, there may be multiple addresses such as a certain community and a certain road, and the address data of all addresses will be obtained to ensure that the latest address information is obtained.
[0099] It should be noted that these addresses may occupy a relatively large area, such as buildings, streets or communities spanning multiple regions, which will also occupy a portion of the area currently required to be updated.
[0100] In the current area, the longitude and latitude corresponding to these occupied areas will also be obtained as address information. If there are 100 points, 100 corresponding longitude and latitude coordinates will be obtained. Similarly, one address can correspond to multiple longitude and latitude coordinates.
[0101] Moreover, for address information that spans multiple regions, the complete address information will be obtained for each address, not just the address information in the region. Because when a new building appears in a certain region, if it spans other regions, it must also be a new building for other regions. Therefore, for the new address, the entire address information will be obtained for body update, that is, the address data in other regions involved in the address will be updated at the same time, rather than just updating the content in the current region, which can also reduce the access to the operator API.
[0102] Step S500: determining the area code of the area according to the address information.
[0103] The acquired address information is also coded and calculated in the same manner as in the above steps to obtain the corresponding area code.
[0104] For addresses that only exist within the area, their address information is also within the area, so a simple match and comparison can be performed for secondary confirmation to ensure that the address information is correct.
[0105] For addresses that span multiple areas, it is necessary to determine the areas where each address data is located. Every time an area is involved, the area involved also needs to update the address information, so as to determine which areas need to be updated this time.
[0106] In this way, by calculating the area code corresponding to the address information, the area corresponding to each address information that needs to be updated can be determined, thereby avoiding errors when updating data.
[0107] Step S600, calculating the relative geographical location of the address information in the area where it is located.
[0108] The relative geographical location is as described in step S200 above, which is the difference between the longitude and latitude of the address and the longitude and latitude of the region. The calculation process will not be repeated here.
[0109] If the address data only exists in the current area, it is only necessary to calculate the relative longitude and latitude of the address data in the area. If the address data exists in multiple areas, it is necessary to calculate the relative longitude and latitude in each area respectively.
[0110] Step S700: The area code, the relative geographical location, the address and the current update time are stored in association with each other.
[0111] Then, the area code, the relative geographical location, the address and the current update time are associated and stored, thus completing the update of the address data in the area. The stored update time is used to determine whether the address data is expired in the aforementioned step S300.
[0112] The address update process of this embodiment determines the area by calculating the area code of each latitude and longitude coordinate of the address, and then reduces the amount of data that needs to be stored by calculating the relative position. When performing geographic matching, it is only necessary to match the relative position to determine the address. At the same time, the relative position reduces the complexity of storing data and is no longer a floating point number, avoiding the precision problem caused by floating point numbers, thereby improving the matching success rate during address query.
[0113] Figure 3 A vehicle address query device according to an embodiment of the present application is shown, comprising:
[0114] The receiving module 10 is used to determine the area code of the area where the vehicle is located according to the geographical location when the geographical location of the vehicle is received.
[0115] The matching module 20 is used to determine whether the address data of the area is in the memory according to the area code.
[0116] The positioning module 30 is used to match the address data of the area according to the geographical location if the address data of the area is in the memory, and to feedback the current address of the vehicle if the same address data is matched.
[0117] The present application also provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the vehicle address query method.
[0118] The terminal device can be a vehicle-mounted computer or a computer, mobile phone, tablet or other intelligent terminal device equipped with navigation software or vehicle monitoring software.
[0119] The present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed on a processor, the vehicle address query method is implemented.
[0120] It can be understood that the device of this embodiment corresponds to the method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0121] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0122] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0123] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0125] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a terminal device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0126] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A vehicle address query method, characterized in that: include: When receiving the geographic location of the vehicle, determining the area code of the area where the vehicle is located according to the geographic location; Determining, according to the region code, whether the address data of the region is in the memory; If the address data of the area is in the memory, a match is performed based on the geographical location and the address data. If the same address data is matched, the current address of the vehicle is fed back.
2. The vehicle address query method according to claim 1, characterized in that: The geographic location includes the vehicle longitude and the vehicle latitude; The step of determining the area code of the area where the vehicle is located according to the geographical location includes: The vehicle longitude and the vehicle latitude are encoded and calculated to obtain a position code, where the position code is an area code of the area where the vehicle is located.
3. The vehicle address query method according to claim 1, characterized in that: Also includes: If the address data of the area is not in the memory, all address data within the corresponding area code are loaded from the database according to the area code.
4. The vehicle address query method according to claim 1, characterized in that: Also includes: If the same address data is not matched, or the address data of the area is in the memory but the address data is expired, the address data in the area corresponding to the area code is updated through the map query interface; The updated address data is matched with the geographic location and the current address of the vehicle is fed back.
5. The vehicle address query method according to claim 4, characterized in that: The updating of the address data in the area corresponding to the area code includes: Acquire address information that needs to be updated, the address information including address longitude, address latitude and address name; Determine the area code of the area according to the address information; Calculate the relative geographical location of the longitude and latitude of the address in the area where the address is located; The area code, the relative geographical location, the address name and the current update time are stored in association.
6. The vehicle address query method according to claim 3, characterized in that: The address information includes: address longitude and address latitude; The calculating the relative geographical location of the address information in the area includes: Obtain the regional longitude and regional latitude of the area; Calculate the difference between the longitude of the address and the longitude of the area as the relative longitude; Calculating the difference between the address latitude and the area latitude as the relative latitude; The relative longitude and the relative latitude are relative geographical locations.
7. The vehicle address query method according to claim 2, characterized in that: The encoding and calculating of the vehicle longitude and the vehicle latitude to obtain a position code includes: Performing data processing on the vehicle longitude and the vehicle latitude according to a preset accuracy to obtain an integer value of the vehicle longitude and an integer value of the vehicle latitude; The integer value of the vehicle longitude and the integer value of the vehicle latitude are concatenated in a preset manner to obtain a corresponding position code.
8. A vehicle address query device, characterized in that: include: A receiving module, configured to determine, upon receiving the geographic location of the vehicle, the area code of the area where the vehicle is located according to the geographic location; A matching module, used for determining whether the address data of the region is in the memory according to the region code; The positioning module is used to match the address data of the area according to the geographical location if the address data of the area is in the memory, and to feedback the current address of the vehicle if the same address data is matched.
9. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the vehicle address query method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed on a processor, implements the vehicle address query method according to any one of claims 1-7.
Citation Information
Cited By
Vehicle positioning method, device and system and storage medium
CN121174270A
Vehicle positioning method, device, system and storage medium
CN121174270B