Service positioning method and device, nonvolatile storage medium and electronic equipment
By establishing a correlation between the business grid map and the geographic map, determining the execution area of the target maintenance service, the problem that maintenance personnel cannot accurately determine the area where maintenance services are performed is solved, and efficient maintenance work is achieved.
Patent Information
- Application Number
- CN202411480872.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, there is no correlation between the business grid map and the geographic map, which makes it impossible for maintenance personnel to accurately determine the area where maintenance services are performed.
By determining the location information of the corresponding business grid and its position points of the target maintenance service in the business grid map, the area corresponding to the position points is determined based on the area boundary information and position point information in the geographical map, and the area is determined and Target maintenance target area associated with business.
The relationship between the business grid map and the geographic map is realized, and the areas where maintenance services need to be performed are accurately determined, thereby improving the efficiency of maintenance work.
Smart Images

Figure CN119396937A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic digital data processing, and in particular to a service positioning method, device, non-volatile storage medium and electronic device. Background Art
[0002] Currently, there is no association between the business grid map and the geographic map, and there is no boundary information of each area in the business grid, resulting in that maintenance personnel who need to perform maintenance work cannot accurately determine the area where maintenance work needs to be performed when determining the business execution location based on the business grid.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a service positioning method, device, non-volatile storage medium and electronic device to at least solve the technical problem that maintenance personnel cannot accurately determine the area where maintenance services are performed due to the lack of association between the service grid map and the geographic map in the related technology.
[0005] According to one aspect of an embodiment of the present application, a service positioning method is provided, including: determining a service grid corresponding to a target maintenance service in a service grid map, and location information of a location point within the service grid; determining an area corresponding to the location point in the geographical map based on area boundary location information of each existing area in the geographical map, and location information of the location point; determining a target area associated with the target maintenance service in the geographical map based on the area corresponding to the location point, wherein the target area is an area for performing the target maintenance service.
[0006] Optionally, based on the area boundary position information of each area in the geographical map and the position information of the location point, determining the area corresponding to the location point in the geographical map includes: determining whether the location point is surrounded by the boundary indicated by the area boundary position information based on the area boundary position information and the position information of the location point; in the case that the location point is surrounded by the boundary, determining that the existing area corresponding to the area boundary position information is the area corresponding to the location point in the geographical map.
[0007] Optionally, determining whether the location point is surrounded by the boundary indicated by the area boundary position information based on the area boundary position information and the location point's location information includes: expanding the coverage of the existing area, and determining the expanded boundary position information of the expanded existing area, wherein the expanded existing area does not overlap with other existing areas in the geographic map; determining whether the location point is surrounded by the expanded boundary indicated by the expanded domain boundary position information based on the expanded boundary position information and the location point's location information; and in the case that the location point is surrounded by the expanded boundary, determining that the existing area corresponding to the expanded boundary position information is the area corresponding to the location point in the geographic map.
[0008] Optionally, expanding the coverage of existing areas includes: determining the nearest adjacent areas of each existing area based on boundary location information of each existing area; determining the shortest distance between the existing area and the nearest adjacent area based on location information between the existing area and the nearest adjacent area; and expanding the coverage of the existing area based on the shortest distance.
[0009] Optionally, determining the target area associated with the target maintenance business in the geographic map based on the area corresponding to the location point includes: when all the location points correspond to the same area, determining the area corresponding to the location point as the target area associated with the target maintenance business; when there are location points that do not correspond to the same area, connecting each location point in sequence in the geographic map to obtain a business grid area, and determining the target area based on the intersection of the business grid area and the existing area in the geographic map.
[0010] Optionally, determining the target area based on the intersection of the business grid area and the existing area in the geographic map includes: determining the maximum intersection area between the business grid area and the existing area; determining the area ratio of the maximum intersection area relative to the business grid area; when the area ratio is greater than a preset threshold, determining that the existing area corresponding to the maximum intersection area is the target area, and obtaining the midpoint position information of the maximum intersection area; and correcting the position information of the position point based on the midpoint position information.
[0011] Optionally, the method further includes: when the area ratio is less than a preset value, or there is no intersection between the business grid area and any existing area, determining the business grid area as the target area and updating the geographic map.
[0012] According to another aspect of an embodiment of the present application, a service positioning device is also provided, including: a first processing module, used to determine the service grid corresponding to the target maintenance service in the service grid map, and the location information of the location point within the service grid; a second processing module, used to determine the area corresponding to the location point in the geographical map based on the area boundary location information of each existing area in the geographical map, and the location information of the location point; a third processing module, used to determine the target area associated with the target maintenance service in the geographical map based on the area corresponding to the location point, wherein the target area is the area where the target maintenance service is performed.
[0013] According to another aspect of an embodiment of the present application, a non-volatile storage medium is provided, in which a program is stored, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute a service positioning method.
[0014] According to another aspect of an embodiment of the present application, there is further provided an electronic device, including: a memory and a processor, wherein the processor is configured to run a program stored in the memory, wherein the service positioning method is executed when the program is run.
[0015] According to another aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, and the computer program implements the steps of the service positioning method when executed by a processor.
[0016] In an embodiment of the present application, a business grid corresponding to a target maintenance business in a business grid map and location information of a location point within the business grid are determined; the area corresponding to the location point in the geographic map is determined based on the area boundary location information of each existing area in the geographic map and the location information of the location point; a target area associated with the target maintenance business is determined in the geographic map based on the area corresponding to the location point, wherein the target area is a method of performing a target maintenance business, and by determining the target area associated with the business grid in the geographic map based on the location information of the location point in the business grid, the purpose of establishing an association relationship between the business grid map and the geographic map is achieved, thereby achieving the technical effect of accurately determining the area where maintenance business needs to be performed, and further solving the technical problem that maintenance personnel cannot accurately determine the area where maintenance business is to be performed due to the lack of association between the business grid map and the geographic map in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1It is a structural schematic diagram of a computer terminal (mobile terminal) provided according to an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a service positioning method provided according to an embodiment of the present application;
[0020] Figure 3 is a schematic diagram of a location point in a geographical map provided according to an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of a location point in another geographical map provided according to an embodiment of the present application;
[0022] Figure 5 It is a structural diagram of a service positioning device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] In order to better understand the embodiments of the present application, the technical terms involved in the embodiments of the present application are explained as follows:
[0026] GIS (Geographic Information System) location point: In a geographic information system (GIS), a specific point is used to represent a geographical location. This point is usually composed of two numbers (x and y), which represent the horizontal and vertical coordinates of the point in a plane coordinate system.
[0027] With the continuous development and popularization of GIS maps, all walks of life hope to associate the business grid used for business development within the industry with the final regional boundaries (communities, villages, commercial buildings, etc.) provided by GIS map manufacturers in order to improve the availability of the business grid. However, most of the current business grids in the industry only have the GIS location point information of important buildings in the grid, without standardized regional boundary information, and the names of the business grids in the industry are quite different from the names of the final regional boundaries provided by GIS map manufacturers. It is impossible to automatically associate with the final regional boundaries of the GIS map through conventional methods. This requires manual one-by-one comparison for association, which is time-consuming, labor-intensive and error-prone. In the case of not associating GIS maps and business grids, staff may not be able to determine the final area where maintenance work actually needs to be carried out, resulting in low efficiency of maintenance work.
[0028] In order to solve the above problems, relevant solutions are provided in the embodiments of the present application, which are described in detail below.
[0029] According to an embodiment of the present application, a method embodiment of a service positioning method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a service positioning method. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0031] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0032] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the service positioning method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, to implement the above-mentioned service positioning method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0035] In the above operating environment, the embodiment of the present application provides a service positioning method, such as Figure 2 As shown, the method comprises the following steps:
[0036] Step S202, determining the business grid corresponding to the target maintenance business in the business grid map, and the location information of the location point in the business grid;
[0037] In the technical solution provided in step S202, the business grid map includes business grids divided according to business development conditions, and different maintenance services correspond to different business grids in the business grid map. In addition, as an optional implementation, each business grid of the business grid map usually has multiple GIS location points to facilitate determining the location where the maintenance service needs to be performed.
[0038] Step S204, determining the area corresponding to the location point in the geographical map based on the area boundary location information of each existing area in the geographical map and the location information of the location point;
[0039] In the technical solution provided in step S204, the step of determining the area corresponding to the location point in the geographical map based on the area boundary location information of each area in the geographical map and the location information of the location point includes: determining whether the location point is surrounded by the boundary indicated by the area boundary location information based on the area boundary location information and the location point; in the case that the location point is surrounded by the boundary, determining the existing area corresponding to the area boundary location information as the area corresponding to the location point in the geographical map.
[0040] Specifically, in GIS data structures, regional boundaries are usually represented by polygons or complex geometric shapes composed of a series of coordinate points. These boundary information is accurately recorded in digital maps and can reflect the outline of the actual geographic space. A location point is a single coordinate point that represents the location information of a specific location. In a GIS system, the information processing of location points and regional boundaries is based on the geographic coordinate system, which can ensure the accuracy and consistency of the data. In order to determine the area corresponding to the location point in the geographic map, the first step is to determine whether the location point is surrounded by a specific regional boundary. This judgment process can be achieved through a variety of GIS operations, among which the most commonly used is the inclusion relationship judgment between points and surfaces. Specifically, using the built-in judgment functions of GIS software or databases, such as ST_Contains(), it is possible to detect whether the location point is within a given regional boundary. If the location point is indeed within the regional boundary, the next step is to confirm that this area is the area corresponding to the location point.
[0041] As an optional implementation, when dealing with a large number of location points and region boundaries, it is necessary to efficiently query and compare GIS data to reduce processing time and ensure the accuracy of the results. This usually involves spatial indexing techniques, such as R-tree indexing, which can quickly locate the region boundaries associated with a specific location point. By building and utilizing spatial indexes, algorithms can greatly improve the efficiency of matching location points with regions, especially when dealing with large-scale data sets.
[0042] In some embodiments of the present application, the step of determining whether a location point is surrounded by a boundary indicated by the area boundary location information based on the area boundary location information and the location point's location information includes: expanding the coverage of an existing area, and determining the expanded boundary location information of the expanded existing area, wherein the expanded existing area does not overlap with other existing areas in the geographic map; determining whether the location point is surrounded by an expanded boundary indicated by the expanded domain boundary location information based on the expanded boundary location information and the location point's location information; and in the case that the location point is surrounded by the expanded boundary, determining that the existing area corresponding to the expanded boundary location information is the area corresponding to the location point in the geographic map.
[0043] It should be noted that expanding the coverage of an existing area and determining the boundaries of the expanded area, while ensuring that there is no overlap with other existing areas in the geographic map, is one of the key steps to achieve automatic association between location points and areas. As an optional implementation, the following steps can be used to expand the coverage of an existing area and determine whether the expanded coverage includes the location point:
[0044] The first step is to conduct a detailed analysis of the boundary location information of the existing area. This includes determining the geometry, size, and relative position of the area to the surrounding areas. Based on this information, the algorithm can decide whether the area boundary needs to be expanded, as well as the direction and scope of the expansion. The expansion decision needs to consider multiple factors, including but not limited to the actual needs of the area, geographical characteristics, and relationship with neighboring areas, to ensure that the expanded area can not only cover a wider geographical range, but also avoid overlapping with existing areas.
[0045] The second step is to adjust the region boundaries according to specific rules. This process may involve adding new coordinate points or changing the positions of existing coordinate points to form new region boundaries. During the boundary adjustment process, real-time overlap checks are also required to ensure that the new boundaries do not overlap with the boundaries of other existing regions in the geographic map. Overlap checks are usually implemented through region intersection judgments, that is, checking whether the boundaries of two regions intersect in space. This is a polygon-polygon intersection judgment, which can be completed through spatial analysis tools in GIS software or database functions such as ST_Intersects().
[0046] The third step is to generate new boundary location information after determining the non-overlapping expansion boundaries, which includes updating the coordinate point set of the region boundary and possible topological relationship adjustments. The location information of the expansion boundary is the basis for determining whether the location point is surrounded by the boundary in the subsequent steps, so sufficient accuracy must be guaranteed. In some cases, it may be necessary to fine-tune the boundary to ensure that it meets specific geographic standards or data format requirements.
[0047] The fourth step is to determine whether the location point is surrounded by the expanded boundary based on the location information of the location point and the expanded boundary information. This judgment process is also implemented using the built-in functions of the GIS software or database, such as ST_Contains(). If the location point is indeed within the expanded boundary, the algorithm will confirm that this area is the geographical area corresponding to the location point.
[0048] In the fifth step, during the process of associating location points with regions, it may be found that the boundary information of some regions needs further correction. For example, if location points are frequently incorrectly excluded by the boundary, this may indicate that the boundary setting is unreasonable or there are errors. Through data feedback from actual applications, the algorithm can continuously optimize the boundary information to avoid similar errors in the future. This closed-loop feedback mechanism is the key to ensuring the long-term accuracy and reliability of GIS map data.
[0049] The sixth step is to perform boundary expansion and location point association, which may also involve data standardization and format adjustment to ensure that all information is compatible and correctly read in the GIS system. This includes but is not limited to the formatting of coordinate points, the standardization of regional boundaries, and seamless integration with other GIS data or external data sources.
[0050] In order to improve processing efficiency and control costs, a variety of optimization strategies can be adopted when executing the above steps. For example, using spatial indexing technology such as R-tree index, you can quickly locate the boundaries of the area related to a specific location point and reduce unnecessary calculations. In addition, through parallel processing or distributed computing, you can significantly improve the speed when processing large-scale geographic location data.
[0051] Specifically, Figure 3 As shown, the position points P1, P2, P3, P4 and P5 are in the original region boundary, so these points can be considered to be included in the region, that is, the region is the region corresponding to P1 to P5. P6 is included in the expanded region boundary, so it can be considered that the region corresponding to P6 is still the region. It should be noted that R in the figure represents the shortest distance between the boundary of the region and the boundary of the adjacent region. Let the region boundary buffer R / 2, that is, expand the boundary of the original region outward according to the distance of R / 2. This increases the coverage area of the region on the one hand, and can avoid the situation where some position points near the boundary are misjudged as not in the boundary due to the recording error of the actual position coordinates of the position point, and at the same time avoid the intersection between the expanded region boundary and the boundaries of other regions.
[0052] As an optional implementation, the step of expanding the coverage of existing areas includes: determining the nearest adjacent areas of each existing area based on the boundary position information of each existing area; determining the shortest distance between the existing area and the nearest adjacent area based on the position information between the existing area and the nearest adjacent area; and expanding the coverage of the existing area based on the shortest distance.
[0053] Step S206 , determining a target area associated with the target maintenance service in the geographical map according to the area corresponding to the location point, wherein the target area is an area where the target maintenance service is performed.
[0054] In the technical solution provided in step S206, the step of determining the target area associated with the target maintenance business in the geographic map based on the area corresponding to the location point includes: when all the location points correspond to the same area, determining the area corresponding to the location point as the target area associated with the target maintenance business; when there are location points that do not correspond to the same area, connecting each location point in sequence in the geographic map to obtain a business grid area, and determining the target area based on the intersection of the business grid area and the existing area in the geographic map.
[0055] As an optional implementation, the step of determining the target area based on the intersection of the business grid area and the existing area in the geographic map includes: determining the maximum intersection area between the business grid area and the existing area; determining the area ratio of the maximum intersection area relative to the business grid area; when the area ratio is greater than a preset threshold, determining that the existing area corresponding to the maximum intersection area is the target area, and obtaining the midpoint position information of the maximum intersection area; and correcting the position information of the position point based on the midpoint position information.
[0056] Specifically, Figure 4 As shown, the location points P1-P8 in the business grid area are scattered in different regional boundaries, so they cannot be associated through the logic that the GIS location points are completely surrounded by the GIS area. The largest business graph PA (area A0) formed by connecting all the GIS location points in the business grid area one by one intersects with the regional boundary of the selected area in the geographic map, and the area of the intersecting graph SA formed is A1. Because A1 / A0*100%>51%, the regional boundary of the business grid area Y is automatically associated with the regional boundary of the selected area, and the longitude and latitude of the five location points P3-P7 are automatically corrected to the midpoint of the intersecting graph SA. That is, the longitude and latitude of these location points are corrected to the selected area.
[0057] The above-mentioned midpoint position information refers to the average value of the coordinates of each point included in the maximum intersection area.
[0058] In some embodiments of the present application, when the area ratio is less than a preset value, or there is no intersection between the business grid area and any existing area, the business grid area is determined to be the target area, and the geographic map is updated.
[0059] In some embodiments of the present application, various complex graphic operations can be performed on the points and surface information in the GIS map based on existing GIS technology, such as determining whether a point is included in a surface, whether different surfaces intersect, etc. Therefore, the GIS area associated with the business grid can be determined based on the existing GIS technology according to the following algorithm execution process:
[0060] The first step is to use the built-in function ST_Contains(geomBgeometry,geomN geometry) of the PG database based on the principle of points on a surface to loop and determine whether all GIS location point information (geomN) in the business grid is within the GIS area boundary (geomB). If yes, the association is successful. If not, continue to the next step of association.
[0061] Int k = 0;
[0062] For (i = 0; i <k;i++){
[0063] if(!ST_Contains(geomB,geomk)); / / Determine one by one whether all GIS location point information in the business grid is within the GIS area boundary
[0064] {
[0065] Return false; / / If there is a GIS location point in the business grid that is not within the GIS area boundary, exit and prompt that the association cannot be made
[0066] }
[0067] }
[0068] In the second step, considering the possible slight deviation of GIS location point information in the business grid, the regional boundaries in the GIS map can be buffered and fault-tolerant, that is, the range covered by the boundaries of each region can be extended. Specifically, the built-in function ST_DWithin (geomBP geometry, geomB geometry, Rdouble_precision) of the PG database can be used to cyclically increase the buffer distance R (the default R is 0 meters, and it is cyclically increased in units of L meters [L defaults to 0.1 and can be manually configured]) to obtain the GIS regional boundary geomBP that is closest to the GIS regional boundary geomB. The shortest distance between the two is R. The logic is as follows:
[0069] Int k = 0;
[0070] Int W = 1000; / / The default maximum external buffer distance does not exceed 1000L meters, the value of W can be manually configured
[0071] Int R = W*L;
[0072] For (i = 0; i <W;i++){
[0073] if(ST_DWithin(geomBP,geomB,i*L)); / / loop to slightly increase the buffer distance R, get the geomBP closest to geomB
[0074] {
[0075] R = i * L;
[0076] Return R; / / Return the shortest distance between geomB and geomBP
[0077] }
[0078] }
[0079] The third step is to obtain the shortest distance R between geomB and geomBP, and then use the built-in function ST_DWithin (geomN geometry, geomB geometry, R / 2double_precision) of the PG database to loop and determine whether all GIS location point information (geomN) in the business grid is within the R / 2 buffer range of the GIS area boundary (geomB) (buffer R / 2 because R / 2 is the middle position between geomB and geomBP). If yes, the association is successful, if not, continue to the next step of association;
[0080] Int k = 0;
[0081] For (i = 0; i <k;i++){
[0082] if(!ST_DWithin(geomN,geomB,R / 2)); / / Determine one by one whether all GIS location point information in the business grid is within the external buffer R / 2 of the GIS area boundary
[0083] {
[0084] Return false; / / If there is a GIS location point in the business grid that is not within the external buffer R / 2 of the GIS area boundary, then exit and prompt that the association cannot be made
[0085] }
[0086] }
[0087] The fourth step, if all the GIS location point information in the business grid is not completely surrounded by the external buffer R / 2 range of any GIS area boundary, it is necessary to further judge based on the association logic of the intersection of the business graphics and the GIS area, and conduct intersection analysis on the business graphics geomM formed by connecting all the GIS location points in the business grid one by one and the GIS area boundary geomB, and use the built-in function ST_Area(ST_Intersection(geomM geometry,geomBgeometry)) of the PG database to obtain the area IntersectArea of the intersection of the two graphics. When the area of the intersection graphic exceeds P% of the area of the GIS area boundary geomB (P defaults to 51%, which can be set manually, but should not be less than 51%), the two are automatically associated (after the two are associated, the built-in function ST_Centroid(ST_Intersection(geomMgeometry,geomB geometry)) of the PG database can also be used to obtain the midpoint information of the intersection graphic, and the midpoint information is used as the corrected position information of the GIS location points in the existing business grid that are not in the GIS area boundary geomB), otherwise continue to the next step of association;
[0088] In the fifth step, if the business graph formed by connecting all the GIS location points in the business grid one by one has no intersection with the existing GIS area boundary, or the intersection ratio does not exceed P% of any intersecting GIS area, a new GIS area boundary is automatically generated according to the business graph formed by connecting all the GIS location points in the business grid one by one, and the newly generated GIS area boundary is automatically associated with the business grid.
[0089] Through the above algorithm process, it is possible to determine whether all GIS location point information within the business grid is covered by the GIS map area boundary. If it is fully covered, the two are automatically associated. If it is partially covered, the intersection ratio of the regional graphics composed of all GIS location point information in the business grid connected one by one and the GIS map area boundary is determined. When the intersection ratio exceeds the threshold P (P can be set manually), the two are automatically associated, and finally the business grid is accurately associated with the GIS area boundary, thereby improving the work efficiency of maintenance personnel and the accuracy of the business grid GIS area information.
[0090] The invention adopts a method of determining the business grid corresponding to the target maintenance business in the business grid map and the location information of the location point in the business grid; determining the area corresponding to the location point in the geographical map based on the area boundary location information of each existing area in the geographical map and the location information of the location point; determining the target area associated with the target maintenance business in the geographical map based on the area corresponding to the location point, wherein the target area is a method of performing the target maintenance business, and determining the target area associated with the business grid in the geographical map based on the location information of the location point in the business grid, thereby achieving the purpose of establishing an association relationship between the business grid map and the geographical map, thereby realizing the technical effect of accurately determining the area where the maintenance business needs to be performed, and further solving the technical problem that the maintenance personnel cannot accurately determine the area where the maintenance business is to be performed due to the lack of association between the business grid map and the geographical map in the related technology.
[0091] In addition, the service positioning method provided by the embodiment of the present application aims at the problem of associating the regional boundaries of the service grid map without regional boundaries and the final region in the geographic map. By judging whether all the GIS location point information in the service grid is fully covered by the regional boundaries in the geographic map, if it is fully covered, the two are automatically associated. If it is partially covered, the intersection ratio of the regional graphics composed of all the GIS location point information in the service grid connected one by one and the regional boundaries of the GIS map is judged. When the intersection ratio exceeds the threshold value P (P can be set manually), the two are automatically associated, and finally the service grid is accurately associated with the GIS regional boundary, improving the work efficiency of the maintenance personnel and the accuracy of the GIS regional information of the service grid. In addition, accurate regional boundary information of the geographic map helps to improve the business development of the service grid, and erroneous related information will be counterproductive. Therefore, it can also be reversely promoted through actual production applications to improve the accuracy of GIS regional boundary information.
[0092] The present application embodiment provides a service positioning device, Figure 5 is a schematic diagram of the structure of the device. Figure 5 It can be seen that the device includes: a first processing module 50, which is used to determine the business grid corresponding to the target maintenance business in the business grid map, and the location information of the location point in the business grid; a second processing module 52, which is used to determine the area corresponding to the location point in the geographical map based on the area boundary location information of each existing area in the geographical map, and the location information of the location point; a third processing module 54, which is used to determine the target area associated with the target maintenance business in the geographical map based on the area corresponding to the location point, wherein the target area is the area where the target maintenance business is performed.
[0093] In some embodiments of the present application, the second processing module 52 determines the area corresponding to the location point in the geographic map based on the area boundary location information of each area in the geographic map and the location information of the location point, and the step includes: determining whether the location point is surrounded by the boundary indicated by the area boundary location information based on the area boundary location information and the location information of the location point; in the case that the location point is surrounded by the boundary, determining that the existing area corresponding to the area boundary location information is the area corresponding to the location point in the geographic map.
[0094] In some embodiments of the present application, the step in which the second processing module 52 determines whether the location point is surrounded by the boundary indicated by the area boundary location information based on the area boundary location information and the location point's location information includes: expanding the coverage of the existing area, and determining the expanded boundary location information of the expanded existing area, wherein the expanded existing area does not overlap with other existing areas in the geographic map; determining whether the location point is surrounded by the expanded boundary indicated by the expanded domain boundary location information based on the expanded boundary location information and the location point's location information; and in the case that the location point is surrounded by the expanded boundary, determining that the existing area corresponding to the expanded boundary location information is the area corresponding to the location point in the geographic map.
[0095] In some embodiments of the present application, the step of expanding the coverage of existing areas by the second processing module 52 includes: determining the nearest adjacent areas of each existing area based on the boundary position information of each existing area; determining the shortest distance between the existing area and the nearest adjacent area based on the position information between the existing area and the nearest adjacent area; and expanding the coverage of the existing area based on the shortest distance.
[0096] In some embodiments of the present application, the step of the third processing module 54 determining the target area associated with the target maintenance business in the geographic map based on the area corresponding to the location point includes: when all the location points correspond to the same area, determining the area corresponding to the location point as the target area associated with the target maintenance business; when there are location points that do not correspond to the same area, connecting each location point in sequence in the geographic map to obtain a business grid area, and determining the target area based on the intersection of the business grid area and the existing area in the geographic map.
[0097] In some embodiments of the present application, the step in which the third processing module 54 determines the target area based on the intersection of the business grid area and the existing area in the geographic map includes: determining the maximum intersection area between the business grid area and the existing area; determining the area ratio of the maximum intersection area relative to the business grid area; when the area ratio is greater than a preset threshold, determining that the existing area corresponding to the maximum intersection area is the target area, and obtaining the midpoint position information of the maximum intersection area; and correcting the position information of the position point based on the midpoint position information.
[0098] In some embodiments of the present application, the service positioning device is also used to: when the area ratio is less than a preset value, or there is no intersection between the service grid area and each existing area, determine the service grid area as the target area and update the geographic map.
[0099] It should be noted that the various modules in the above-mentioned service positioning device can be program modules (for example, a set of program instructions that implement a certain specific function) or hardware modules. For the latter, it can be expressed in the following forms, but is not limited to this: the expression form of each of the above-mentioned modules is a processor, or the functions of each of the above-mentioned modules are implemented by a processor.
[0100] According to an embodiment of the present application, an electronic device is also provided, including: a memory and a processor, the processor being used to run a program stored in the memory, wherein the following service positioning method is executed when the program is running: determining a service grid corresponding to a target maintenance service in a service grid map, and location information of a location point within the service grid; determining an area corresponding to the location point in the geographical map based on area boundary location information of each existing area in the geographical map, and location information of the location point; determining a target area associated with the target maintenance service in the geographical map based on the area corresponding to the location point, wherein the target area is an area where the target maintenance service is performed.
[0101] According to an embodiment of the present application, a non-volatile storage medium is also provided, in which a program is stored, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following service positioning method: determine the business grid corresponding to the target maintenance business in the business grid map, and the location information of the location point in the business grid; determine the area corresponding to the location point in the geographic map based on the area boundary location information of each existing area in the geographic map, and the location information of the location point; determine the target area associated with the target maintenance business in the geographic map based on the area corresponding to the location point, wherein the target area is the area where the target maintenance business is performed.
[0102] According to an embodiment of the present application, a computer program product is also provided, including a computer program, which implements the steps of the following service positioning method when executed by a processor: determining a service grid corresponding to a target maintenance service in a service grid map, and location information of a location point within the service grid; determining an area corresponding to the location point in the geographical map based on area boundary location information of each existing area in the geographical map, and location information of the location point; determining a target area associated with the target maintenance service in the geographical map based on the area corresponding to the location point, wherein the target area is an area where the target maintenance service is performed.
[0103] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0104] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0105] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0106] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the relevant technology or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc. Various media that can store program codes.
[0108] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A service positioning method, characterized in that: include: Determine the business grid corresponding to the target maintenance business in the business grid map, and the location information of the location point in the business grid; Determine the area corresponding to the location point in the geographical map based on the area boundary location information of each existing area in the geographical map and the location information of the location point; A target area associated with the target maintenance service is determined in the geographical map according to the area corresponding to the location point, wherein the target area is an area where the target maintenance service is performed.
2. The service positioning method according to claim 1, characterized in that: Determining the area corresponding to the location point in the geographical map according to the area boundary location information of each area in the geographical map and the location information of the location point includes: Determining whether the location point is surrounded by a boundary indicated by the area boundary location information according to the area boundary location information and the location information of the location point; In the case where the location point is surrounded by the boundary, the existing area corresponding to the area boundary location information is determined to be the area corresponding to the location point in the geographical map.
3. The service positioning method according to claim 2, characterized in that: Determining whether the location point is surrounded by a boundary indicated by the area boundary location information according to the area boundary location information and the location information of the location point includes: Expanding the coverage of the existing area and determining the expanded boundary position information of the expanded existing area, wherein the expanded existing area does not overlap with other existing areas in the geographic map; determining, according to the extended boundary position information and the position information of the position point, whether the position point is surrounded by the extended boundary indicated by the extended domain boundary position information; In the case where the location point is surrounded by the extended boundary, the existing area corresponding to the extended boundary location information is determined to be the area corresponding to the location point in the geographical map.
4. The service positioning method according to claim 3, characterized in that: Expanding the coverage of the existing area includes: Determine the nearest adjacent area of each existing area according to the boundary position information of each existing area; Determine the shortest distance between the existing area and the nearest adjacent area according to the position information between the existing area and the nearest adjacent area; The coverage of the existing area is expanded according to the shortest distance.
5. The service positioning method according to claim 1, characterized in that: Determining a target area associated with the target maintenance service in the geographical map according to the area corresponding to the location point includes: In the case that all of the location points correspond to the same area, determining the area corresponding to the location point as the target area associated with the target maintenance service; In the case where there are location points that do not correspond to the same area, the location points are sequentially connected in the geographic map to obtain a business grid area, and the target area is determined based on the intersection of the business grid area and the existing area in the geographic map.
6. The service positioning method according to claim 5, characterized in that: Determining the target area according to the intersection of the business grid area and the existing area in the geographic map includes: Determine the maximum intersection area between the service grid area and the existing area; Determine the area ratio of the maximum intersection area relative to the service grid area; In the case where the area ratio is greater than a preset threshold, determining that the existing area corresponding to the maximum intersection area is the target area, and obtaining the midpoint position information of the maximum intersection area; The position information of the position point is corrected according to the midpoint position information.
7. The service positioning method according to claim 6, characterized in that: The method further comprises: When the area ratio is less than the preset value, or there is no intersection between the business grid area and each of the existing areas, the business grid area is determined to be the target area, and the geographic map is updated.
8. A service positioning device, characterized in that: include: A first processing module is used to determine the business grid corresponding to the target maintenance business in the business grid map, and the location information of the location point in the business grid; A second processing module is used to determine the area corresponding to the location point in the geographical map according to the area boundary location information of each existing area in the geographical map and the location information of the location point; The third processing module is used to determine a target area associated with the target maintenance service in the geographical map according to the area corresponding to the location point, wherein the target area is an area where the target maintenance service is performed.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the service positioning method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: A memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the service positioning method described in any one of claims 1 to 7 when running.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the service positioning method according to any one of claims 1 to 7 are implemented.