A grid query method and apparatus
By establishing a mapping relationship between the grid and each address database, the problem of query requests caused by address databases in different regions being unable to determine the grid is solved, and the accuracy and efficiency of grid queries are improved.
Patent Information
- Application Number
- CN202310974938.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-03
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2043-08-03
AI Technical Summary
Different regions have different address databases, which results in the address name of the query request not being able to find the corresponding grid from the address database of the region, and thus the query result cannot be determined.
Establish a mapping relationship between the grid and the address names and format types in each address database, and improve the accuracy of the query through one-to-many association.
Ensure that query requests can accurately identify the target grid, obtain resource information within the grid, and improve the accuracy and efficiency of grid queries.
Smart Images

Figure CN117171281B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a grid query method and device. Background Art
[0002] Grid management is to divide the region into several grid-shaped units based on the principles of territorial management, geographical layout, and current status management, build a grid-based marketing management system, divide customers based on the grid, and realize customer management and analysis, thereby supporting marketing, business acceptance, customer service and other work.
[0003] Currently, every GIS (Geographic Information System) has a corresponding address database, which includes address names and their formats. However, different regions use different address databases. For example, a query request might fail to find the grid corresponding to an address name in the address database used by that region. Consequently, the resource information within the grid corresponding to that address cannot be obtained, resulting in uncertainty about the query result.
[0004] Therefore, how to improve the accuracy of grid query and ensure that the target grid corresponding to the query request is determined is a technical problem that needs to be solved urgently. Summary of the Invention
[0005] The embodiments of the present invention provide a grid query method and apparatus for improving the accuracy of grid query and ensuring that a target grid corresponding to a query request is determined.
[0006] In a first aspect, an embodiment of the present invention provides a grid query method, comprising:
[0007] Obtaining a query request; the query request includes a first address name and a format type of the first address name;
[0008] The target grid corresponding to the first address name is determined in the preset association information according to the first address name and the format type of the first address name; the preset association information is a mapping relationship established based on any grid and the address name of the grid to which it belongs in each address library and the format type of the address name of the grid to which it belongs.
[0009] In the above technical solution, for any grid, a mapping relationship is established between the grid and the address name of the grid in each address library and the format type of the address name of the grid, so as to realize a one-to-many association, that is, one grid is associated with multiple address libraries, thereby ensuring the comprehensiveness, simplicity and accuracy of the mapping relationship, and thus ensuring that the grid corresponding to the first address name is determined, avoiding the situation where the grid corresponding to the first address name cannot be determined, and improving the accuracy of grid query.
[0010] Optionally, the preset association information is a mapping relationship established based on any grid and the address name of the grid in each address database and the format type of the address name of the grid, including:
[0011] Collect the address names and format types of the address names in the address database corresponding to each GIS;
[0012] For any grid, determine the address name of the grid in the address name according to the coordinates of the grid;
[0013] A mapping relationship between the grid, the address name belonging to the grid, and the format type of the address name belonging to the grid is established to obtain preset association information.
[0014] In the above technical solution, preset association information is established by collecting the address names and format types of the address names in the address database corresponding to each GIS, thereby ensuring the comprehensiveness of the preset association information and improving the accuracy of grid query.
[0015] Optionally, determining the address name of the grid in the address name according to the coordinates of the grid includes:
[0016] Determine the area range corresponding to the grid according to the coordinates of the grid and a preset deviation value;
[0017] For any address library, the address names in the address library whose coordinates are within the area range are determined as the address names of the grid to which they belong.
[0018] In the above technical solution, the actual area range of the grid can be determined according to the coordinates of the grid, and the actual area range of the grid can be scaled by the preset deviation value to obtain the area range corresponding to the grid, thereby improving the accuracy of determining the address name located in the area range corresponding to the grid and improving the accuracy of the preset association information.
[0019] Optionally, the preset association information is in the form of a key-value pair; wherein the address name of the grid to which the grid belongs and the format type of the address name of the grid to which the grid belongs are the key, and the identifier of the grid is the value;
[0020] Determining a target grid corresponding to the first address name in preset association information according to the first address name and a format type of the first address name includes:
[0021] Using the first address name and the format type of the first address name as a first key, traverse the preset association information to obtain a first value corresponding to the first key;
[0022] The first value is determined as the target grid.
[0023] In the above technical solution, the target grid is queried in the form of key-value pairs, thereby ensuring the efficiency of querying the grid.
[0024] Optionally, after determining the target grid corresponding to the address name in the preset association information according to the address name and the format type of the address name, the method further includes:
[0025] Acquiring resource information within the target grid;
[0026] Feedback resource information within the target grid.
[0027] In the above technical solution, the resource information in the target grid is fed back as a query result to the client corresponding to the query request, thereby ensuring that the client obtains the resource information in the grid corresponding to the query request.
[0028] In a second aspect, an embodiment of the present invention provides a grid query device, including:
[0029] An acquisition module, configured to acquire a query request; the query request includes a first address name and a format type of the first address name;
[0030] A processing module is used to determine the target grid corresponding to the first address name in the preset association information based on the first address name and the format type of the first address name; the preset association information is a mapping relationship established based on any grid and the address name of the grid to which it belongs in each address library and the format type of the address name of the grid to which it belongs.
[0031] Optionally, the processing module is specifically configured to:
[0032] Collect the address names and format types of the address names in the address database corresponding to each GIS;
[0033] For any grid, determine the address name of the grid in the address name according to the coordinates of the grid;
[0034] A mapping relationship between the grid, the address name belonging to the grid, and the format type of the address name belonging to the grid is established to obtain preset association information.
[0035] Optionally, the processing module is specifically configured to:
[0036] Determine the area range corresponding to the grid according to the coordinates of the grid and a preset deviation value;
[0037] For any address library, the address names in the address library whose coordinates are within the area range are determined as the address names of the grid to which they belong.
[0038] Optionally, the preset association information is in the form of a key-value pair; wherein the address name of the grid to which the grid belongs and the format type of the address name of the grid to which the grid belongs are the key, and the identifier of the grid is the value;
[0039] The processing module is specifically used for:
[0040] Using the first address name and the format type of the first address name as a first key, traverse the preset association information to obtain a first value corresponding to the first key;
[0041] The first value is determined as the target grid.
[0042] The processing module is further configured to:
[0043] After determining a target grid corresponding to the address name in preset association information according to the address name and the format type of the address name, resource information in the target grid is acquired; and the resource information in the target grid is fed back.
[0044] In a third aspect, an embodiment of the present invention further provides a computer device, including:
[0045] a memory for storing program instructions;
[0046] The processor is configured to call the program instructions stored in the memory and execute the above-mentioned grid query method according to the obtained program.
[0047] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned grid query method. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 A system architecture schematic diagram provided for an embodiment of the present application;
[0050] Figure 2 A grid query method flow schematic diagram provided for an embodiment of the present application;
[0051] Figure 3 A grid schematic diagram provided for an embodiment of the present application;
[0052] Figure 4 A grid address name determination schematic diagram provided for an embodiment of the present application;
[0053] Figure 5 A grid query method flow schematic diagram provided for an embodiment of the present application;
[0054] Figure 6 A grid query device structure schematic diagram provided for an embodiment of the present application;
[0055] Figure 7 A grid query device structure schematic diagram provided for an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0057] The grid management is to divide the region into a plurality of grid units according to the principles of territorial management, geographical layout and present situation management, to construct a grid marketing management system, to divide customers based on the grid, to realize the management and analysis of the customers, and to support the marketing, business acceptance, customer service and other work.
[0058] Grid marketing is a technical solution based on grid management and a segmented marketing model. Consequently, the requirements for grid queries are becoming increasingly stringent. Currently, any GIS has a corresponding address database, which includes address names and their formats. However, different regions use different address databases. This can lead to a situation where a grid query system in a certain region receives a query request containing an address name, but that region's grid query system does not include the address database corresponding to the query request. Consequently, the grid query system in that region cannot query the grid corresponding to the query request, and thus cannot obtain resource information within the grid corresponding to the query request, and thus cannot determine the query result corresponding to the query request. For example, if the region is based on provinces, the region of Province X uses Address Databases A and B. However, a query request corresponds to Address Database C. Therefore, the grid query system in Province X cannot query the grid corresponding to the query request, and thus cannot obtain multi-dimensional grid information for the query request, meaning it cannot determine the query result corresponding to the query request.
[0059] One proposed grid query method involves creating a one-to-one association between the address information in any address database and the grids in that area. After determining the address information in the database, the grid corresponding to the address information is matched to obtain the grid's resource information. However, this method is costly and difficult to maintain, making it difficult to achieve accurate matching.
[0060] Therefore, the present invention proposes a grid query method and apparatus. By establishing a one-to-many association between grids and address information in various address repositories, this method ensures that the grid corresponding to the query request is identified, improving the accuracy of grid queries and thereby ensuring that resource information within the grid is determined. It is understood that the grid query method of the present invention can be applied to grid marketing to ensure grid query requirements in grid marketing.
[0061] Figure 1 A system architecture applicable to an embodiment of the present invention is exemplarily shown, and the system architecture includes a client 110 and a grid unit 120 .
[0062] The client 110 is installed on a terminal device, and is configured to trigger a query request including a first address name and a format type of the first address name by a user's operation, and send the query request to the grid unit 120. The user's operation includes but is not limited to clicking a display screen of the terminal device, sending a voice instruction to the terminal device, and the like, which are not limited herein. It can be understood that the terminal device can be a mobile phone, a tablet computer, a notebook computer, a netbook, a vehicle-mounted device, and a business intelligent terminal (including a video phone, a conference table intelligent terminal, and the like), a personal digital assistant (PDA), an augmented reality (AR) \ virtual reality (VR) device, and the like, and the specific form of the user terminal is not limited in the embodiment of the application.
[0063] The grid unit 120 is configured to, before receiving the query request sent by the client 110, establish a mapping relationship according to any grid and the second address name of the grid to which each address library belongs and the format type of the second address name, and then obtain preset association information. The grid unit 120 is also configured to, after receiving the query request sent by the client 110, determine a target grid corresponding to the first address name in the preset association information according to the first address name and the format type of the first address name in the query request.
[0064] It should be noted that the structure shown in the above Figure 1 is only an example, and the embodiment of the application is not limited thereto.
[0065] Based on the above description, Figure 2 an exemplary flowchart of a grid query method provided by the embodiment of the application is shown, as shown in Figure 2 , the flowchart includes:
[0066] In step 210, a query request is obtained.
[0067] In the embodiment of the application, the query request includes a first address name and a format type of the first address name. For example, the query request includes a first address name of a format type a, and the first address name is "Financial Street Yingtai Center No. 3 Building"; for another example, the query request includes a first address name of a format type b, and the first address name is "Xicheng District-Financial Street No. 31"; for another example, the query request includes a first address name of a format type c, and the first address name is "Xicheng District-Financial Street No. 31". The address corresponding to the above first address name is the same address, that is, the names of the address are different under different format types.
[0068] Furthermore, the format type of the address name corresponds to the address database, and the address database corresponds to the GIS. That is, the format type of the address name in the address database corresponding to any two GISs is different, and the address names are also different.
[0069] Step 220: Determine a target grid corresponding to the first address name in preset association information according to the first address name and the format type of the first address name.
[0070] In an embodiment of the present invention, the preset association information is a mapping relationship established based on the address name of any grid and the format type of the address name of the grid to which it belongs in each address library. Among them, the grid is the area to which the grid belongs divided based on the preset GIS. For example, the area of Province X is divided into grids using the GIS corresponding to Address Library A to obtain the grid of the area to which Province X belongs. It can be understood that the division of the grid can be a preset area divided based on longitude and latitude coordinates, which is not specifically limited here. See Figure 3 , Figure 3 The present invention provides an exemplary schematic diagram of a grid, wherein the actual area range of each grid may be different.
[0071] For any grid, the address name of the grid is determined, and then the preset association information is determined according to the address name of the grid, the format type of the address name of the grid, and the identifier of the grid.
[0072] Furthermore, the address names and format types of the address names in the address database corresponding to each GIS are collected. Then, for any grid, the address name of the grid to which it belongs is determined from the address name based on the coordinates of the grid. A mapping relationship is then established between the grid and the address name and format type of the grid to which it belongs. Pre-set association information is then obtained based on the mapping relationship corresponding to each grid. The coordinates of the grid are used to determine the actual area of the grid.
[0073] In one possible implementation, for any address database, the address name whose coordinates are within the actual area of the grid is determined as the address name of the grid to which it belongs. For example, if "31 Financial Street, Xicheng District" is within the actual area of Grid 1, then "31 Financial Street, Xicheng District" is the address name of Grid 1.
[0074] In another possible implementation, the area range corresponding to the grid is determined based on the coordinates of the grid and the preset deviation value, and then for any address library, the address name in the address library whose coordinates are in the area range corresponding to the grid is determined as the address name belonging to the grid. The preset deviation value is used to scale the actual area range of the grid. For example, the preset variation value indicates that the longitude and latitude of the coordinates of each vertex of the grid is increased by 1, which is equivalent to enlarging the actual area range of the grid, thereby obtaining the area range corresponding to the grid. Because the address coordinates corresponding to address names under different format types may be different, for example, the address coordinates corresponding to the address name under format type a are the west vertex of the building, and the address coordinates corresponding to the address name under format type b are the east vertex of the building, so there is a deviation in the address coordinates of the same address name. By scaling the actual area range of the grid, the accuracy of determining the address name of the grid to which it belongs is improved, thereby improving the accuracy of the preset association information.
[0075] In some embodiments, the address names of all areas and / or parts of areas belonging to a grid are determined as the address names to which the grid belongs. Figure 4 , Figure 4 The present invention provides an exemplary schematic diagram of determining the grid to which an address name belongs. Here, an address name represents a building. If part of the building is located in grid 3 and the other part is located in grid 5, then the address name corresponding to the building belongs to both grid 3 and grid 5.
[0076] Based on the above description, the preset association information is shown in Table 1 below.
[0077] Table 1
[0078]
[0079] The format type of the address name corresponds to the address base, and m represents the quantity. For example, the format type of the address name in address base A is a, the format type of the address name in address base B is b, the format type of the address name in address base C is c, and the format type of the address name in the mth address base is m.
[0080] Table 1 shows that a grid address group is formed based on the GIS, the corresponding address database, or the format type of the address name. This grid address group includes the association between the address name and format type corresponding to each GIS. The preset association information includes the mapping relationship between each grid, which is equivalent to associating each grid with the grid address group. For example, grid 1 has a mapping relationship with address a1 of format type a in address database A, address b1 of format type b in address database B, address c1 of format type c in address database C, and address m1 of format type m in address database m.
[0081] In some embodiments, the address name of the grid to which it belongs and the format type of the address name of the grid to which it belongs are used as keys, and the identifier of the grid is used as a value to establish a mapping relationship in the form of a key-value pair, thereby obtaining preset association information in the form of a key-value pair. Based on this, after obtaining the query request, the first address name and the format type of the first address name in the query request are used as the first key, and the preset association information is traversed to obtain the first value corresponding to the first key, and then the first value is determined as the target grid. Exemplarily, the first address name is any name in the address name. For example, the first key corresponding to the query request is "a-Financial Street Yingtai Center Building 3", and the first value in the preset association information is grid 1, that is, the target grid corresponding to the query request is grid 1.
[0082] In this embodiment of the present invention, after determining the target grid corresponding to the query request, resource information within the target grid is obtained and used as the query result, providing feedback on the resource information within the target grid. The resource information within the target grid may include information such as the type of enterprise, type of store, salesperson, delivery person, and installer, and is not specifically limited here.
[0083] Based on the above technical solution, taking the grids of each provincial region as the basis, by establishing a grid address group including the GIS address name and the format type of the address name, the preset association information of the grid and the grid address group is generated, and the mapping of one grid to multiple address libraries is realized, thereby avoiding the situation where the target grid corresponding to the query request cannot be determined, ensuring that the target grid corresponding to the query request is determined, and improving the accuracy of grid query.
[0084] In order to better explain the above technical solution, Figure 5 The following is a flow chart showing a grid query method according to an embodiment of the present invention. Figure 5 As shown, the process includes:
[0085] Step 501: The association unit collects the address names corresponding to each GIS and the format type of the address names.
[0086] Exemplarily, the association unit collects address names and format types of the address names in the A address library, the B address library, and the C address library corresponding to each GIS.
[0087] Step 502: The management unit uploads grid information.
[0088] The association unit sends an information request to the management unit, and then the management unit responds to the information request, determines the coordinates, identification and other information of each grid in the target province area, and then uploads the coordinates, identification and other information of each grid in the target province area to the management unit.
[0089] Step 503: The association unit creates preset association information according to the grid information, the address names corresponding to the GIS, and the format type of the address names.
[0090] The association unit creates a grid address group corresponding to each GIS based on the address name and format type of the address name (for example, the address names corresponding to format type a include a1, a2, ...an). It then establishes a mapping relationship between the grid and each grid address group to obtain preset association information.
[0091] Step 504: The client sends a query request to the association unit.
[0092] Based on the user's operation, the client triggers a query request, which includes the first address name a1 and the format type a of the a1 name.
[0093] Step 505: The association unit determines the target grid corresponding to the query request according to the preset association information.
[0094] The association unit uses the format type a and the name a1 as keys, traverses the preset association information, and determines that the target grid is grid 1.
[0095] Step 506: The association unit sends the identifier of the target grid to the management unit.
[0096] Step 507: The management unit determines resource information corresponding to the target grid.
[0097] Step 508: The management unit feeds back the resource information corresponding to the target grid to the client.
[0098] Based on the above technical solution, the preset association information includes the address name corresponding to the GIS. Therefore, when the client sends any query request including the first address name, the target grid corresponding to the query request can be queried through the preset association information, and then the resource information in the target grid can be obtained, avoiding the situation where the target grid corresponding to the query request cannot be determined, ensuring that the target grid and resource information corresponding to the query request are determined, and improving the accuracy of grid query and grid marketing.
[0099] Based on the same technical concept, Figure 6 The following is a schematic structural diagram of a grid query device provided by an embodiment of the present invention, which can execute the process of the above-mentioned grid query method.
[0100] like Figure 6 As shown, the device specifically includes:
[0101] The acquisition module 610 is configured to acquire a query request, wherein the query request includes a first address name and a format type of the first address name;
[0102] Processing module 620 is used to determine the target grid corresponding to the first address name in the preset association information based on the first address name and the format type of the first address name; the preset association information is a mapping relationship established based on any grid and the address name of the grid to which it belongs in each address library and the format type of the address name of the grid to which it belongs.
[0103] Optionally, the processing module 620 is specifically configured to:
[0104] Collect the address names and format types of the address names in the address database corresponding to each GIS;
[0105] For any grid, determine the address name of the grid in the address name according to the coordinates of the grid;
[0106] A mapping relationship between the grid, the address name belonging to the grid, and the format type of the address name belonging to the grid is established to obtain preset association information.
[0107] Optionally, the processing module 620 is specifically configured to:
[0108] Determine the area range corresponding to the grid according to the coordinates of the grid and a preset deviation value;
[0109] For any address library, the address names in the address library whose coordinates are within the area range are determined as the address names of the grid to which they belong.
[0110] Optionally, the preset association information is in the form of a key-value pair; wherein the address name of the grid to which the grid belongs and the format type of the address name of the grid to which the grid belongs are the key, and the identifier of the grid is the value;
[0111] The processing module 620 is specifically configured to:
[0112] Using the first address name and the format type of the first address name as a first key, traverse the preset association information to obtain a first value corresponding to the first key;
[0113] The first value is determined as the target grid.
[0114] The processing module 620 is further configured to:
[0115] After determining a target grid corresponding to the address name in preset association information according to the address name and the format type of the address name, resource information in the target grid is acquired; and the resource information in the target grid is fed back.
[0116] In a simple embodiment, those skilled in the art can imagine that the grid query device in the above embodiment can be used Figure 7 As shown in the form. Figure 7 As shown, the device 700 includes at least one processor 710 and an interface circuit 720. The processor 710 and the interface circuit 720 are coupled to each other. It will be understood that the interface circuit 720 can be a transceiver or an input / output interface. Optionally, the device 700 may further include a memory 730 for storing instructions executed by the processor 710 or storing input data required by the processor 710 to run instructions or storing data generated after the processor 710 runs instructions. The specific connection medium between the above-mentioned processor 710 and the memory 730 is not limited in the embodiments of the present application. When the processor 710 communicates with other devices, it can transmit data through the interface circuit 720.
[0117] When the device 700 is used to implement the above Figure 2 In the method shown, the processor 710 is used to implement the functions of the above-mentioned processing module 620, and the interface circuit 720 is used to implement the functions of the above-mentioned acquisition module 610.
[0118] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0119] Based on the same technical concept, an embodiment of the present invention further provides a computer device, including:
[0120] a memory for storing program instructions;
[0121] The processor is configured to call the program instructions stored in the memory and execute the above-mentioned grid query method according to the obtained program.
[0122] Based on the same technical concept, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned grid query method.
[0123] Those skilled in the art will appreciate that embodiments of the present application can be devised for a variety of other systems which are currently developed or later developed. Therefore, the present application is intended to cover all such modifications and variations of this application that are within the scope of the appended claims and their equivalents. It is intended that each element of claim 1 and 2 is independent of one another. No element of claim 1 and 2, or any other claim, is implied to depend on any other element or limitation of claim 1 and 2 or any other claim except where expressly recited in that claim.
[0124] The present application is described in reference to the flowchart and / or block diagrams of the method, apparatus (system) and computer program product according to this application. It will be understood that each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for performing one or more functions specified in the flowchart and / or block diagram block or blocks.
[0125] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for performing one or more functions specified in the flowchart and / or block diagram block or blocks.
[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart and / or block diagram block or blocks. Figure 1 one or more functions specified in the flowchart and / or block diagram block or blocks. Figure 1 means for performing one or more functions specified in the flowchart and / or block diagram block or blocks.
[0127] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A grid query method, characterized in that: include: Obtaining a query request; the query request includes a first address name and a format type of the first address name; determining a target grid corresponding to the first address name in preset association information according to the first address name and the format type of the first address name; The preset association information is a mapping relationship established based on any grid and the address name of the grid in each address library and the format type of the address name of the grid. Any grid is associated with multiple address libraries.
2. The method according to claim 1, wherein The preset association information is a mapping relationship established based on any grid and the address name of the grid in each address library and the format type of the address name of the grid, including: Collect the address names and format types of the address names in the address database corresponding to each GIS; For any grid, determine the address name of the grid in the address name according to the coordinates of the grid; A mapping relationship between the grid, the address name belonging to the grid, and the format type of the address name belonging to the grid is established to obtain preset association information.
3. The method according to claim 2, wherein Determining the address name of the grid in the address name according to the coordinates of the grid includes: Determine the area range corresponding to the grid according to the coordinates of the grid and a preset deviation value; For any address library, the address names in the address library whose coordinates are within the area range are determined as the address names of the grid to which they belong.
4. The method according to claim 1, wherein The preset association information is in the form of a key-value pair; wherein the address name of the grid to which the address belongs and the format type of the address name of the grid to which the address belongs are keys, and the identifier of the grid is a value; Determining a target grid corresponding to the first address name in preset association information according to the first address name and a format type of the first address name includes: Using the first address name and the format type of the first address name as a first key, traverse the preset association information to obtain a first value corresponding to the first key; The first value is determined as the target grid.
5. The method according to any one of claims 1 to 4, characterized in that After determining the target grid corresponding to the address name in the preset association information according to the address name and the format type of the address name, the method further includes: Acquiring resource information within the target grid; Feedback resource information within the target grid.
6. A grid query device, characterized in that: include: The acquisition module is used to obtain the query request; The query request includes the first address name and the format type of the first address name; a processing module, configured to determine a target grid corresponding to the first address name in preset association information according to the first address name and a format type of the first address name; The preset association information is a mapping relationship established based on any grid and the address name of the grid in each address library and the format type of the address name of the grid. Any grid is associated with multiple address libraries.
7. The device according to claim 6, characterized in that The processing module is specifically used for: Collect the address names and format types of the address names in the address database corresponding to each GIS; For any grid, determine the address name of the grid in the address name according to the coordinates of the grid; A mapping relationship between the grid, the address name belonging to the grid, and the format type of the address name belonging to the grid is established to obtain preset association information.
8. The device according to claim 7, wherein The processing module is specifically used for: Determine the area range corresponding to the grid according to the coordinates of the grid and a preset deviation value; For any address library, the address names in the address library whose coordinates are within the area range are determined as the address names of the grid to which they belong.
9. A computer device, characterized in that: include: a memory for storing program instructions; A processor is configured to call the program instructions stored in the memory and execute the method according to any one of claims 1 to 5 according to the obtained program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Power utilization structured address cascade search method, system and device and storage medium
CN114153897A