Branch site selection method, device and equipment, storage medium and computer program product
Through the calculation and weighting of the site selection method, combining the angle difference between the flow of people and the road section, the problem of GPS positioning deviation is solved, and the accuracy and efficiency of site selection is improved.
Patent Information
- Application Number
- CN202410940458.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-15
AI Technical Summary
In the site selection process, the prior art, the positioning information deviation is caused by equipment and environmental interference during GPS signal propagation and reception, resulting in unreasonable location, which reduces the efficiency and accuracy of site selection.
By calculating the average flow of people in existing outlets and the average flow of people in the target area, the weighted sum is performed, and combining the difference in the direction of flow of people and the angle difference between the road section, a suitable candidate road section is selected as the location section of the new outlet, and the preferences and time are balanced Factors to avoid deviations between GPS positioning data and the real position.
It improves the accuracy of site selection in outlets, avoids site selection in unreasonable areas, and improves site selection efficiency and accuracy.
Smart Images

Figure CN118967217A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of information technology, and in particular, relates to a network site selection method, device, equipment, storage medium and computer program product. Background Art
[0002] The location of operators' offline outlets is directly related to the user experience. Existing technologies help outlet site selection decisions by collecting and analyzing the trajectory data generated by the GPS signals of users' mobile devices. However, during the transmission and reception of GPS signals, there may be interference from factors such as equipment and environment, which may cause the final positioning information to deviate from the actual location, resulting in the location being located not on the road on the map, but in unreasonable areas such as lakes, lawns, and sidewalks, reducing the efficiency and accuracy of outlet site selection. Summary of the invention
[0003] The embodiments of the present application provide a network point site selection method, apparatus, device, storage medium and computer program product, which can improve the efficiency and accuracy of network point site selection.
[0004] In a first aspect, an embodiment of the present application provides a method for selecting a network site, the method comprising:
[0005] Obtain existing outlets in the target area, the number of existing outlets, the flow of people at existing outlets in multiple time periods within a preset time period, and a map of the target area;
[0006] According to the number of existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period, the average flow of people at each existing outlet and the average flow of people in the target area in each time period are calculated respectively;
[0007] The average flow of people in existing outlets and the average flow of people in the target area in each time period are weighted and summed to obtain the target average flow of people;
[0008] Determine the target site selection area corresponding to the target mean passenger flow through the preset correspondence between the mean passenger flow and the site selection area;
[0009] From the map of the target area, select candidate road sections that are located in the target site selection area and whose distance from the existing network points is less than a preset distance;
[0010] For each pedestrian flow direction: based on the pedestrian flow direction in the target area, the angle difference between the pedestrian flow direction and the extension direction of each candidate road section is calculated to obtain multiple angle differences;
[0011] Selecting a target candidate road section whose angle difference meets a preset threshold condition from multiple angle differences;
[0012] The target candidate road section is determined as the site selection section for the new network point.
[0013] In a second aspect, an embodiment of the present application provides a network point site selection device, the device comprising:
[0014] An acquisition module is used to acquire existing outlets in the target area, the number of existing outlets, the flow of people at the existing outlets in multiple time periods within a preset time period, and a map of the target area;
[0015] A calculation module, for calculating the average flow of people at each existing outlet and the average flow of people in the target area in each time period according to the number of existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period;
[0016] The calculation module is also used to perform weighted summation of the average flow of people at existing outlets and the average flow of people in the target area in each time period to obtain the target average flow of people;
[0017] A site selection module is used to determine a target site selection area corresponding to a target average passenger flow value through a preset correspondence between the average passenger flow value and the site selection area;
[0018] The site selection module is also used to screen out candidate road sections located in the target site selection area and whose distance from the existing network points is less than a preset distance from the map of the target area;
[0019] The site selection module is also used for each pedestrian flow direction: based on the pedestrian flow direction of the target area, calculate the angle difference between the pedestrian flow direction and the extension direction of each candidate road section to obtain multiple angle differences; select the target candidate road section whose angle difference meets the preset threshold condition from the multiple angle differences; determine the target candidate road section as the site selection section for the new network point.
[0020] In a third aspect, an embodiment of the present application provides a network site selection device, the device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the network site selection method of the first aspect is implemented.
[0021] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, the network site selection method of the first aspect is implemented.
[0022] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network site selection method of the first aspect.
[0023] The network site selection method, device, equipment, storage medium and computer program product of the embodiment of the present application calculates the average flow of people at each existing network point and the average flow of people in the target area in each time period, and performs weighted summation, wherein the average flow of people at the existing network point represents the user's preference for the current location, and the average flow of people in the target area in each time period represents the flow of people at the current location under the influence of time. The weighted summation method can balance the influence of the two on the network site selection, fully and evenly consider the preference factor and the time factor to analyze the network site selection location, and can initially quickly and accurately determine The site selection area is then determined from the map, and the target candidate road sections that are within the site selection area and whose distance from the existing network points is less than the preset distance are determined; then the angle difference between the pedestrian flow direction and the extension direction of each target candidate road section is calculated, and the target candidate road section whose angle difference meets the preset threshold condition is used as the site selection section for the new network point, thereby achieving a unified matching of the pedestrian flow direction and the actual road section direction, thereby solving the problem of deviation between the GPS positioning data and the actual position, and thus avoiding the selection of unreasonable areas such as lakes, lawns, and sidewalks instead of actual roads when selecting network points, thereby improving the accuracy of network point selection. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 It is a flowchart of a method for selecting a network site provided by an embodiment of the present application;
[0026] Figure 2 is a schematic diagram of a candidate road section located in a target site selection area provided by an embodiment of the present application;
[0027] Figure 3 (a) is a schematic diagram of dividing the initial site selection area based on a quadtree structure provided by an embodiment of the present application;
[0028] Figure 3 (b) is a schematic diagram of a quadtree storage structure provided by an embodiment of the present application;
[0029] Figure 4 This is a schematic diagram of the principle of hiding the actual location of a user provided by an embodiment of the present application;
[0030] Figure 5 It is a structural schematic diagram of a network point site selection device provided by an embodiment of the present application;
[0031] Figure 6It is a structural diagram of a network point site selection device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0032] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0033] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0034] With the continuous development of science and technology, the accuracy of offline network site selection has become crucial due to the needs of competition and development. For example, the site selection of offline network of the three major operators is directly related to the development of the operators.
[0035] The traditional method of network site selection is mainly based on manual site selection. The manual site selection method first requires subjective determination of several approximate areas, and then manual on-site investigation to investigate various information such as traffic flow, competitiveness, traffic environment, and business environment, and finally select the network construction address based on a combination of multiple factors. However, this method requires too high human and material costs, and there is a certain degree of individual subjectivity, resulting in low efficiency and accuracy in network site selection, and great limitations.
[0036] With the rapid development of GPS technology, more and more mobile devices are equipped with sensors that can send and receive GPS signals. Hundreds of millions of user trajectory data are generated every day. Statistical analysis of this data can help with network site selection decisions. However, GPS signals are interfered by factors such as equipment and environment during transmission and reception, resulting in a deviation between the final positioning information and the actual location, usually around 5-20 meters. This deviation range may cause the site to be located in unreasonable locations such as lakes, lawns, and sidewalks on the map. Therefore, if the collected trajectory data is not processed and directly used for network site selection analysis, there is a high probability that some unreasonable or even wrong site selection recommendations will be generated, reducing the efficiency and accuracy of network site selection.
[0037] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, equipment, storage medium and computer program product for network site selection, which calculates the average flow of people at each existing network point and the average flow of people in the target area in each time period, and performs weighted summation, wherein the average flow of people at the existing network point represents the user's preference for the current location, and the average flow of people in the target area in each time period represents the flow of people at the current location under the influence of time. The weighted summation method can balance the influence of the two on the network site selection, fully and balancedly consider the preference factor and the time factor, analyze the network site selection location, and can preliminarily and quickly determine the network site selection location. The site selection area is determined quickly and accurately, and then the target candidate road sections that are located in the site selection area and are less than the preset distance from the existing network points are determined from the map; then the angle difference between the direction of the flow of people and the extension direction of each target candidate road section is calculated, and the target candidate road sections whose angle difference meets the preset threshold conditions are used as the site selection sections for new network points, thereby achieving a unified matching of the direction of the flow of people and the direction of the actual road section, thereby solving the problem of deviation between the GPS positioning data and the actual position, and thus avoiding the selection of unreasonable areas such as lakes, lawns, and sidewalks instead of actual roads when selecting network points, thereby improving the accuracy of network point selection.
[0038] The following first introduces the network site selection method provided in the embodiment of the present application.
[0039] Figure 1 FIG. 1 is a flow chart of a method for selecting a network site according to an embodiment of the present application. Figure 1 As shown, the method may include the following steps: S101 to S106.
[0040] S101: Acquire existing outlets in a target area, the number of existing outlets, the flow of people at the existing outlets in multiple time periods within a preset time period, and a map of the target area.
[0041] The target area is the smallest area for network point location selection based on the initial area division. The best location section for new network points is determined by statistical analysis of multi-dimensional data in the target area.
[0042] To this end, this step obtains the existing outlets in the target area, the number of existing outlets, the flow of people in existing outlets in multiple time periods within a preset time, and a map of the target area as basic data for outlet site selection analysis, thereby helping to achieve accurate and efficient site selection for new outlets.
[0043] S102: According to the number of existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period, respectively calculate the average flow of people at each existing outlet and the average flow of people in the target area in each time period.
[0044] The location selection of outlets needs to consider the influence of multiple factors such as passenger flow, competitiveness, traffic environment and business environment. Based on the above considerations, this step first conducts a preliminary analysis of the location of outlets based on the two dimensions of preference factors and time factors.
[0045] Based on the preference factor, the address of the outlet cannot be determined in a location with less traffic, but it also cannot be located in a location with too much traffic. Therefore, based on the number of existing outlets obtained and the traffic of existing outlets in multiple time periods within a preset time, the average traffic of each existing outlet is calculated, and the user's preference for the current location is measured by the average traffic of each existing outlet.
[0046] Taking the time factor into consideration, the average flow of people in the target area in each time period is calculated based on the number of existing outlets and the flow of people in the existing outlets in multiple time periods within the preset duration, so as to measure the flow of people at the current location under the influence of time.
[0047] This step preliminarily obtains data for determining the subsequent site selection area based on considerations of preference and time factors. Considering the two dimensions of preference and time can make the process of site selection more directional, thereby improving the efficiency and accuracy of site selection in the initial stage of site selection.
[0048] As an example, the above calculation of the average flow of people at each existing outlet based on the number of existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period can be expressed by the following formula:
[0049]
[0050] Among them, m i is the flow of people in existing outlets, and k is the number of existing outlets.
[0051] As an example, the above calculation of the average flow of people in the target area in each time period based on the number of existing outlets and the flow of people in the existing outlets in multiple time periods within a preset time period can be expressed by the following formula:
[0052]
[0053] Among them, n i is the flow of people in a certain time period, and t is the number of time periods within the preset time length.
[0054] S103: Perform a weighted summation of the average passenger flow of existing outlets and the average passenger flow of the target area in each time period to obtain a target average passenger flow.
[0055] In the process of selecting network locations based on preference factors and time factors, in order to be able to more fully consider the impact of the two factors on network location selection, in this step, by assigning weights to the average traffic flow calculated based on the two factors and taking a weighted sum, it is possible to better balance the impact of the two factors on network location decisions and further improve the accuracy of network location selection.
[0056] The specific value assigned to the weight can be set manually.
[0057] As an example, the weight of the average flow of people at the existing outlets may be set to 0.5, and the weight of the average flow of people in the target area in each time period may also be set to 0.5.
[0058] S104: Determine the target site selection area corresponding to the target mean value of passenger flow based on the preset correspondence between the mean value of passenger flow and the site selection area.
[0059] In this step, the target site selection area is determined by calculating the target traffic flow average based on preference factors and time factors, wherein the correspondence between the preset traffic flow average and the site selection area not only reflects the location of the target site selection area, but also reflects the degree of influence of the target traffic flow average on the size of the site selection area.
[0060] After balancing the consideration of preference and time factors, determining the target site selection area can make the network site selection process more directional and improve the efficiency and accuracy of site selection.
[0061] S105: Filtering out candidate road sections located in the target site selection area and having a distance from an existing network point less than a preset distance from the map of the target area.
[0062] After determining the preliminary target site selection area, this step uses the map of the target area to screen out road sections within the target site selection area. At the same time, from these road sections, further screen out road sections whose distance to existing network points is less than a preset distance as candidate road sections.
[0063] Since the crowd flow data obtained by collecting GPS signal analysis is different from the real data, the site selection location determined based on the crowd flow data will inevitably have a certain deviation, and even the site selection is in an unreasonable position. Therefore, in this step, by screening the road sections whose distance from the existing network points is less than the preset distance, the real sections where the crowd flow may be located are determined in advance, and then subsequent road section screening is performed, thereby helping to avoid the problem of site selection deviation caused by signal deviation.
[0064] As an example, the candidate road sections located in the target site selection area and whose distance from the existing network points is less than the preset distance can be screened out as follows: Figure 2 As shown, p i is an existing network point, e1, e2, and e3 are road sections within the target site selection area, and c i,1 , c i,2 , c i,3 They are p i The projection points on these three road sections, p i With c i,1 The length of the connection, p i With c i,2 The length of the connection, p i With c i,3 The lengths of the connections are p i With c i,1 、c i,2 、c i,3 The distances between these three road sections.
[0065] S106: for each pedestrian flow direction: based on the pedestrian flow direction of the target area, calculating the angle difference between the pedestrian flow direction and the extension direction of each candidate road section, and obtaining a plurality of angle differences;
[0066] Selecting a target candidate road section whose angle difference meets a preset threshold condition from the multiple angle differences;
[0067] The target candidate road section is determined as the site selection section for the new network point.
[0068] Through the above steps, the candidate road sections that can be used for network site selection are determined. However, if the candidate road sections are directly used as network site selection sections, it is very likely that the network site selection will be at intersections such as crossroads, T-junctions and other sections with dense road distribution. It is obviously unreasonable to determine the network address at the intersection.
[0069] Therefore, based on the above, this step further determines the location of the network point from the dimension of direction. For each pedestrian flow direction, the angle difference between the pedestrian flow direction and the extension direction of each candidate road section is calculated, and the location section of the new network point is screened by judging whether the angle difference meets the threshold condition.
[0070] Among them, the angle difference is an indicator that describes the difference between the direction of pedestrian flow and the extension direction of the road section. When the direction of pedestrian flow is closer to the extension direction of the road section, the smaller the angle difference is, which means that the possibility that the road section is the most preferred address section is higher.
[0071] By uniformly matching the direction of pedestrian flow with the extension direction of candidate road sections, reasonable candidate road sections are selected as the site selection sections for new outlets, avoiding the problem of site selection on intersections such as crossroads, T-junctions and other sections with dense road distribution, thereby improving the accuracy of network site selection.
[0072] In the embodiment of the present application, the average value of the flow of people at each existing network point and the average value of the flow of people in the target area in each time period are calculated and weighted summed, wherein the average value of the flow of people at the existing network point represents the user's preference for the current location, and the average value of the flow of people in the target area in each time period represents the flow of people at the current location under the influence of time. The weighted summation method can balance the influence of the two on the network point site selection, fully and balancedly consider the preference factor and the time factor to analyze the network point site selection location, and can preliminarily quickly and accurately determine the site selection area, and then determine from the map the target candidate road section that is located in the site selection area and is less than the preset distance from the existing network point; then calculate the angle difference between the direction of the flow of people and the extension direction of each target candidate road section, and use the target candidate road section whose angle difference meets the preset threshold condition as the site selection section of the new network point, so as to achieve unified matching of the direction of the flow of people and the direction of the actual road section, thereby solving the problem of deviation between the GPS positioning data and the real position, thereby avoiding the selection of unreasonable areas such as lakes, lawns, and sidewalks instead of actual roads when selecting network points, thereby improving the accuracy of network point site selection.
[0073] In some embodiments, in step S106, calculating the angle difference between the direction of the pedestrian flow and the extension direction of each candidate road segment may include:
[0074] Obtain the resident users in the target area and the historical track points of each resident user;
[0075] For each resident user: based on the historical trajectory points, filter out the target historical trajectory points whose occurrence frequency meets the first threshold condition within a preset time period;
[0076] Based on the target historical trajectory points, the pedestrian flow direction of the resident users is obtained through the correspondence between the preset historical trajectory points and the pedestrian flow direction;
[0077] Based on the flow direction of the resident users, the angle difference between the flow direction of the resident users and the extension direction of each candidate road segment is calculated.
[0078] In some embodiments, in step S106, calculating the angle difference between the direction of the pedestrian flow and the extension direction of each candidate road segment may include:
[0079] Obtain mobile users in the target area and the movement direction of each mobile user;
[0080] For each mobile user: the movement direction is taken as the flow direction of the mobile user;
[0081] Based on the travel direction of the flow of mobile users, the angle difference between the flow direction of mobile users and the extension direction of each candidate road segment is calculated.
[0082] Considering that in actual scenarios, users are not necessarily moving and their trajectory points have no direction. For example, a resident user in the surrounding area needs to go to a branch to handle business, but the user does not generate a motion trajectory at this time, so it is impossible to determine the flow direction of such users from the perspective of the current motion direction. Therefore, this embodiment processes the data of static users and dynamic users separately.
[0083] For static users such as resident users, we can count the users’ past trajectory points, filter out the trajectory points that meet the first threshold condition within the previous week, generate trajectory routes based on these trajectory points to determine their driving trend direction, predict the user’s next possible movement trend, and determine this trajectory route as the flow direction of static users, which is used to calculate the angle difference with the extension direction of each candidate road section. For dynamic users, i.e. mobile users, their movement direction can be directly used as the flow direction.
[0084] By considering both resident users and mobile users separately when selecting branch locations, we can fully consider the actual situation and conduct a more comprehensive analysis of the data, which will help improve the efficiency and accuracy of branch location selection.
[0085] In some embodiments, the correspondence between the above preset historical trajectory points and the direction of the flow of people can be expressed by the following formula:
[0086]
[0087] Among them, Q i .θ is the direction of human flow, Q i .lat is the coordinate position of the i-th trajectory point, Q i+1.lng is the coordinate position of the i+1th trajectory point, and |T| is the number of trajectory points.
[0088] In some embodiments, the angle difference between the travel direction of the resident user flow and the extension direction of each candidate road segment can be expressed by the following formula:
[0089] Δ θ =|Q i .θ-e j .k| (4)
[0090] Among them, Δ θ Q is the angle difference between the direction of pedestrian flow and the direction of road section extension, i .θ is the direction of human flow, e j is the slope of the road section.
[0091] In some implementations, the above calculation of the angle difference between the travel direction of the flow of mobile users and the extension direction of each candidate road segment can be calculated in the same way as for resident users, which will not be repeated here.
[0092] In some embodiments, based on any of the above embodiments, the network point location selection method may further include: obtaining the location of an existing network point in the target area;
[0093] In some embodiments, in step S104, the location selection area corresponding to the target average value of human flow is determined as the location selection area of the new network point through the preset correspondence relationship between the average value of human flow and the location selection area, including:
[0094] Determine the area size corresponding to the target average flow of people through the preset correspondence between the average flow of people and the area size;
[0095] The location of the existing network point is used as a reference point, and the area within the preset range of the reference point is determined as the target site selection area; wherein the preset range is determined according to the size of the area.
[0096] In one embodiment, the above-mentioned determination of the area size corresponding to the target average human flow value by the preset correspondence relationship between the average human flow value and the area size may include:
[0097] Through the corresponding relationship between the mean passenger flow and the regional radius, the regional radius corresponding to the target mean passenger flow is determined, and the size of the area is determined by the regional radius.
[0098] In one embodiment, the area radius corresponding to the target mean flow of people is determined by the correspondence between the mean flow of people and the area radius, which can be expressed by the following formula:
[0099]
[0100] Among them, d is the area radius corresponding to the mean target flow rate, L is the area radius corresponding to the mean flow rate of existing outlets, and T is the area radius corresponding to the mean flow rate of the target area in each time period.
[0101] In some embodiments, before step S101: obtaining existing outlets in the target area, the outlet site selection method may further include:
[0102] Obtain the initial site selection area;
[0103] The initial site selection area is divided based on the quadtree structure to obtain the target area.
[0104] Among them, the quadtree, as a tree-like storage data structure, has a high indexing efficiency. It divides a certain area into four equal parts. A threshold is preset for each quartering. When the number of nodes in the area is greater than the preset threshold, the area will continue to be divided into four equal parts until the number of child nodes is less than the preset threshold.
[0105] Current map matching algorithms have high matching accuracy, but due to the huge amount of map data, the algorithm execution time is long, so storing and retrieving this data takes a lot of time.
[0106] The existing technology uses the method of grid division to solve the data storage problem. However, when there are too many nodes in a grid, it still takes a lot of time to search, which brings high time costs.
[0107] The initial site selection area is divided by a quadtree structure to obtain a target area with a controllable number of outlets, and the outlet data is stored in the corresponding tree nodes. Since the number of outlets in each target area is controllable, the outlet data can be quickly searched based on the quadtree structure, thereby reducing the time cost of searching for outlets.
[0108] As an example, the above-mentioned process of dividing the initial site selection area based on the quadtree structure may be as follows:
[0109] like Figure 3 As shown in (a), there are 7 dots in the area. Given a threshold of 2, the area is divided into four equal parts, namely A, B, C, and D. Since the number of dots in area A is still greater than the given threshold, it is necessary to continue to divide area A into four areas, namely AA, AB, AC, and AD. At this time, the number of dots in these four areas is less than the given threshold.
[0110] The leaf node represents the smallest area on the map and stores all the nodes in the area. Figure 3As shown in (b), the four child nodes of the second layer in the quadtree structure correspond to the above-mentioned four regions A, B, C, and D respectively, and the four child nodes of the third layer correspond to the above-mentioned four regions AA, AB, AC, and AD respectively.
[0111] In some embodiments, based on any of the above embodiments, the network site selection method may further include:
[0112] Get the user's actual location;
[0113] Generate noise points within a preset range of the actual location;
[0114] Cluster the noise points and actual positions to obtain cluster centers;
[0115] The location of the cluster center is used as the user's location on the map.
[0116] After the branch address is determined, if there is a user who wants to search for the branch address but does not want to reveal his or her location, how to protect the privacy of user branch interactions becomes an issue to be studied.
[0117] To this end, this embodiment generates multiple noise points within a preset range of the user's actual location, clusters the user's actual location and the noise points through a clustering algorithm to obtain a cluster center point, and then uses the position of the cluster center point as the user's positioning position on the map, thereby hiding the user's actual location and protecting the user's location privacy.
[0118] In one embodiment, multiple noise points are generated near the actual position of the user, and the actual position of the user and the noise points are clustered by a clustering algorithm to obtain a cluster center point, and then the position of the cluster center point is used as the positioning position of the user on the map. Figure 4 The specific instructions are as follows:
[0119] like Figure 4 As shown in the figure, in a certain area, there is a user P who wants to obtain the location of the network point. In the area, ni noise points are randomly generated near the user point P, and these noise points including point P are clustered to obtain the cluster center point c. Then, the cluster center point c replaces the real location of the user point P to interact with the network point, thereby realizing the user location privacy protection.
[0120] Figure 5 Schematic diagram of a network site selection device 500 provided in an embodiment of the present application. Figure 5 As shown, the device may include a data acquisition module 510 , a calculation module 520 , and a site selection module 530 .
[0121] An acquisition module 510 is used to acquire existing outlets in a target area, the number of existing outlets, the flow of people at existing outlets in multiple time periods within a preset time period, and a map of the target area;
[0122] The calculation module 520 is used to calculate the average flow rate of each existing network point and the average flow rate of the target area in each time period according to the number of existing network points and the flow rate of people in the existing network points in multiple time periods within a preset time period;
[0123] The calculation module 520 is further used to perform weighted summation of the average passenger flow of the existing outlets and the average passenger flow of the target area in each time period to obtain the target passenger flow average;
[0124] A site selection module 530, configured to determine a target site selection area corresponding to a target mean value of human flow according to a preset correspondence between a mean value of human flow and a site selection area;
[0125] The site selection module 530 is further used to select, from the map of the target area, candidate road sections that are located in the target site selection area and are less than a preset distance from the existing network points;
[0126] The site selection module 530 is also used for each pedestrian flow direction: based on the pedestrian flow direction of the target area, calculating the angle difference between the pedestrian flow direction and the extension direction of each candidate road section to obtain multiple angle differences; screening out the target candidate road section whose angle difference meets the preset threshold condition from the multiple angle differences; and determining the target candidate road section as the site selection section for the new network point.
[0127] In the embodiment of the present application, the average value of the flow of people at each existing network point and the average value of the flow of people in the target area in each time period are calculated and weighted summed, wherein the average value of the flow of people at the existing network point represents the user's preference for the current location, and the average value of the flow of people in the target area in each time period represents the flow of people at the current location under the influence of time. The weighted summation method can balance the influence of the two on the network point site selection, fully and balancedly consider the preference factor and the time factor to analyze the network point site selection location, and can preliminarily quickly and accurately determine the site selection area, and then determine from the map the target candidate road section that is located in the site selection area and is less than the preset distance from the existing network point; then calculate the angle difference between the direction of the flow of people and the extension direction of each target candidate road section, and use the target candidate road section whose angle difference meets the preset threshold condition as the site selection section of the new network point, so as to achieve unified matching of the direction of the flow of people and the direction of the actual road section, thereby solving the problem of deviation between the GPS positioning data and the real position, thereby avoiding the selection of unreasonable areas such as lakes, lawns, and sidewalks instead of actual roads when selecting network points, thereby improving the accuracy of network point site selection.
[0128] In some embodiments, the site selection module 530 is further used to obtain resident users in the target area and historical track points of each resident user;
[0129] For each resident user: based on the historical trajectory points, filter out the target historical trajectory points whose occurrence frequency meets the first threshold condition within a preset time period;
[0130] Based on the target historical trajectory points, the pedestrian flow direction of the resident users is obtained through the correspondence between the preset historical trajectory points and the pedestrian flow direction;
[0131] Based on the flow direction of the resident users, the angle difference between the flow direction of the resident users and the extension direction of each candidate road segment is calculated.
[0132] In some embodiments, the site selection module 530 is further used to obtain mobile users in the target area and the movement direction of each mobile user;
[0133] For each mobile user: the movement direction is taken as the flow direction of the mobile user;
[0134] Based on the travel direction of the flow of mobile users, the angle difference between the flow direction of mobile users and the extension direction of each candidate road segment is calculated.
[0135] In some embodiments, the calculation module 520 is further used to obtain the location of existing network points in the target area;
[0136] The target site selection area corresponding to the target mean passenger flow is determined by the preset correspondence between the mean passenger flow and the site selection area, including:
[0137] Determine the area size corresponding to the target average flow of people through the preset correspondence between the average flow of people and the area size;
[0138] The location of the existing network point is used as a reference point, and the area within the preset range of the reference point is determined as the target site selection area; wherein the preset range is determined according to the size of the area.
[0139] In some embodiments, the network site selection device 500 may further include a division module;
[0140] The acquisition module 510 is also used to acquire an initial site selection area;
[0141] The partitioning module is used to partition the initial site selection area based on a quadtree structure to obtain a target area.
[0142] In some embodiments, the acquisition module 510 is further used to obtain the actual location of the user;
[0143] The calculation module 520 is further used to generate noise points within a preset range of the actual position;
[0144] Cluster the noise points and actual positions to obtain cluster centers;
[0145] The location of the cluster center is used as the user's location on the map.
[0146] Figure 5 The various modules in the device shown can be implemented Figure 1 Each step in the above steps can achieve the corresponding technical effect, which will not be repeated here for the sake of brevity.
[0147] Figure 6 A schematic diagram of the hardware structure of a network point site selection device provided in an embodiment of the present application is shown.
[0148] The network site selection device may include a processor 601 and a memory 602 storing computer program instructions.
[0149] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0150] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0151] In certain embodiments, the memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present application.
[0152] The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement any one of the network site selection methods in the above embodiments.
[0153] In one example, the network site selection device may further include a communication interface 603 and a bus 610. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.
[0154] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0155] The bus 610 includes hardware, software or both, coupling the components of the network site selection device to each other. For example and not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 610 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application considers any suitable bus or interconnect.
[0156] In addition, in combination with the network site selection method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any network site selection method in the above embodiment is implemented.
[0157] The embodiment of the present application also provides a computer program product, including a computer program, which implements any one of the network site selection methods in the above embodiments when the computer program is processed and executed.
[0158] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0159] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0160] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0161] The above reference is to the flowchart and / or block diagram of the method, device, equipment, storage medium and computer program product according to the embodiment of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0162] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A method for selecting a network site. It is characterized in that include: Acquire existing outlets in the target area, the number of the existing outlets, the flow of people at the existing outlets in multiple time periods within a preset time period, and a map of the target area; According to the number of the existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period, respectively calculate the average flow of people at each of the existing outlets and the average flow of people in the target area in each time period; Performing a weighted summation of the average passenger flow of the existing outlets and the average passenger flow of the target area in each time period to obtain a target passenger flow average; Determine the target site selection area corresponding to the target mean value of human flow through the preset correspondence between the mean value of human flow and the site selection area; Filtering, from a map of the target area, candidate road sections that are located in the target site selection area and are less than a preset distance from the existing network point; For each pedestrian flow direction: based on the pedestrian flow direction of the target area, calculating the angle difference between the pedestrian flow direction and the extension direction of each candidate road section, to obtain a plurality of angle differences; Filtering out a target candidate road section whose angle difference satisfies a preset threshold condition from the multiple angle differences; The target candidate road section is determined as the site selection section for the new network point.
2. The network site selection method according to claim 1, It is characterized in that The calculating the angle difference between the travel direction of the pedestrian flow and the extension direction of each candidate road segment includes: Acquire resident users in the target area and historical track points of each resident user; For each of the resident users: based on the historical track points, filter out target historical track points whose occurrence frequency in a preset time period meets a first threshold condition; Based on the target historical trajectory point, the crowd flow direction of the resident user is obtained through the preset correspondence between the historical trajectory point and the crowd flow direction; Based on the flow direction of the resident users, the angle difference between the flow direction of the resident users and the extension direction of each candidate road segment is calculated.
3. The network site selection method according to claim 1, It is characterized in that The calculating the angle difference between the direction of the pedestrian flow and the extension direction of each candidate road segment includes: Acquire mobile users in the target area and a movement direction of each mobile user; For each of the mobile users: taking the movement direction as the flow direction of the mobile user; Based on the traveling direction of the flow of mobile users, the angle difference between the flow direction of mobile users and the extending direction of each candidate road segment is calculated.
4. The network site selection method according to any one of claims 1 to 3, It is characterized in that Also includes: Obtaining locations of existing network points within the target area; The determining the target site selection area corresponding to the target mean value of human flow through the preset correspondence between the mean value of human flow and the site selection area includes: Determine the area size corresponding to the target average human flow value by using the preset correspondence relationship between the average human flow value and the area size; The location of the existing network point is used as a reference point, and the area within a preset range of the reference point is determined as a target site selection area; wherein the preset range is determined according to the size of the area.
5. The network site selection method according to claim 1, It is characterized in that Before acquiring the existing network points in the target area, the method further includes: Obtain the initial site selection area; The initial site selection area is divided based on the quadtree structure to obtain the target area.
6. The network site selection method according to claim 1, It is characterized in that Also includes: Get the user's actual location; generating a noise point within a preset range of the actual position; Clustering the noise points and the actual positions to obtain cluster center points; The position of the cluster center point is used as the user's positioning position on the map.
7. A network site selection device, It is characterized in that The device comprises: An acquisition module, used to acquire existing outlets in a target area, the number of the existing outlets, the flow of people at the existing outlets in multiple time periods within a preset time period, and a map of the target area; A calculation module, configured to calculate the average flow of people at each of the existing outlets and the average flow of people in the target area in each time period according to the number of the existing outlets and the flow of people at the existing outlets in multiple time periods within a preset time period; The calculation module is further used to perform weighted summation of the average passenger flow of the existing outlets and the average passenger flow of the target area in each time period to obtain a target passenger flow average; A site selection module, used to determine a target site selection area corresponding to the target average value of human flow through a preset correspondence relationship between the average value of human flow and the site selection area; The site selection module is further used to screen out candidate road sections located in the target site selection area and whose distance from the existing network point is less than a preset distance from the map of the target area; The site selection module is also used to: for each pedestrian flow direction, based on the pedestrian flow direction of the target area, calculate the angle difference between the pedestrian flow direction and the extension direction of each candidate road section to obtain multiple angle differences; screen out the target candidate road section whose angle difference meets the preset threshold condition from the multiple angle differences; and determine the target candidate road section as the site selection section for the new network point.
8. A network site selection device, It is characterized in that The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the network site selection method as described in any one of claims 1-6 is implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the network point site selection method according to any one of claims 1 to 6 is implemented.
10. A computer program product, It is characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the network site selection method as described in any one of claims 1-6.
