Geocoding-based investment attraction map drawing method, system and equipment and medium
By establishing an enterprise database and performing geocoding and address resolution aggregation, the automatic drawing of investment promotion maps is realized, solving the problem of unintuitive enterprise layout analysis in the existing system, and improving the efficiency and interactivity of investment promotion maps.
Patent Information
- Application Number
- CN202411696350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The map function of the existing investment promotion system has limitations in the overall layout analysis of the enterprise, and it is difficult for users to intuitively understand the distribution of enterprises in different regions, and the information display is not intuitive, which increases the difficulty for users to understand the development of the region and reduces the efficiency of investment promotion activities.
By establishing an enterprise database, geocoding and address resolution aggregation, obtaining the enterprise's geographical coordinates and administrative division codes, performing hierarchical summary and dynamic rendering, and achieving automated drawing of investment promotion maps.
It improves the efficiency and accuracy of investment promotion map drawing, enhances the interactivity and practicality of maps, solves the differences between different map service manufacturers, and improves the compatibility and scalability of the system.
Smart Images

Figure CN119516892A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of map drawing, and in particular relates to a method, system, device and medium for drawing investment promotion maps based on geographic coding. Background Art
[0002] In investment promotion activities, by displaying corporate information to the outside world, investors or competent authorities can gain a comprehensive understanding of regional industries, companies and the surrounding environment. Traditional investment promotion display methods often rely on paper maps, text descriptions or simple electronic maps, which have many shortcomings in information display, data update or interactive experience.
[0003] At present, investment promotion systems with integrated map functions have appeared, but these investment promotion systems still have many problems in actual operation, especially in the analysis of the overall layout of enterprises. First of all, from the user experience, the existing investment promotion systems have limitations in the map function. When users use maps for investment promotion analysis, it is difficult to intuitively understand the distribution of the number of enterprises in different regions. The information display is not intuitive, which not only increases the difficulty for users to understand the overall development of the region, but also reduces the efficiency of the overall investment promotion activities, causing users to spend a lot of time and energy to organize and analyze data in order to obtain a relatively accurate enterprise layout. Secondly, the map of the existing investment promotion system only has a display function for one level of enterprise information, and cannot be further refined for sub-regions, resulting in users being unable to deeply understand the enterprise information of a certain area through the map, and can only obtain the required enterprise information by constantly switching and querying different data sources. Summary of the invention
[0004] In a first aspect, an embodiment of the present application provides a method for drawing an investment promotion map based on geocoding, comprising the following steps: S1. Establish an enterprise database for the investment promotion area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; S2. Obtain enterprise information in the enterprise database, and perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; S3. Summarize the enterprise information of each level for each level of administrative division code in the investment promotion area, and store the summary results; S4. respond to the user's hierarchical display request to render the enterprise information summarized at the corresponding level for the investment map, and respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates.
[0005] Furthermore, the specific steps of step S1 are as follows: S11. Determine the investment attraction area and all enterprises within the investment attraction area; S12. Obtain enterprise information of each enterprise in the investment promotion area and establish an enterprise database; the enterprise information includes the registered address of the enterprise; S13. Building a unified geocoding request formatting service based on the geocoding methods of various map service providers; S14. Obtain the registered address of the enterprise, determine the target map service provider, call the unified geocoding formatting request service for formatting, input the target map service provider for geocoding, and obtain the geographic coordinates of the enterprise.
[0006] Furthermore, the specific steps of step S13 are as follows: S131. Determine the standard format for the registered address of an enterprise; S132. Establish a geocoding request generation module for each map service provider; S133. Establish a first address conversion module to convert the registered address of an enterprise that does not conform to the standard format; S134. Establishing a first map service provider selection module; S135. Integrate the first address conversion module, the first map service provider selection module and each geocoding request generation module into a geocoding request formatting service, and use the registered address of the enterprise as input and the geocoding request as output; The specific steps of step S14 are as follows: S141. Obtain the registered address of the enterprise and the selected target map service provider; S142. Determine whether the registered address of the enterprise conforms to the standard format through the first address conversion module; If yes, go to step S143; If not, convert the company's registered address to a standard format; S143. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the first map service provider selection module; S144. Use the geocoding request generation module corresponding to the selected map service provider to perform geocoding, obtain the longitude and latitude as geographic coordinates, and save them in the database.
[0007] Furthermore, the specific steps of step S2 are as follows: S21. Obtain the registered address of each enterprise in the enterprise database; S22. Building a unified address resolution aggregation request formatting service based on the address resolution aggregation methods of various map service providers; S23. Obtain the registered address of the enterprise and determine the target map service provider. Then, call a unified address resolution aggregation request service to format it, input the target map service provider for address resolution aggregation, and obtain the administrative division codes of each level of the area to which the enterprise belongs.
[0008] Furthermore, the specific steps of step S22 are as follows: S221. Determine the standard format for the registered address of an enterprise; S222. Establish an address resolution aggregation request generation module for each map service provider; S223. Establish a second address conversion module to convert the registered address of the enterprise that does not conform to the standard format; S224. Establish a second map service provider selection module; S225. Integrate the second address conversion module, the second map service provider selection module and each address resolution aggregation request generation module into an address resolution aggregation request formatting service, and use the registered address of the enterprise as input and the address resolution aggregation request as output; The specific steps of step S23 are as follows: S231. Obtain the registered address of the enterprise and the selected target map service provider; S232. Determine whether the registered address of the enterprise conforms to the standard format through the second address conversion module; If yes, go to step S233; If not, convert the company's registered address to a standard format; S233. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the second map service provider selection module; S234. Use the address resolution aggregation request generation module corresponding to the selected map service provider to perform address resolution aggregation, obtain the administrative division codes of each level of the area to which the enterprise belongs, and save them in the database.
[0009] Furthermore, the specific steps of step S3 are as follows: S31. Determine the administrative division level within the investment promotion area and summarize the enterprise information of the entire investment promotion area; S32. Group and summarize the enterprise information in each highest level administrative division area according to the highest level administrative division code, and count the number of highest level administrative division areas; S33. Locate each highest level administrative division area; S34. For the highest level administrative division area located, the enterprise information of each level of administrative division is summarized in descending order according to the administrative division code of that level, until the enterprise information of the lowest level administrative division area is summarized; S35. Collect statistics on the auxiliary investment information in the enterprise information of each enterprise in the investment area and save it in the database.
[0010] Furthermore, the specific steps of step S4 are as follows: S41. In response to the user's request to display the investment map, the map of the overall investment area is rendered at the minimum scale by default, and the text is rendered to display the overall summary of corporate information in the investment area; S42. responding to the user's highest level display request, identifying the area of the highest level administrative division selected by the user, zooming in and rendering it according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected highest level administrative division; S43. responding to the user's request for displaying the next level, identifying the area of the next level administrative division selected by the user, zooming in and rendering according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected next level administrative division; S44. Responses to the display requests of the next level are performed in sequence according to step S43 until the lowest level administrative division is reached; S45. Respond to the user's request for enterprise display, identify the lowest-level administrative region selected by the user, obtain the geographic coordinates of all enterprises in the region, render the enterprise location based on the enterprise geographic coordinates and use the map drawing library, and provide the corresponding auxiliary investment promotion information of the enterprise.
[0011] In a second aspect, the embodiment of the present application further provides a system for drawing investment promotion maps based on geocoding, including: The enterprise address geocoding unit is used to establish an enterprise database for the investment attraction area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; The enterprise address resolution and aggregation unit is used to obtain enterprise information in the enterprise database, and to perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; The enterprise information summary unit is used to summarize the enterprise information of each level of the administrative division code of each level of the investment promotion area and store the summary results; The investment promotion map hierarchical rendering unit is used to respond to the user's hierarchical display request to render the corresponding hierarchical enterprise information for the investment promotion map, and to respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates.
[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 drawing a geocoding-based investment promotion map 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, and when the computer program is executed by a processor, the steps of the method for drawing a business investment map based on geocoding as described in the first aspect are implemented.
[0014] It can be seen from the above technical solutions that the present invention has the following advantages: In the geocoding-based investment map drawing method, system, device and medium provided by the present application, an enterprise library containing enterprise information is created for the investment area, and the enterprise address information in the enterprise library is used to perform address resolution aggregation operations to obtain the administrative division codes of each level of the area to which each enterprise belongs, and hierarchically summarize the enterprise information in the investment area according to the administrative division code, and dynamically render the investment map according to the user's hierarchical display request. The present invention reduces the cost of investment map drawing and improves work efficiency by automatically completing the geocoding, address resolution aggregation, information aggregation and map rendering of enterprise information. Through hierarchical rendering and dynamic display functions, users can view enterprise information of different levels as needed, which improves the interactivity and practicality of the investment map. By constructing a unified geocoding request formatting service and address resolution aggregation request formatting service, the difference problem between different map service vendors is solved, and the compatibility and scalability of the system 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 The present invention is a flowchart of an embodiment of a method for drawing an investment promotion map based on geocoding.
[0017] Figure 2 The present invention is a flowchart of another embodiment of the method for drawing investment promotion maps based on geocoding.
[0018] Figure 3 It is a schematic diagram of the investment attraction map drawing system based on geographic coding of the present invention.
[0019] Figure 4The present invention is a schematic diagram of an electronic device storing a method for drawing a business attraction map based on geographic coding. DETAILED DESCRIPTION
[0020] In the specific steps of the geocoding-based investment promotion map drawing method, various embodiments of the present disclosure will be described in detail below. 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 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 investment promotion activities, in order to attract investors or competent authorities, it is crucial to fully display regional industries, enterprises and surrounding environment information. However, traditional investment promotion display methods, such as paper maps, text descriptions or basic electronic maps, have obvious shortcomings in information presentation, real-time data updates and user interactive experience.
[0022] Although there are investment promotion systems with integrated map functions, these systems still face many challenges in actual application, especially in the in-depth analysis of the overall layout of enterprises. From the perspective of user experience, the map function of the existing investment promotion system is still insufficient. When users use maps for investment promotion analysis, it is difficult to intuitively grasp the distribution of the number of enterprises in different regions, and the display of information is not intuitive enough, which not only increases the difficulty for users to understand the overall development status of the region, but also slows down the pace of the entire investment promotion activity. Users often need to spend a lot of time and energy to organize and analyze data in order to barely obtain a relatively accurate picture of the enterprise layout.
[0023] In addition, the map function of the existing investment promotion system usually only displays corporate information at a single level and cannot be further refined to sub-regions, which limits the user's ability to gain in-depth understanding of corporate information in a specific area through the map. Users have to frequently switch and query different data sources to obtain the required corporate information, which undoubtedly reduces work efficiency and user experience.
[0024] In response to the above problems, this embodiment provides a geocoding-based investment promotion map drawing and method, which greatly improves the efficiency of drawing investment promotion maps through automated address coordinate conversion and map drawing technology. By utilizing the latest geocoding services, the accuracy of the enterprise locations on the investment promotion map is ensured. Users can quickly obtain industrial investment promotion maps, thereby improving user experience.
[0025] 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.
[0026] See also Figure 1 The figure is a flow chart of a method for drawing an investment attraction map based on geocoding in a specific embodiment, the method comprising: S1. Establish an enterprise database for the investment promotion area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; It should be noted that enterprise information is obtained through system entry, offline import, third-party system member download, data crawling, etc.; these addresses are converted into geographic coordinates through geocoding technology so that they can be accurately located on the map; S2. Obtain enterprise information in the enterprise database, and perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; It should be noted that obtaining administrative division codes at all levels through address aggregation helps to understand the distribution and ownership of enterprises in geographical space; S3. Summarize the enterprise information of each level for each level of administrative division code in the investment promotion area, and store the summary results; It should be noted that the enterprise information at the corresponding level can be obtained through administrative division codes; S4. Respond to the user's hierarchical display request to render the corresponding hierarchical summary of enterprise information for the investment map, and respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates; It should be noted that through interactive map display, users can easily understand the layout and distribution of enterprises in the investment promotion area.
[0027] This application provides a method for drawing investment promotion maps based on geocoding. By creating an enterprise library, address resolution aggregation, hierarchical aggregation and dynamic rendering, it realizes the automatic drawing of investment promotion maps, reduces the cost of map drawing, improves map drawing efficiency, enhances interactivity and practicality, and solves the problem of map service differences, thereby improving system compatibility and scalability.
[0028] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for drawing a business investment map based on geocoding is provided, such as Figure 2 As shown, the method comprises the following steps: S1. Establish an enterprise database for the investment promotion area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; the specific steps of step S1 are as follows: S11. Determine the investment attraction area and all enterprises within the investment attraction area; S12. Obtain enterprise information of each enterprise in the investment promotion area and establish an enterprise database; the enterprise information includes the registered address of the enterprise; S13. Building a unified geocoding request formatting service based on the geocoding methods of various map service providers; S14. Obtain the registered address of the enterprise, determine the target map service provider, call the unified geocoding formatting request service for formatting, input the target map service provider for geocoding, and obtain the geographic coordinates of the enterprise; It should be noted that by establishing an enterprise database and performing geocoding, the accuracy of enterprise information and the reliability of geographic coordinates are ensured, providing a basis for subsequent enterprise information display; S2. Obtain enterprise information in the enterprise database, and perform address resolution aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; the specific steps of step S2 are as follows: S21. Obtain the registered address of each enterprise in the enterprise database; for example, the format of the enterprise registration address may be No. XX, XX Road (Street), XX District (County), XX City, XX Province; S22. Building a unified address resolution aggregation request formatting service based on the address resolution aggregation methods of various map service providers; the map service providers may be Baidu Maps, Amap, Tencent Maps, and Tiandi Maps; S23. Obtain the registered address of the enterprise, determine the target map service provider, call the unified address resolution aggregation request service for formatting, input the target map service provider for address resolution aggregation, and obtain the administrative division codes of each level of the area to which the enterprise belongs; It should be noted that address resolution aggregation can obtain administrative division codes at all levels of the region where the enterprise belongs, providing key data for subsequent enterprise information aggregation and display; S3. Summarize the enterprise information of each level of the administrative division code of each level of the investment promotion area and store the summary results; the specific steps of step S3 are as follows: S31. Determine the administrative division level within the investment promotion area and summarize the enterprise information of the entire investment promotion area; S32. Group and summarize the enterprise information in each highest level administrative division area according to the highest level administrative division code, and count the number of highest level administrative division areas; S33. Locate each highest level administrative division area; S34. For the highest level administrative division area located, the enterprise information of each level of administrative division is summarized in descending order according to the administrative division code of that level, until the enterprise information of the lowest level administrative division area is summarized; S35. The auxiliary investment information of each enterprise in the investment area is counted and saved in the database; It should be noted that by summarizing and counting the information of enterprises in the investment promotion area, we can fully understand the distribution of enterprises at different levels in the investment promotion area, and provide strong support for investment promotion decisions; Exemplarily, the auxiliary investment promotion information includes traffic conditions and surrounding facilities; S4. Respond to the user's hierarchical display request to render the corresponding hierarchical summary of enterprise information for the investment map, and respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates; the specific steps of step S4 are as follows: S41. In response to the user's request to display the investment map, the map of the overall investment area is rendered at the minimum scale by default, and the text is rendered to display the overall summary of corporate information in the investment area; S42. responding to the user's highest level display request, identifying the area of the highest level administrative division selected by the user, zooming in and rendering it according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected highest level administrative division; S43. responding to the user's request for displaying the next level, identifying the area of the next level administrative division selected by the user, zooming in and rendering according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected next level administrative division; S44. Responses to the display requests of the next level are performed in sequence according to step S43 until the lowest level administrative division is reached; S45. respond to the user's enterprise display request, identify the lowest level administrative division area selected by the user, obtain the geographic coordinates of all enterprises in the area, and render the enterprise location according to the enterprise geographic coordinates using the map drawing library, and the corresponding auxiliary investment information of the enterprise; It should be noted that through the hierarchical rendering of the investment promotion map, the investment promotion map can be dynamically rendered according to the user's hierarchical display request, and the company location and auxiliary investment promotion information can be displayed under the lowest level display request, which improves the interactivity and practicality of the investment promotion map.
[0029] In an embodiment of the present invention, based on step S13 and step S14, a possible embodiment is given below to illustrate its specific implementation scheme in a non-limiting manner.
[0030] The specific steps of step S13 are as follows: S131. Determine the standard format of the enterprise's registered address; S132. Establish a geographic coding request generation module for each map service provider; S133. Establish a first address conversion module to convert the registered addresses of enterprises that do not conform to the standard format; Exemplarily, since the registered addresses of many enterprises are not standardized, address formatting is required before conversion. For example, many registered addresses are 1#, 2#, etc., and this information needs to be formatted as Building 1, Building 2 to meet the requirements; S134. Establish a first map service provider selection module; S135. Integrate the first address conversion module, the first map service provider selection module, and each geographic coding request generation module into a geographic coding request formatting service, with the enterprise's registered address as the input and the geographic coding request as the output; It should be noted that since the geographic coding services of each map service provider are different, the geographic coding request formatting service created here solves the problems of different URL request addresses, request parameters, return bodies, and secret key verification mechanisms in the geographic coding APIs of multiple service providers, achieving consistent input parameters, consistent output return bodies, and allowing dynamic specification of map service providers; Taking Baidu Map and Tencent Map as an example for comparison, for example: For the Baidu Map geographic coding API, its request method is: baidu-url?output=json&extension_analys_level=true&address=address&ak=secret key&city=city where it belongs; where output is the specified data format as json, extension_analys_level is a required fixed parameter, address is the enterprise address, and the data format of this address can be XX Province XX City XX District (County) XX Road (Street) XX Number, ak is the access secret key applied for in the Baidu Open Platform, and city is the city where the address belongs; For the Tencent Map geographic coding API, its request method is: tengxun-url?output=json&address=address&key=secret key; where output is the specified data format as json, address is the enterprise address, and the data format of this address can be XX Province XX City XX District (County) XX Road (Street) XX Number, and key is the access secret key applied for in the Tencent Open Platform; Since different map service providers define geocoding APIs differently, the geocoding request formatting service is compatible with the geocoding APIs provided by various map service providers. When using it, you only need to specify the company address and the map provider enumeration value to be used. For example, Baidu Map needs to specify the enumeration value as BD, Tencent Map needs to specify the enumeration value as TX, Amap needs to specify the enumeration value as GD, and Tiandi Map needs to specify the enumeration value as TDT. The key is applied for in advance from the map service provider and placed in the corresponding geocoding request generation module; The specific steps of step S14 are as follows: S141. Obtain the registered address of the enterprise and the selected target map service provider; S142. Determine whether the registered address of the enterprise conforms to the standard format through the first address conversion module; If yes, go to step S143; If not, convert the company's registered address to a standard format; S143. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the first map service provider selection module; S144. Use the geocoding request generation module corresponding to the selected map service provider to perform geocoding, obtain the longitude and latitude as geographic coordinates, and save them in the database; It should be noted that, similar to geocoding, the address resolution aggregation service APIs provided by existing address resolution aggregation service providers, such as Baidu Map, Amap, Tencent Map, and Tiandi Map, are different. Therefore, an address resolution aggregation formatting service is created to solve the different problems of URL request addresses, request parameters, return bodies, and secret key verification mechanisms in the address resolution aggregation service APIs of multiple service providers, so as to achieve consistent entry parameters and exit return bodies, and dynamically specify service providers. Specifically, you only need to specify the company address and the map vendor enumeration value to be used. For example, Baidu Map needs to specify the enumeration value as BD, Tencent Map needs to specify the enumeration value as TX, Amap needs to specify the enumeration value as GD, and Tiandi Map needs to specify the enumeration value as TDT. By constructing a unified geocoding request formatting service in detail, the differences in geocoding methods among different map service providers are solved, and the efficiency and accuracy of geocoding are improved.
[0031] In an embodiment of the present invention, based on step S22 and step S23, a possible embodiment is given below to illustrate its specific implementation scheme in a non-limiting manner.
[0032] The specific steps of step S22 are as follows: S221. Determine the standard format for the registered address of an enterprise; S222. Establish an address resolution aggregation request generation module for each map service provider; S223. Establish a second address conversion module to convert the registered address of the enterprise that does not conform to the standard format; S224. Establish a second map service provider selection module; S225. Integrate the second address conversion module, the second map service provider selection module and each address resolution aggregation request generation module into an address resolution aggregation request formatting service, and use the registered address of the enterprise as input and the address resolution aggregation request as output; The specific steps of step S23 are as follows: S231. Obtain the registered address of the enterprise and the selected target map service provider; S232. Determine whether the registered address of the enterprise conforms to the standard format through the second address conversion module; If yes, go to step S233; If not, convert the company's registered address to a standard format; S233. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the second map service provider selection module; S234. Use the address resolution aggregation request generation module corresponding to the selected map service provider to perform address resolution aggregation, obtain the administrative division codes of each level of the area to which the enterprise belongs, and save them in the database; It should be noted that, through the detailed construction process of the address resolution aggregation request formatting service, the problem of differences in address resolution aggregation methods among different map service providers is solved, and the efficiency and accuracy of address resolution aggregation are improved.
[0033] A provincial administrative region carried out comprehensive investment promotion activities within its jurisdiction. In order to more effectively show the enterprise layout and regional characteristics of the province to potential investors, it decided to adopt an investment promotion map drawing method based on geocoding. The province has multiple cities under its jurisdiction, and each city contains several districts and counties.
[0034] The specific implementation is as follows: 1. Establish an enterprise database and perform geocoding Determine the investment attraction areas and enterprises, clearly define the province as the investment attraction area, and list all enterprises in the province; Establish an enterprise database and collect information about each enterprise, including enterprise name, registered address (specific to the district or county), business scope, etc.; Build a geocoding request formatting service based on the geocoding APIs of mainstream map service providers such as Baidu Maps and Amap, and build a unified geocoding request formatting service; Geocoding: For each enterprise in the enterprise database, a unified geocoding formatting service is called to convert its registered address into geographic coordinates, specifically longitude and latitude, and save it in the database; 2. Address resolution aggregation to obtain administrative division codes Get the registered address and extract the registered address of each enterprise from the enterprise database; Build a unified address resolution aggregation request formatting service based on the address resolution aggregation API of each map service provider; Address resolution aggregation: for each enterprise in the enterprise database, a unified address resolution aggregation request service is called to resolve its registered address into the three-level administrative division codes of province, city, district and county, and save them in the database; 3. Enterprise Information Summary Determine the administrative division level and clarify the administrative division level of the province, including the province, city, district and county levels; Summarize enterprise information according to the administrative division code of the highest-level province and calculate the number of enterprises in the province; Locate the administrative divisions and locate the province on the map; Summarize layer by layer, and summarize enterprise information at the city, district and county levels in descending order. For each city, count the number of enterprises in the city and its districts and counties; for each district and county, count the number of enterprises in the district and county; Collect auxiliary investment promotion information, such as traffic conditions and surrounding facilities, and save them in the database.
[0035] 4. Investment promotion map display Overall display: respond to the user's request for investment map display, render the overall map of the province at the minimum scale by default, and display the summary of enterprise information in the province; City-level display: respond to the user's city-level display request, zoom in and render the selected city area, and display the summary of enterprise information in the area. At the same time, all districts and counties under the jurisdiction of the city are marked on the map; County-level display: respond to the user's county-level display request, further zoom in and render the selected county-level area, and display the summary of enterprise information in the area. At the same time, mark the location of all enterprises in the county-level area on the map; Enterprise display: In response to the user's enterprise display request, all enterprise locations in the selected district and county area are rendered on the map, and the enterprise's auxiliary investment information is displayed. Users can click on each enterprise icon to view the detailed information of the enterprise.
[0036] By implementing the above-mentioned geocoding-based investment promotion map drawing method, the provincial administrative division displays the enterprise layout and auxiliary investment promotion information of the entire province through the investment promotion map. Users can intuitively understand the number and distribution of enterprises in each city, district and county, as well as the specific information and regional characteristics of the enterprises. This not only improves the efficiency and accuracy of investment promotion activities, but also reduces the cost of data collation and analysis.
[0037] 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.
[0038] like Figure 3 As shown, the following is an embodiment of the investment promotion map drawing method based on geocoding provided by the embodiment of the present disclosure. The system and the investment promotion map drawing method based on geocoding of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the investment promotion map drawing system based on geocoding, please refer to the embodiment of the investment promotion map drawing method based on geocoding.
[0039] The system includes: The enterprise address geocoding unit is used to establish an enterprise database for the investment attraction area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; The enterprise address resolution and aggregation unit is used to obtain enterprise information in the enterprise database, and to perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; The enterprise information summary unit is used to summarize the enterprise information of each level of the administrative division code of each level of the investment promotion area and store the summary results; The investment promotion map hierarchical rendering unit is used to respond to the user's hierarchical display request to render the corresponding hierarchical enterprise information for the investment promotion map, and to respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates.
[0040] The map coding-based investment promotion map drawing system provided by this application reduces the cost of investment promotion map drawing and improves work efficiency by automating the tasks of geocoding, address resolution aggregation, information summary and map rendering of enterprise information. Through hierarchical rendering and dynamic display functions, users can view enterprise information at different levels as needed, thereby improving the interactivity and practicality of the investment promotion map. By building a unified geocoding request formatting service and address resolution aggregation request formatting service, it solves the differences between different map service vendors and improves the compatibility and scalability of the system.
[0041] Figure 4 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0042] The geocoding-based investment promotion map drawing method provided in the embodiment of the present application can be applied to electronic devices. Those skilled in the art will appreciate 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 fewer components than shown, 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 may 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] The above-mentioned electronic device implements the investment promotion map drawing method based on geocoding of the present application, which creates an enterprise library containing enterprise information for the investment promotion area, and uses the enterprise address information in the enterprise library to perform address resolution and aggregation operations to obtain the administrative division codes of each level of the area to which each enterprise belongs. According to the administrative division codes, the enterprise information in the investment promotion area is hierarchically summarized, and the investment promotion map is dynamically rendered according to the user's hierarchical display request, thereby achieving the beneficial effect of visually displaying the distribution of enterprises at different levels in the investment promotion area, improving the efficiency of investment promotion activities and the user experience.
[0049] The storage medium provided in the present application stores a program product that can implement a method for drawing investment attraction maps based on geocoding.
[0050] The method for drawing an investment promotion map based on geocoding includes: establishing an enterprise database for the investment promotion area, obtaining enterprise information in the enterprise database, and geocoding the enterprise addresses in the enterprise information to obtain the enterprise geographic coordinates; obtaining the enterprise information in the enterprise database, and performing address resolution and aggregation on the enterprise addresses in the enterprise information to obtain the administrative division codes of each level of the area to which the enterprise belongs; summarizing the enterprise information of each level of the administrative division code of each level in the investment promotion area, and storing the summary results; responding to the user's hierarchical display request to render the enterprise information summarized at the corresponding level for the investment promotion map, and responding to the user's enterprise display request under the lowest level display request, and rendering the enterprise location according to the enterprise geographic coordinates.
[0051] In some possible implementations, the geocoding-based investment promotion map drawing method of the present disclosure can be implemented in the form of a program product, which includes 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.
[0052] 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.
[0053] 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 drawing a business attraction map based on geocoding, characterized in that: The steps include: S1. Establish an enterprise database for the investment promotion area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; S2. Obtain enterprise information in the enterprise database, and perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; S3. Summarize the enterprise information of each level for each level of administrative division code in the investment promotion area, and store the summary results; S4. respond to the user's hierarchical display request to render the enterprise information summarized at the corresponding level for the investment map, and respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates.
2. The method for drawing a business attraction map based on geocoding according to claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Determine the investment attraction area and all enterprises within the investment attraction area; S12. Obtain enterprise information of each enterprise in the investment promotion area and establish an enterprise database; the enterprise information includes the registered address of the enterprise; S13. Building a unified geocoding request formatting service based on the geocoding methods of various map service providers; S14. Obtain the registered address of the enterprise, determine the target map service provider, call the unified geocoding formatting request service for formatting, input the target map service provider for geocoding, and obtain the geographic coordinates of the enterprise.
3. The method for drawing a business attraction map based on geocoding according to claim 2, characterized in that: The specific steps of step S13 are as follows: S131. Determine the standard format for the registered address of an enterprise; S132. Establish a geocoding request generation module for each map service provider; S133. Establish a first address conversion module to convert the registered address of an enterprise that does not conform to the standard format; S134. Establishing a first map service provider selection module; S135. Integrate the first address conversion module, the first map service provider selection module and each geocoding request generation module into a geocoding request formatting service, and use the registered address of the enterprise as input and the geocoding request as output; The specific steps of step S14 are as follows: S141. Obtain the registered address of the enterprise and the selected target map service provider; S142. Determine whether the registered address of the enterprise conforms to the standard format through the first address conversion module; If yes, go to step S143; If not, convert the company's registered address to a standard format; S143. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the first map service provider selection module; S144. Use the geocoding request generation module corresponding to the selected map service provider to perform geocoding, obtain the longitude and latitude as geographic coordinates, and save them in the database.
4. The method for drawing a business attraction map based on geocoding according to claim 2, characterized in that: The specific steps of step S2 are as follows: S21. Obtain the registered address of each enterprise in the enterprise database; S22. Building a unified address resolution aggregation request formatting service based on the address resolution aggregation methods of various map service providers; S23. Obtain the registered address of the enterprise and determine the target map service provider. Then, call a unified address resolution aggregation request service to format it, input the target map service provider for address resolution aggregation, and obtain the administrative division codes of each level of the area to which the enterprise belongs.
5. The method for drawing a business attraction map based on geocoding according to claim 4, characterized in that: The specific steps of step S22 are as follows: S221. Determine the standard format for the registered address of an enterprise; S222. Establish an address resolution aggregation request generation module for each map service provider; S223. Establish a second address conversion module to convert the registered address of the enterprise that does not conform to the standard format; S224. Establish a second map service provider selection module; S225. Integrate the second address conversion module, the second map service provider selection module and each address resolution aggregation request generation module into an address resolution aggregation request formatting service, and use the registered address of the enterprise as input and the address resolution aggregation request as output; The specific steps of step S23 are as follows: S231. Obtain the registered address of the enterprise and the selected target map service provider; S232. Determine whether the registered address of the enterprise conforms to the standard format through the second address conversion module; If yes, go to step S233; If not, convert the company's registered address to a standard format; S233. Select the corresponding map service provider according to the selected target map service provider and select the corresponding map service provider through the second map service provider selection module; S234. Use the address resolution aggregation request generation module corresponding to the selected map service provider to perform address resolution aggregation, obtain the administrative division codes of each level of the area to which the enterprise belongs, and save them in the database.
6. The method for drawing a business attraction map based on geocoding according to claim 4, characterized in that: The specific steps of step S3 are as follows: S31. Determine the administrative division level within the investment promotion area and summarize the enterprise information of the entire investment promotion area; S32. Group and summarize the enterprise information in each highest level administrative division area according to the highest level administrative division code, and count the number of highest level administrative division areas; S33. Locate each highest level administrative division area; S34. For the highest level administrative division area located, the enterprise information of each level of administrative division is summarized in descending order according to the administrative division code of that level, until the enterprise information of the lowest level administrative division area is summarized; S35. Collect statistics on the auxiliary investment information in the enterprise information of each enterprise in the investment area and save it in the database.
7. The method for drawing a business attraction map based on geocoding according to claim 6, characterized in that: The specific steps of step S4 are as follows: S41. In response to the user's request to display the investment map, the map of the overall investment area is rendered at the minimum scale by default, and the text is rendered to display the overall summary of corporate information in the investment area; S42. responding to the user's highest level display request, identifying the area of the highest level administrative division selected by the user, zooming in and rendering according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected highest level administrative division; S43. responding to the user's request for displaying the next level, identifying the area of the next level administrative division selected by the user, zooming in and rendering according to a preset ratio, and rendering text to display the aggregated enterprise information in the area of the selected next level administrative division; S44. Responses to the display requests of the next level are performed in sequence according to step S43 until the lowest level administrative division is reached; S45. Respond to the user's request for enterprise display, identify the lowest-level administrative region selected by the user, obtain the geographic coordinates of all enterprises in the region, render the enterprise location based on the enterprise geographic coordinates and use the map drawing library, and provide the corresponding auxiliary investment promotion information of the enterprise.
8. A system for drawing investment attraction maps based on geocoding, characterized in that: include: The enterprise address geocoding unit is used to establish an enterprise database for the investment attraction area, obtain enterprise information in the enterprise database, and geocode the enterprise address in the enterprise information to obtain the enterprise geographic coordinates; The enterprise address resolution and aggregation unit is used to obtain enterprise information in the enterprise database, and to perform address resolution and aggregation on the enterprise addresses in the enterprise information to obtain administrative division codes of various levels of the region to which the enterprise belongs; The enterprise information summary unit is used to summarize the enterprise information of each level of the administrative division code of each level of the investment promotion area and store the summary results; The investment promotion map hierarchical rendering unit is used to respond to the user's hierarchical display request to render the corresponding hierarchical enterprise information for the investment promotion map, and to respond to the user's enterprise display request under the lowest level display request, and render the enterprise location according to the enterprise's geographic coordinates.
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 drawing investment promotion maps based on geocoding 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 drawing investment promotion maps based on geocoding as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Three-dimensional map data storage, query and display system and corresponding method
CN109657024A
Method for realizing gathering and scattering visualization of mass ground object mark points through layered grid division
CN109977179A
Method for automatically identifying and analyzing enterprise information based on regional geocoding
CN110688439A
Address coding method and apparatus, and computer device and computer-readable storage medium
WO2021189977A1