S2, when receiving the freight navigation request, judging whether the navigation path set contains the requested path in the freight navigation request, if so, returning the corresponding navigation path set, and ending; Otherwise, step S3 is executed;
S3, selecting the navigation route with the shortest path from the navigation route set to return, and ending.
Optionally, step S 1 specifically includes: collecting trajectory data reported by vehicle-mounted equipment of various types of trucks, matching the collected trajectory data with map data to obtain driving routes corresponding to various types of trucks, and counting driving routes within a preset time period to obtain a set of navigation routes for various types of trucks.
Optionally, the navigation route set includes the driving frequency of each driving route;
Accordingly, step S2 specifically includes:
Step S2- 1: when the freight navigation request is received, the navigation route set of the corresponding model is searched according to the truck model contained in the freight navigation request, and it is judged whether the searched navigation route set contains the same driving route as the starting point and ending point of the requested route in the freight navigation request, if so, step S2-2 is executed; Otherwise, step S3 is executed;
Step S2-2: Judge whether the searched navigation route set contains the same driving route as the starting point and ending point of the route requested in the freight navigation request, and if so, return the driving route as the navigation route and end it; Otherwise, compare the driving frequency of each driving route, return the driving route with the largest driving frequency as the navigation route, and end.
Optionally, step S3 specifically includes: extracting connected driving routes from the corresponding navigation route set according to the starting point and ending point of the route requested in the freight navigation request, obtaining different navigation routes, calculating the cost of each navigation route, and returning the navigation route with the lowest cost.
Optionally, the navigation route set includes the driving frequency of each driving route;
Accordingly, calculating the cost of each navigation route specifically includes:
Step A 1: calculate the sum of driving frequencies of each driving route in different time periods;
Step A2, according to the sum of the driving frequencies of all driving routes, calculating the function values of the Gaussian mean of the first preset data and the Gaussian distribution of the variance of the second preset data;
Step A3: calculating the cost of each driving route according to the road length of each driving route and the function value of the corresponding Gaussian distribution;
Step A4: Add the cost values of the connected driving routes to obtain the cost values of the corresponding navigation routes.
On the other hand, the invention provides a freight navigation device based on the historical track of a freight car, comprising:
The acquisition module is used for acquiring the track data of each truck;
The generating module is used for counting the trajectory data collected by the collecting module and generating a navigation path set;
The receiving module is used for receiving a freight navigation request;
The judging module is used for judging whether the navigation route set generated by the generating module contains the requested route in the freight navigation request when the receiving module receives the freight navigation request.
Thank you for your adoption.