Method, system and device for searching enterprise investment attracting data in self-defined space range and medium
By establishing a company database and combining it with an investment promotion map and user-defined search methods, and configuring various query modules and algorithms, the problem of low efficiency in traditional enterprise data querying has been solved, enabling fast, accurate querying and intuitive display of enterprise data within a customizable space.
Patent Information
- Application Number
- CN202411696349.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-01-07
AI Technical Summary
Traditional enterprise data query methods are inefficient, cannot meet the flexible needs of custom spatial ranges, and the search results lack intuitive map displays and data analysis functions, resulting in low accuracy of enterprise data.
By acquiring enterprise information data, an enterprise database is established and stored in a distributed search and analysis engine. Combining investment promotion maps and user-selected search methods, multiple query modules are configured to perform queries using enterprise latitude and longitude information, and auxiliary query conditions are introduced for filtering and display.
It enables fast and accurate querying of enterprise data within a specific spatial range, improving query efficiency and accuracy, meeting users' diverse needs for customized spatial ranges, and providing intuitive map display and in-depth data analysis support.
Smart Images

Figure CN119271759A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of investment promotion maps, and in particular relates to a method, system, device and medium for searching for enterprise investment promotion data within a custom spatial range. Background Art
[0002] In the investment promotion system of various industries, the management and analysis of enterprise data is an important part. However, with so many enterprises, how to efficiently and accurately find enterprise data within a specific spatial range has become an important issue in the investment promotion system. The traditional enterprise data search method is not only inefficient, but also cannot meet the user's flexible needs for customized spatial ranges.
[0003] Specifically, the traditional enterprise data query method often requires users to click and input multiple times to complete a search operation. The operation process is cumbersome and prone to errors, and the search results are usually presented in a list format. There is a lack of intuitive map display and data analysis functions, making it difficult for users to quickly understand and evaluate the search results. After the emergence of investment promotion maps, the way to query enterprise data is to search through fixed shapes, such as framing a circular or rectangular range on the map for search. Although the operation is simple, it cannot adapt to complex geographical features and investment promotion needs. For example, the shape of an industrial park or development zone may be very irregular, and the search range of a fixed shape cannot accurately cover the area. In addition, the restrictions on shape and editing may not be accurate to specific streets, plots or buildings, resulting in a large number of irrelevant or marginal enterprises in the search results, and the accuracy of the obtained enterprise data is low. In addition, the screening conditions for the search results are relatively simple, and there is a lack of in-depth mining of detailed enterprise information. Summary of the invention
[0004] In a first aspect, an embodiment of the present application provides a method for searching for enterprise investment promotion data within a custom space, comprising the following steps: S1. Obtain enterprise information data in the investment promotion area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; S2. Acquire the selected spatial scope by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; S3. Pre-configure the query module for each search method in the distributed search and analysis engine, and use the corresponding query module to perform enterprise queries within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; S4. Introduce auxiliary query conditions to screen the queried enterprises, and then display the investment promotion data in the enterprise information data of the screened enterprises.
[0005] Furthermore, the specific steps of step S1 are as follows: S11. Identify all enterprises in the investment attraction area; S12. Obtain enterprise information data of each enterprise in the investment promotion area, and determine whether there is enterprise latitude and longitude information; If yes, go to step S14; If not, proceed to step S13; S13. Obtain the registered address of the enterprise in the enterprise information data, and geocode the registered address of the enterprise through the same map service provider as the investment map to obtain the longitude and latitude information of the enterprise; S14. Establish an enterprise database based on the acquired enterprise information data, store the enterprise longitude and latitude information in the enterprise database in object storage mode, and then store the enterprise database in a distributed search and analysis engine.
[0006] Furthermore, the specific steps of step S2 are as follows: S21. Rendering the investment map interface, and obtaining the search method selected by the user on the investment map interface; When the location-centric search method is used, the process proceeds to step S22; When the enterprise-centric search method is used, the process proceeds to step S23; When the frame range search mode is selected, the process goes to step S24; S22. Get the location selected by the user in the investment map interface and the radius length of the area entered by the user, and proceed to step S3; S23. Get the enterprise selected by the user in the investment map interface and the area radius length entered by the user, and proceed to step S3; S24. Obtain the closed shape area selected by the user on the investment map.
[0007] Furthermore, the specific steps of step S3 are as follows: S31. GeoHash-encode the enterprise latitude and longitude information stored in the enterprise database in advance, and then convert it into base32 encoding and save it in the distributed search and analysis engine; S32. Pre-configure the center point distance query algorithm, rectangular range query algorithm and polygon range query algorithm in the distributed search and analysis engine; S33. Identify the user's search method; When the location-centric search method is used, the process proceeds to step S34; When the enterprise-centric search method is used, the process proceeds to step S35; When the frame range search mode is selected, the process goes to step S36; S34. The location selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S35. The enterprise selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S36. Identify the shape of the frame range; If it is a circle, determine the center of the circle as the center point and the radius of the circle as the target radius, and go to step S37; If it is a rectangle, go to step S38; If it is a polygon, go to step S39; S37. The latitude and longitude information of the center point and the target radius are input as parameters into the center point distance query algorithm, and the enterprises within the circular range are screened out according to the latitude and longitude information of the enterprises, and the process proceeds to step S4; S38. The longitude and latitude information of the four vertices of the rectangle are input as parameters into the rectangular range query algorithm, and the enterprises within the rectangular range are screened out according to the longitude and latitude information of the enterprises, and the process proceeds to step S4; S39. Input the longitude and latitude information of each vertex of the polygon as parameters into the polygon range query algorithm, and filter out the enterprises within the polygon range based on the longitude and latitude information of the enterprises.
[0008] Furthermore, step S37 also includes the following steps: Verify the effective range of the latitude and longitude information of the center point, and verify whether the target radius is valid; If the latitude and longitude information of the center point is invalid or the target radius is 0, an error log is recorded; Step S38 also includes the following steps: Check the valid range of the longitude and latitude information of each vertex of the rectangle. If there are vertices with invalid longitude and latitude information, record an error log. Step S39 also includes the following steps: The longitude and latitude information of each vertex of the polygon is checked for validity range. If there are vertices with invalid longitude and latitude information, an error log is recorded.
[0009] Furthermore, step S1 also includes the following steps: S15. Pre-configure auxiliary tags for the enterprise information data in the enterprise database; the auxiliary tags include industry tags, sector tags, and qualification tags.
[0010] Furthermore, the specific steps of step S4 are as follows: S41. Determine whether to introduce auxiliary query conditions; If yes, go to step S42; If not, proceed to step S46; S42. Determine the type of auxiliary query conditions; If it is an industry query condition, go to step S43; If it is an industry query condition, go to step S44; If it is a qualification query condition, go to step S45; S43. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened enterprises, and proceed to step S46; S44. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened companies, and proceed to step S46; S45. Determine the qualification type to be queried, and use the corresponding qualification label to perform a secondary screening on the screened enterprises; S46. Display the investment promotion data of the selected enterprises in the enterprise information data in the enterprise database.
[0011] In a second aspect, the embodiment of the present application further provides a system for searching for enterprise investment promotion data within a custom space, including: An enterprise latitude and longitude information storage unit is used to obtain enterprise information data in the investment attraction area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; A query method and spatial range acquisition unit, used to acquire the selected spatial range by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; A unit for searching for enterprises within a spatial range, which is used to pre-configure a query module for each search method in the distributed search and analysis engine, and to use the corresponding query module to perform enterprise search within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; The investment promotion data display unit is used to introduce auxiliary query conditions to filter the queried enterprises, and then display the investment promotion data in the enterprise information data of the filtered enterprises.
[0012] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for searching for enterprise investment data within a custom space as described in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application further provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for searching for enterprise investment promotion data within a custom space as described in the first aspect.
[0014] It can be seen from the above technical solutions that the present invention has the following advantages: In the method, system, device and medium for searching for enterprise investment promotion data within a custom spatial range provided by the present application, by collecting enterprise information data including enterprise latitude and longitude information and establishing an enterprise database, and then saving it in a distributed search and analysis engine, a specific spatial range is determined by combining an investment promotion map and a search method selected by a user, and query modules with multiple search methods are pre-configured in the distributed search and analysis engine. According to user selection, these modules are used to query within the selected spatial range based on the enterprise latitude and longitude information. Finally, auxiliary query conditions are introduced to further filter the query results, and the investment promotion data of the filtered enterprises are displayed. The present invention realizes fast and accurate query of enterprise data within a specific spatial range by combining an investment promotion map with a user-defined search method. Users can select multiple search methods such as location-centered, enterprise-centered or framed range according to actual needs, and can intuitively see the query results on the map, which not only improves the query efficiency, but also meets the user's diverse needs for a custom spatial range. The present invention establishes an enterprise database by comprehensively integrating and optimizing enterprise information data, and introduces the technical means of GeoHash encoding and base32 encoding to achieve efficient storage and query of enterprise longitude and latitude information. At the same time, by configuring multiple query modules and algorithms, the accuracy and adaptability of the query are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0016] Figure 1 A flowchart of an embodiment of a method for searching for enterprise investment promotion data within a custom space range according to the present invention.
[0017] Figure 2 A flowchart diagram of another embodiment of the method for searching for enterprise investment data within a custom space range according to the present invention.
[0018] Figure 3 A schematic diagram of a system for searching for enterprise investment promotion data within a custom space range according to the present invention.
[0019] Figure 4 A schematic diagram of an electronic device for storing a method for searching for enterprise investment promotion data within a custom space range according to the present invention. DETAILED DESCRIPTION
[0020] In the specific steps of the method for finding enterprise investment promotion data within a custom space, which will be described in detail below, various embodiments of the present disclosure will be described more comprehensively. The present disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but rather the present disclosure should be understood to cover all adjustments, equivalents and / or alternatives that fall within the spirit and scope of the various embodiments of the present disclosure.
[0021] For example, in the investment promotion system of major industries, effective management and analysis of enterprise data plays a vital role. However, faced with massive amounts of enterprise data, how to efficiently and accurately retrieve enterprise information located in a specific geographic space has become a major challenge that the investment promotion system needs to solve. Traditional enterprise data retrieval methods are not only inefficient, but also greatly limit the flexibility of users in customizing spatial range queries.
[0022] Specifically, the previous enterprise data query process is often cumbersome and complicated. Users need to go through multiple clicks and inputs to complete a query. This process is not only prone to errors, but the final query results are usually presented in a monotonous list form, lacking intuitive map visualization and data analysis support, making it difficult for users to quickly grasp and understand the overall picture of the query results. Although the introduction of investment maps has simplified the query process of enterprise data to a certain extent, allowing users to search by demarcating fixed circular or rectangular areas on the map, this query method is inadequate when dealing with complex and changeable geographical features and diverse investment needs. For example, the shapes of some industrial parks or development zones may be extremely irregular, and it is difficult to accurately cover these areas using a fixed-shape search range. In addition, the restrictions on shape and editing make it difficult to accurately search for specific streets, plots or buildings, resulting in a large number of enterprises that do not meet the query intent or are in marginal areas in the query results, greatly reducing the accuracy and practicality of obtaining enterprise data. In addition, the traditional query method is also inadequate when screening results, lacking the full mining and utilization of deep-level information of enterprises.
[0023] In response to the above problems, the present embodiment provides a method for searching for enterprise investment promotion data within a custom spatial scope by collecting enterprise information data including enterprise latitude and longitude information and establishing an enterprise database, which is then saved in a distributed search and analysis engine. The investment promotion map and the search method selected by the user are combined to determine a specific spatial scope, and query modules with multiple search methods are pre-configured in the distributed search and analysis engine. According to user selection, these modules are used to query within the selected spatial scope based on the enterprise latitude and longitude information. Finally, auxiliary query conditions are introduced to further filter the query results, and the investment promotion data of the filtered enterprises are displayed, providing a variety of ways to query investment promotion data and improving query efficiency.
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] See also Figure 1 The figure is a flowchart of a method for searching for enterprise investment data within a custom space range in a specific embodiment, and the method includes the following steps: S1. Obtain enterprise information data in the investment promotion area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; It should be noted that comprehensive enterprise information is collected, including but not limited to enterprise name, registered address, contact information, and geographical location latitude and longitude coordinates as enterprise latitude and longitude information. After the collected enterprise information is stored in a dedicated enterprise database, it is connected to a distributed search and analysis engine for subsequent efficient query and analysis; S2. Acquire the selected spatial scope by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; It should be noted that in order to meet the flexible needs of users for customized spatial range queries, the investment promotion system has introduced an investment promotion map function. Users can intuitively see the geographical features of the target area through the investment promotion map and choose the corresponding search method according to their needs. These search methods include but are not limited to location-centered search, enterprise-centered search and frame-defined range search. Users only need to specify the corresponding location or range on the map, and the system can quickly retrieve the enterprise data within the specified spatial range in the database based on these input information; S3. Pre-configure the query module for each search method in the distributed search and analysis engine, and use the corresponding query module to perform enterprise queries within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; It should be noted that, with the support of the distributed search and analysis engine, the investment promotion system can realize rapid query of enterprise data. After the search method selected by the user and the spatial range information entered are parsed by the system, the distributed search and analysis engine will filter out qualified enterprise data in the database based on this information. The query results are usually presented in the form of a list, but more importantly, the system also provides a map display function, so that users can intuitively see the geographical distribution of query results. This intuitive display method helps users understand and evaluate search results more quickly; S4. Introduce auxiliary query conditions to screen the queried enterprises, and then display the investment promotion data in the enterprise information data of the screened enterprises; It should be noted that in addition to basic spatial range queries, the investment promotion system can also use auxiliary query conditions to help users further filter and refine query results. Users can select corresponding conditions for filtering according to their needs, so as to obtain more accurate and expected query results.
[0026] Through the steps of enterprise data collection and storage, investment promotion map and customized spatial range query, efficient query and result display, and auxiliary query conditions and in-depth screening, the investment promotion system of the present invention can realize efficient management and accurate query of enterprise data, which not only improves the efficiency and quality of investment promotion work, but also provides users with a more convenient and intuitive user experience.
[0027] Further, as a refinement and expansion of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, as shown below Figure 2 As shown in the figure, another method for searching for enterprise investment data within a custom space is provided, and the method includes the following steps: S1. Obtain enterprise information data in the investment promotion area, establish an enterprise database, and save the enterprise database to the distributed search and analysis engine. The enterprise information data includes enterprise latitude and longitude information; the specific steps of step S1 are as follows: S11. Identify all enterprises in the investment attraction area; S12. Obtain enterprise information data of each enterprise in the investment promotion area, and determine whether there is enterprise latitude and longitude information; If yes, go to step S14; If not, proceed to step S13; It should be noted that enterprise information data can be obtained through system entry, offline import, third-party system member download, data crawling, etc.; S13. Obtain the registered address of the enterprise in the enterprise information data, and geocode the registered address of the enterprise through the same map service provider as the investment map to obtain the longitude and latitude information of the enterprise; It should be noted that the geocoding technology used and the map plug-in used by the Merchants Map must use the same map service provider, otherwise there will be positioning deviations, generally between 1 and 5 kilometers; S14. Establish an enterprise database based on the acquired enterprise information data, store the enterprise latitude and longitude information in the enterprise database in an object storage manner, and then store the enterprise database in a distributed search and analysis engine; It should be noted that the longitude and latitude of the enterprise are newly stored in the GEO data type. When using it, you need to specify the longitude and latitude in the GEO data type; It should be noted that the enterprise database is established by obtaining enterprise information data, determining the existence of enterprise latitude and longitude information, and performing geocoding, which ensures the integrity and accuracy of enterprise data and provides a reliable basis for subsequent enterprise query and data analysis; S15. Pre-configure auxiliary tags for enterprise information data in the enterprise database; the auxiliary tags include industry tags, industry tags and qualification tags; It should be noted that since different enterprises have different attribute data, auxiliary tags are configured for the enterprise information data in the enterprise database, including industry tags, sector tags, and qualification tags, which provide more dimensions and conditions for subsequent screening and query, allowing users to more accurately locate the enterprises and data they are interested in; S2. Combine the investment map and the search method selected by the user to obtain the selected spatial range, the search method includes a location-centric search method, an enterprise-centric search method, and a framed range search method; the specific steps of step S2 are as follows: S21. Rendering the investment map interface, and obtaining the search method selected by the user on the investment map interface; When the location-centric search method is used, the process proceeds to step S22; When the enterprise-centric search method is used, the process proceeds to step S23; When the frame range search mode is selected, the process goes to step S24; S22. Get the location selected by the user in the investment map interface and the radius length of the area entered by the user, and proceed to step S3; S23. Get the enterprise selected by the user in the investment map interface and the area radius length entered by the user, and proceed to step S3; S24. Obtain the closed shape area selected by the user in the investment map; It should be noted that by rendering the investment map interface, obtaining the search method selected by the user and clarifying the specific steps of the user's search method selection through corresponding parameters, the user can conveniently and quickly select the search method that suits him / her, thereby improving the flexibility of the query and the user experience; S3. Pre-configure the query module for each search method in the distributed search and analysis engine, and use the corresponding query module to perform enterprise queries within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; the specific steps of step S3 are as follows: S31. GeoHash-encode the enterprise latitude and longitude information stored in the enterprise database in advance, and then convert it into base32 encoding and save it in the distributed search and analysis engine; It should be noted that GeoHash encoding converts the longitude and latitude information of an enterprise into a sortable and comparable string code. For example, the latitude (-90, 90) is evenly divided into two intervals (-90, 0) and (0, 90). If the latitude value of the coordinate position is in the first interval, the code is 0, otherwise the code is 1. Take 40.222012 as an example. Since 40.222012 belongs to (0, 90), the code is 1. Then we continue to divide (0, 90) into two intervals (0, 45) and (45, 90). 40.222012 is located in (0, 45), so the code is 0. And so on. We perform 20 splits and finally calculate that the code of 40.222012 is 10111001001101000110. Using the same method for longitude, the code for 116.248283 is 1101001010101010100101; Then merge the codes of longitude and latitude. In the new code, the odd and even bits are the cross-merged longitude and latitude. The code of the longitude and latitude above (116.248283, 40.222012) is 1110011101001001100011011001100000110110; Finally, base32 encoding is performed. The binary strings of the latitude and longitude are 28, 29, 4, 24, 27, 6,1, 22, which are converted to base32 as wx4sv61q. Therefore, the encoding of (40.222012, 116.248283) is wx4sv61q. Base32 is a 32-character encoding method to represent binary data. It is easier to read and print than binary encoding. Through the above process, the GeoHash algorithm can convert the latitude and longitude information into a short string code, which not only contains the geographical location information, but also facilitates comparison and sorting, and is very suitable for indexing and querying geographical locations. S32. Pre-configure the center point distance query algorithm, rectangular range query algorithm and polygon range query algorithm in the distributed search and analysis engine; S33. Identify the user's search method; When the location-centric search method is used, the process proceeds to step S34; When the enterprise-centric search method is used, the process proceeds to step S35; When the frame range search mode is selected, the process goes to step S36; S34. The location selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S35. The enterprise selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S36. Identify the shape of the frame range; If it is a circle, determine the center of the circle as the center point and the radius of the circle as the target radius, and go to step S37; If it is a rectangle, go to step S38; If it is a polygon, go to step S39; S37. The latitude and longitude information of the center point and the target radius are input as parameters into the center point distance query algorithm, and the enterprises within the circular range are screened out according to the latitude and longitude information of the enterprises, and the process proceeds to step S4; It should be noted that in the distributed search engine ES, the center point distance query algorithm can be performed through the following code: GeoDistanceQueryBuilder location = EsGeoUtil.formatByRound("ES field name", center point longitude, center point latitude, radius, unit (meter or kilometer)); S38. The longitude and latitude information of the four vertices of the rectangle are input as parameters into the rectangular range query algorithm, and the enterprises within the rectangular range are screened out according to the longitude and latitude information of the enterprises, and the process proceeds to step S4; It should be noted that to find the enterprise investment data by obtaining the longitude and latitude coordinates of each vertex by drawing a rectangle, it is necessary to use the range query algorithm in the distributed search and analysis engine ES to assign the longitude and latitude sets of each vertex of the rectangle to the point set. The following code can be used to filter out all the enterprise investment data within this range: GeoBoundingBoxQueryBuilder location = EsGeoUtil.formatByRectangle("ES field name",upper left corner longitude, upper left corner latitude, lower right corner longitude, lower right corner latitude); S39. Input the longitude and latitude information of each vertex of the polygon as parameters into the polygon range query algorithm, and select the enterprises within the polygon range according to the longitude and latitude information of the enterprises; It should be noted that to obtain the longitude and latitude coordinates of each vertex through polygon drawing to search for enterprise investment data, it is necessary to use the polygon range query algorithm in the distributed search and analysis engine to assign the longitude and latitude sets of each vertex to the point set. The following code can be used to filter out all enterprise investment data within this range: GeoPolygonQueryBuilder location = EsGeoUtil.formatByPolygon("ES field name", longitude and latitude sets of each point); It should be noted that the specific implementation process of enterprise query within the spatial scope is described through the coding processing of enterprise latitude and longitude information, the configuration of query algorithm, the identification of search method and the corresponding query steps, which ensures the accuracy and efficiency of the query and can meet the query needs of different users for different shapes and ranges; S4. Introduce auxiliary query conditions to filter the queried enterprises, and then display the investment data in the enterprise information data of the filtered enterprises; the specific steps of step S4 are as follows: S41. Determine whether to introduce auxiliary query conditions; If yes, go to step S42; If not, proceed to step S46; S42. Determine the type of auxiliary query conditions; If it is an industry query condition, go to step S43; If it is an industry query condition, go to step S44; If it is a qualification query condition, go to step S45; S43. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened enterprises, and proceed to step S46; S44. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened companies, and proceed to step S46; S45. Determine the qualification type to be queried, and use the corresponding qualification label to perform a secondary screening on the screened enterprises; S46. Display the investment promotion data of the selected enterprises in the enterprise information data in the enterprise database; It should be noted that by introducing the specific steps of filtering the queried enterprises through auxiliary query conditions, users can further filter and optimize the query results according to their own needs and conditions, thereby improving the pertinence and practicality of the query results.
[0028] On the basis of the above embodiments, in order to further improve the legality and effectiveness of the query parameters of the enterprise investment data query method provided in the above embodiments, and avoid query errors and waste of resources caused by invalid parameters, an implementable method is provided. In one embodiment, the valid range of each longitude and latitude information can be verified.
[0029] Step S37 also includes the following steps: Verify the effective range of the latitude and longitude information of the center point, and verify whether the target radius is valid; If the latitude and longitude information of the center point is invalid or the target radius is 0, an error log is recorded; It should be noted that a target radius of 0 or empty is invalid; Step S38 also includes the following steps: Check the valid range of the longitude and latitude information of each vertex of the rectangle. If there are vertices with invalid longitude and latitude information, record an error log. For example, the effective longitude can be set from -180 degrees to 180 degrees, and the effective latitude can be set from -85.05112878 degrees to 85.05112878 degrees; Step S39 also includes the following steps: Check the valid range of the longitude and latitude information of each vertex of the polygon. If there are vertices with invalid longitude and latitude information, an error log is recorded. It should be noted that by checking the valid range of the query parameters of the latitude and longitude information of the center point, the target radius, and the latitude and longitude information of the rectangle and polygon vertices, the legality and validity of the query parameters are ensured, avoiding query errors and resource waste caused by invalid parameters.
[0030] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0031] like Figure 3 As shown, the following is an embodiment of a system for searching for enterprise investment promotion data within a custom space scope provided by an embodiment of the present disclosure. This system and the systems for searching for enterprise investment promotion data within a custom space scope in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the system for searching for enterprise investment promotion data within a custom space scope, reference can be made to the embodiment of the method for searching for enterprise investment promotion data within a custom space scope mentioned above.
[0032] The system includes: An enterprise latitude and longitude information storage unit is used to obtain enterprise information data in the investment attraction area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; A query method and spatial range acquisition unit, used to acquire the selected spatial range by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; A unit for searching for enterprises within a spatial range, which is used to pre-configure a query module for each search method in the distributed search and analysis engine, and to use the corresponding query module to perform enterprise search within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; The investment promotion data display unit is used to introduce auxiliary query conditions to filter the queried enterprises, and then display the investment promotion data in the enterprise information data of the filtered enterprises.
[0033] The system for searching for enterprise investment promotion data within a custom spatial range provided by the present invention realizes a fast and accurate query of enterprise data within a specific spatial range by combining an investment promotion map and a user-defined search method. Users can select a variety of search methods such as location-centered, enterprise-centered or framed range according to actual needs, and can intuitively see the query results on the map, which not only improves the query efficiency, but also meets the user's diverse needs for custom spatial ranges. The present invention realizes efficient storage and query of enterprise latitude and longitude information by comprehensively integrating and optimizing enterprise information data, establishing an enterprise database, and introducing the technical means of GeoHash encoding and base32 encoding. At the same time, by configuring a variety of query modules and algorithms, the accuracy and adaptability of the query are improved.
[0034] The investment target is to find enterprises in the equipment manufacturing industry located in a certain industrial park. However, the shape of this industrial park is irregular, and the traditional search method based on circles or rectangles cannot meet the requirements.
[0035] The specific implementation is as follows: 1. Establish an enterprise database Determine the investment promotion area and clarify the boundaries of the industrial park.
[0036] Collect enterprise information and obtain basic information of all enterprises in the industrial park, including enterprise name, registered address, etc.; Obtain longitude and latitude information. For enterprises that already have longitude and latitude information, directly record it. For enterprises that do not have longitude and latitude information, use the same map service as the investment promotion map, such as Amap, to geocode their registered addresses and obtain longitude and latitude information. Establish an enterprise database, save enterprise information in the enterprise database in the form of object storage, including latitude and longitude information, and upload the enterprise database to the distributed search and analysis engine; Configure industry tags, sector tags, and qualification tags for the enterprise information in the enterprise database. For example, enterprises in the equipment manufacturing industry can be labeled with corresponding industry tags.
[0037] 2. Select the spatial range Render the investment attraction map and load the industrial park map in the investment attraction system; Select the search method, the user selects the frame range search method; The user manually draws a closed polygonal area on the map, covering the entire industrial park; 3. Enterprise Query Preprocess the data, perform GeoHash encoding on the longitude and latitude information of the enterprise in the enterprise database, convert it into base32 encoding, and store it in the distributed search and analysis engine; Configure query algorithms and pre-configure polygon range query algorithms in the distributed search and analysis engine; Execute the query, identify that the search method selected by the user is the frame range search method, input the longitude and latitude information of each vertex of the polygon area drawn by the user as parameters into the polygon range query algorithm, verify whether the longitude and latitude information of the polygon vertices is valid, if there is invalid information, record the error log, and filter out the enterprises within the polygon range based on the longitude and latitude information of the enterprises.
[0038] 4. Screening and Display Introducing auxiliary query conditions, users can select industry query conditions; Determine the query conditions, the user specifies the equipment manufacturing industry; Secondary screening: Use industry labels to conduct secondary screening on the enterprises selected in the third step to obtain a list of enterprises belonging to the equipment manufacturing industry; Display investment promotion data and display the investment promotion data of these enterprises in the investment promotion system, such as investment intentions, production capacity, and contact information.
[0039] Finally, through the investment promotion system, we successfully screened out a number of companies located in the industrial park and belonging to the equipment manufacturing industry, providing strong support for subsequent investment promotion work. The entire process was efficient and accurate, meeting users' flexible needs for customized spatial range queries.
[0040] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0041] The method for searching for enterprise investment promotion data within a custom space range provided in the embodiment of the present application can be applied to electronic devices. It can be understood by those skilled in the art that the electronic device structure involved in the embodiment of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or less components than shown in the figure, or combine certain components, or arrange different components. In an embodiment of the present invention, the electronic device includes but is not limited to a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the embodiments of the present application described and / or required herein.
[0042] The electronic device may include a processor, an external memory interface, an internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, a wireless communication module, an audio module, a speaker, a microphone, a sensor module, buttons, a camera, a display, and a SIM card interface, etc.
[0043] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0044] The processor may include one or more processing units, for example, the processor may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors.
[0045] The processor can be the nerve center and command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0046] A memory may also be provided in the processor for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. The memory may store instructions or data that the processor has just used or is cyclically used. If the processor needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor, and thus improves system efficiency.
[0047] The above-mentioned electronic device implements the method of searching for enterprise investment data within a custom spatial scope in the present application, which obtains enterprise information data within the investment area, establishes an enterprise library, and saves the enterprise library to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; obtains the selected spatial range in combination with the investment map and the search method selected by the user, wherein the search method includes a location-centered search method, an enterprise-centered search method, and a framed range search method; pre-configures a query module for each search method in the distributed search and analysis engine, and uses the corresponding query module according to the search method selected by the user to query enterprises within the selected spatial range based on the enterprise latitude and longitude information; introduces auxiliary query conditions to screen the queried enterprises, and then displays the investment data in the enterprise information data of the screened enterprises, thereby providing a variety of ways to query investment data and improving the query efficiency.
[0048] The storage medium provided in the present application stores a program product that can implement a method for searching for enterprise investment promotion data within a custom space.
[0049] The method for searching for enterprise investment promotion data within a custom spatial scope includes: obtaining enterprise information data within the investment promotion area, establishing an enterprise database, and saving the enterprise database in a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; obtaining a selected spatial scope in combination with an investment promotion map and a search method selected by a user, wherein the search method includes a location-centered search method, an enterprise-centered search method, and a framed range search method; pre-configuring a query module for each search method in the distributed search and analysis engine, and using the corresponding query module according to the search method selected by the user to query enterprises within the selected spatial scope based on the enterprise latitude and longitude information; introducing auxiliary query conditions to screen the queried enterprises, and then displaying the investment promotion data in the enterprise information data of the screened enterprises.
[0050] In some possible implementations, the method for searching for corporate investment data within a custom space range disclosed herein can be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps described in the above “Exemplary Method” section of this specification according to various exemplary implementations of the present disclosure.
[0051] The storage medium of the present disclosure can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0052] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for searching for enterprise investment data within a custom space, characterized in that: The steps include: S1. Obtain enterprise information data in the investment promotion area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; S2. Acquire the selected spatial scope by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; S3. Pre-configure the query module for each search method in the distributed search and analysis engine, and use the corresponding query module to perform enterprise queries within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; S4. Introduce auxiliary query conditions to screen the queried enterprises, and then display the investment promotion data in the enterprise information data of the screened enterprises.
2. The method for searching for enterprise investment data within a custom space as claimed in claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Identify all enterprises in the investment attraction area; S12. Obtain enterprise information data of each enterprise in the investment promotion area, and determine whether there is enterprise latitude and longitude information; If yes, go to step S14; If not, proceed to step S13; S13. Obtain the registered address of the enterprise in the enterprise information data, and geocode the registered address of the enterprise through the same map service provider as the investment map to obtain the longitude and latitude information of the enterprise; S14. Establish an enterprise database based on the acquired enterprise information data, store the enterprise longitude and latitude information in the enterprise database in object storage mode, and then store the enterprise database in a distributed search and analysis engine.
3. The method for searching for enterprise investment data within a custom space as claimed in claim 2, characterized in that: The specific steps of step S2 are as follows: S21. Rendering the investment map interface, and obtaining the search method selected by the user on the investment map interface; When the location-centric search method is used, the process proceeds to step S22; When the enterprise-centric search method is used, the process proceeds to step S23; When the frame range search mode is selected, the process goes to step S24; S22. Get the location selected by the user in the investment map interface and the radius length of the area entered by the user, and proceed to step S3; S23. Get the enterprise selected by the user in the investment map interface and the area radius length entered by the user, and proceed to step S3; S24. Obtain the closed shape area selected by the user on the investment map.
4. The method for searching for enterprise investment data within a custom space as claimed in claim 3, characterized in that: The specific steps of step S3 are as follows: S31. GeoHash-encode the enterprise latitude and longitude information stored in the enterprise database in advance, and then convert it into base32 encoding and save it in the distributed search and analysis engine; S32. Pre-configure the center point distance query algorithm, rectangular range query algorithm and polygon range query algorithm in the distributed search and analysis engine; S33. Identify the user's search method; When the location-centric search method is used, the process proceeds to step S34; When the enterprise-centric search method is used, the process proceeds to step S35; When the frame range search mode is selected, the process goes to step S36; S34. The location selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S35. The enterprise selected by the user in the investment map interface is used as the center point, and the area radius length input by the user is used as the target radius, and the process proceeds to step S37; S36. Identify the shape of the frame range; If it is a circle, determine the center of the circle as the center point and the radius of the circle as the target radius, and go to step S37; If it is a rectangle, go to step S38; If it is a polygon, go to step S39; S37. The latitude and longitude information of the center point and the target radius are input as parameters into the center point distance query algorithm, and the enterprises within the circular range are screened out according to the latitude and longitude information of the enterprises, and the process proceeds to step S4; S38. The longitude and latitude information of the four vertices of the rectangle are input as parameters into the rectangular range query algorithm, and the enterprises within the rectangular range are screened out according to the longitude and latitude information of the enterprises, and the process proceeds to step S4; S39. Input the longitude and latitude information of each vertex of the polygon as parameters into the polygon range query algorithm, and filter out the enterprises within the polygon range based on the longitude and latitude information of the enterprises.
5. The method for searching for enterprise investment data within a custom space as claimed in claim 4, characterized in that: Step S37 also includes the following steps: Verify the effective range of the latitude and longitude information of the center point, and verify whether the target radius is valid; If the latitude and longitude information of the center point is invalid or the target radius is 0, an error log is recorded; Step S38 also includes the following steps: Check the valid range of the longitude and latitude information of each vertex of the rectangle. If there are vertices with invalid longitude and latitude information, record an error log. Step S39 also includes the following steps: The longitude and latitude information of each vertex of the polygon is checked for validity range. If there are vertices with invalid longitude and latitude information, an error log is recorded.
6. The method for searching for enterprise investment data within a custom space as claimed in claim 4, characterized in that: Step S1 also includes the following steps: S15. Pre-configure auxiliary tags for the enterprise information data in the enterprise database; the auxiliary tags include industry tags, sector tags, and qualification tags.
7. The method for searching for enterprise investment data within a custom space as claimed in claim 6, characterized in that: The specific steps of step S4 are as follows: S41. Determine whether to introduce auxiliary query conditions; If yes, go to step S42; If not, proceed to step S46; S42. Determine the type of auxiliary query conditions; If it is an industry query condition, go to step S43; If it is an industry query condition, go to step S44; If it is a qualification query condition, go to step S45; S43. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened enterprises, and proceed to step S46; S44. Determine the industry type of the query, use the corresponding industry label to perform a secondary screening on the screened companies, and proceed to step S46; S45. Determine the qualification type to be queried, and use the corresponding qualification label to perform a secondary screening on the screened enterprises; S46. Display the investment promotion data of the selected enterprises in the enterprise information data in the enterprise database.
8. A system for searching for enterprise investment data within a custom space, characterized in that: include: An enterprise latitude and longitude information storage unit is used to obtain enterprise information data in the investment attraction area, establish an enterprise database, and save the enterprise database to a distributed search and analysis engine, wherein the enterprise information data includes enterprise latitude and longitude information; A query method and spatial range acquisition unit, used to acquire the selected spatial range by combining the investment promotion map and the search method selected by the user, wherein the search methods include a location-centered search method, an enterprise-centered search method, and a framed range search method; A unit for searching for enterprises within a spatial range, which is used to pre-configure a query module for each search method in the distributed search and analysis engine, and to use the corresponding query module to perform enterprise search within the selected spatial range based on the enterprise latitude and longitude information according to the search method selected by the user; The investment promotion data display unit is used to introduce auxiliary query conditions to filter the queried enterprises, and then display the investment promotion data in the enterprise information data of the filtered enterprises.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for searching for enterprise investment data within a custom space as described in any one of claims 1 to 7 are implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for searching for enterprise investment promotion data within a custom space as described in any one of claims 1 to 7 are implemented.