Disclosure of Invention
The present invention is to provide a path measurement method based on big data analysis technology, which can alleviate the above problems.
In order to alleviate the above problems, the technical scheme adopted by the invention is as follows:
the invention comprises the following steps:
a, acquiring path information to be detected and a road topological graph, and adjusting the relative coordinate position of the path information to be detected to obtain a corresponding path data set;
b, acquiring node coordinates in the path according to the corresponding path data set in the path network model;
c, obtaining a field static route between the node coordinate starting point and the destination according to an ant algorithm;
d, weighting calculation is carried out on the arrival time of the path by taking weight coefficients into the static route in the field according to the weight minimum principle;
and E, saving the path results of the starting point and the destination into an array, and repeating the steps to calculate and derive the optimal path analysis result.
Further, the path data set is divided into data, and then the travel route of the path is sequentially played in each scene.
Further, the method for constructing the path network model comprises the following steps:
a, drawing a path topological graph;
b, constructing a path adjacency matrix through a path topological graph;
and c, importing the adjacent matrix and the node information of the path into a two-dimensional array.
Further, the ant algorithm analyzes path information passing through a designated station, and the ant algorithm supports one-time analysis of optimal paths of a plurality of stations.
A location dominance path analysis device based on big data comprises:
the path data module is used for acquiring the information of the path to be measured and the road topological graph, and adjusting the relative coordinate position of the information of the path to be measured to obtain a corresponding path data set;
the node module is used for acquiring node coordinates in the path according to the corresponding path data set in the path network model;
the route acquisition module is used for acquiring a solid static route between the node coordinate starting point and the destination;
and the calculation module is used for weighting and calculating the arrival time of the path by taking the weight coefficient into the field static route according to the weight minimum principle.
And the result deriving module is used for saving the path results of the starting point and the destination into an array and repeating the steps to calculate and derive the optimal path analysis result.
A big-data based location dominance path analysis apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the big data analytics-based path measurement device to perform any of the methods described herein.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods.
The technical effect of the technical scheme is as follows:
the invention can effectively save labor cost, avoid path analysis data errors caused by related parameter setting errors, carry out statistical analysis on the path data from multiple dimensions, and effectively ensure statistical precision and quality.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
As shown in fig. 1 and 2, the present invention comprises:
a, acquiring path information to be detected and a road topological graph, and adjusting the relative coordinate position of the path information to be detected to obtain a corresponding path data set;
b, acquiring node coordinates in the path according to the corresponding path data set in the path network model;
c, obtaining a field static route between the node coordinate starting point and the destination according to an ant algorithm;
d, weighting calculation is carried out on the arrival time of the path by taking weight coefficients into the static route in the field according to the weight minimum principle;
and E, saving the path results of the starting point and the destination into an array, and repeating the steps to calculate and derive the optimal path analysis result.
Further, the path data set is divided into data, and then the travel route of the path is sequentially played in each scene.
Further, the method for constructing the path network model comprises the following steps
a, drawing a path topological graph;
b, constructing a path adjacency matrix through a path topological graph;
and c, importing the adjacent matrix and the node information of the path into a two-dimensional array.
Further, the ant algorithm analyzes path information passing through a designated station, and the ant algorithm supports one-time analysis of optimal paths of a plurality of stations.
A location dominance path analysis device based on big data comprises:
the path data module is used for acquiring the information of the path to be measured and the road topological graph, and adjusting the relative coordinate position of the information of the path to be measured to obtain a corresponding path data set;
the node module is used for acquiring node coordinates in the path according to the corresponding path data set in the path network model;
the route acquisition module is used for acquiring a solid static route between the node coordinate starting point and the destination;
and the calculation module is used for weighting and calculating the arrival time of the path by taking the weight coefficient into the field static route according to the weight minimum principle.
And the result deriving module is used for saving the path results of the starting point and the destination into an array and repeating the steps to calculate and derive the optimal path analysis result.
A big-data based location dominance path analysis apparatus, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the big data analytics-based path measurement device to perform any of the methods described herein.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods.
In this embodiment, an ant algorithm is used to analyze the optimal path passing through the designated site, which is described in detail as follows: the calculation principle is as follows: the weight minimization principle sets the weight according to the impedance condition of the network, which is distance or time, and the parameters describe: data: the sites that the route must pass through, Node: all nodes in the path model, Matrix: road path analysis model, Open: source set, nodes already participating in the computation, Open ═ Start ], Close: difference, points not participating in computation, Close Node-Open, Start: starting point, End: the end point, shortestPath, analyzes the line information between the start point and the stop point,
the method comprises route length information ShortestPath _ i.length, node attribute information ShortestPath _ i.pathnodes and transition parameters: and (2) sequentially acquiring the close, calculating the distance D (start, vi) from each node vi to the start in the close, finding the node branch with the minimum distance value, adding the branch to the open, removing the close, simultaneously storing the node passed by the start to the vi as a short Path _ i.route, traversing the close again, calculating the distance D (start, v) from each node vi to the start in the close as Min (D (start, vi), D (start, branch) + D (branch, vi)), and if the value is the value passing through the branch, the node passed by the start to the vi is a short Path _ branch + vi, repeating the steps of step 4, 1 and 2 until the end of the branch is added, and storing the result of the shortest distance path between the start and the end in the route of the branch and the route of the start _ i + 6. After the relevant parameters are set, the analysis result can be obtained and stored in the relevant table, and can be exported to be an express table through the export function of the SuperMap iDesktop.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.