Summary of the invention
The invention provides a kind of circuit recommendation system and method based on the Big Dipper/gps data, be not intended to solve the existing shipping circuit way of recommendation owing to consider real-time road condition information and reduce utilization factor and the no-load ratio of goods stock, and the shipping recommended line has only the technical matters that can not select according to the actual requirements.
Technical scheme provided by the invention is: a kind of circuit recommendation system based on the Big Dipper/gps data, comprise the Big Dipper/GPS terminal and server, the described Big Dipper/GPS terminal is used for the location and sends the vehicle Big Dipper/GPS information, described server is used for receiving the vehicle Big Dipper/GPS information, divide into groups according to the track data of vehicle unique identification with each car, and according to blocking rule the track data of each car record is blocked, generate mulitpath, the path is carried out exporting recommended line according to different attribute respectively after the cluster analysis.。
Technical scheme of the present invention also comprises: the described Big Dipper/GPS information comprises time, current longitude and latitude and/or the current driving mileage that vehicle unique identification, current information send; Described different attribute comprises that shortest time, bee-line, top gain and/or highest line sail frequency.
Technical scheme of the present invention also comprises: described server comprises the data analysis processing module, described data analysis processing module comprises the historical Big Dipper/gps data analysis module and the real-time Big Dipper/gps data analysis module, the described historical Big Dipper/gps data analysis module is used for the vehicle line in the long period section is excavated and analyzes, the described real-time Big Dipper/gps data analysis module is used for extracting the vehicle unique identification, the time that current information sends, current longitude and latitude and/or current driving mileage information, calculate city, vehicle place according to current latitude and longitude information, divide into groups according to the track data of vehicle unique identification with each car, and by access time ascending order arrangement, use the track denoise algorithm that unusual track data is filtered the back track data is compressed processing, and the track data that will compress after handling blocks the generation mulitpath by blocking the track data record of rule with each car, mulitpath is divided into groups according to identical initial termination city, cluster analysis is carried out in path to each group, and the path that cluster is later generates optimum recommended line more than at least two according to different attribute respectively, and deposits result of calculation in the cloud platform.
Technical scheme of the present invention also comprises: described server comprises the cloud platform, and described cloud platform comprises distributed data base and memory database, is used for storage shipping recommended line data; The rule of blocking that described server adopts is: national map is divided into several big zones, when vehicle is entered city b1 among another regional B inequality by the city a1 of a regional A, calculate this car in the residence time in b1 city, when residence time during greater than certain threshold value, then circuit is blocked, generate mulitpath successively.
Technical scheme of the present invention also comprises: described server also comprises shipping recommended line module, described shipping recommended line module comprises the expired processing module of circuit, circuit query request processing module and circuit evaluation processing module, the expired processing module of described circuit is used for regularly depositing up-to-date shipping recommended line in memory database, and recommend the shipping circuit to remove memory database history; Described circuit query request processing module is used for receiving user's circuit query request, and retrieves in memory database, if retrieve relevant circuit, then directly returns corresponding track data; If do not retrieve relevant circuit, then query requests is forwarded in the distributed data base and retrieves, if still do not retrieve relevant circuit, then return no result, have and then return corresponding track data; Described circuit is estimated processing module and is used for for the user shipping circuit that checks out being estimated.
Another technical scheme provided by the invention, a kind of circuit recommendation method based on the Big Dipper/gps data comprises:
Step a: send the vehicle Big Dipper/GPS information by the Big Dipper/GPS terminal to server;
Step b: receive the Big Dipper/GPS information by server, divide into groups according to the track data of vehicle unique identification with each car, and block according to blocking the track data record of rule with each car, generate mulitpath;
Step c: the path is carried out generating recommended line according to different attribute respectively after the cluster analysis.
Technical scheme of the present invention also comprises: in described step b, the described rule of blocking is: national map is divided into several big zones, when vehicle is entered city b1 among another regional B inequality by the city a1 of a regional A, calculate this car in the residence time in b1 city, when residence time during greater than certain threshold value, then circuit is blocked, generate mulitpath successively.
Technical scheme of the present invention also comprises: described step b also comprises: extract time, current longitude and latitude and/or the current driving mileage characteristic information of vehicle unique identification, current information transmission, calculate city, vehicle place according to current latitude and longitude information; Divide into groups according to the track data of vehicle unique identification with each car, and arrange by the access time ascending order, use the track denoise algorithm that unusual track data is filtered the back track data is compressed processing.
Technical scheme of the present invention also comprises: described step c also comprises: the optimum recommended line that will export deposits in the cloud platform database, and call the expired processing module of circuit and regularly deposit up-to-date shipping recommended line in memory database, recommend the shipping circuit to remove memory database history.
Technical scheme of the present invention also comprises: described step c also comprises: stop city and transmitting line query requests by browser input initial sum; Server receives query requests, and goes to retrieve in memory database, if retrieve relevant circuit, then directly returns corresponding track data; If do not retrieve relevant circuit, then query requests is forwarded in the distributed data base and retrieves, if still do not retrieve relevant circuit, then return no result, have and then return corresponding track data; Track data is presented at above the browser, and circuit is carried out optimal classification by different attribute; Call circuit evaluation processing module and carry out the circuit evaluation for the user.
Technical scheme of the present invention has following advantage or beneficial effect: the circuit recommendation system and method based on the Big Dipper/gps data of the embodiment of the invention passes through the Big Dipper/GPS information of transmission goods stock in real time, the real-time Big Dipper/GPS information by goods stock is analyzed and is handled, and according to many optimum recommended lines of different attribute generation, solve the problem of shipping recommended line real-time deficiency, be convenient to the driver and select suitable freightways according to actual conditions, improve the efficient of logistics and the utilization factor of goods stock, and be convenient to loglstics enterprise and carry out intelligentized operation plan, save the traffic resource energy consumption, reduce the municipal pollution index.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explaining the present invention, and be not used in restriction the present invention.
See also Fig. 1, be the structural representation based on the circuit recommendation system of the Big Dipper/gps data of the embodiment of the invention.The circuit recommendation system based on the Big Dipper/gps data of the embodiment of the invention comprises the Big Dipper/GPS terminal and server, the Big Dipper/GPS terminal is used for the location and sends the vehicle Big Dipper/GPS information in real time, wherein, the Big Dipper/GPS information comprises the characteristic informations such as time, current longitude and latitude and/or current driving mileage that vehicle unique identification, current information send.In embodiments of the present invention, the vehicle unique identification is license plate number, and the Big Dipper/GPS terminal can be the vehicle-mounted Big Dipper/GPS terminal, also can be the hand-held Big Dipper/GPS terminal or other terminal with the Big Dipper/GPS function.Server is used for receiving in real time the vehicle Big Dipper/GPS information, divide into groups according to the track data of vehicle unique identification with each car, block according to necessarily blocking the track data record of rule with each car, generate mulitpath, and divided into groups in the path according to identical initial termination city, each group path is carried out exporting many optimum recommended lines and storage line circuit-switched data according to different attribute respectively after the cluster analysis, for the user provides the path query service.The vehicle-mounted Big Dipper/GPS terminal and server carry out the exchange of data by wireless network, wireless network comprises GSM(Global System of Mobile communication, global system for mobile communications), GPRS(General Packet Radio Service, GPRS (General Packet Radio Service)), WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), HSDPA(High Speed Downlink Package Access, high-speed downlink packet inserts) etc. mode.The Big Dipper/every the interval of GPS terminal certain hour sends data by modes such as radio network technique GSM, GPRS, WCDMA, HSDPA to server, specifically sends and can set according to different situations interval time, for example one minute or a few minutes etc.
Particularly, server comprises data analysis processing module, shipping recommended line module and cloud platform,
The data analysis processing module is used for the Big Dipper/GPS information that receives is carried out analyzing and processing, and the data analysis processing module comprises the historical Big Dipper/gps data analysis module and the real-time Big Dipper/gps data analysis module, wherein,
The historical Big Dipper/gps data analysis module is used for the vehicle line in the long period section is excavated and analyzes, for example one month or a season etc., in embodiments of the present invention, vehicle line can be logistics shipping circuit, also can be other line modes such as vehicle vehicle line.
The Big Dipper/gps data analysis module is used for calculating city, vehicle place by characteristic informations such as the Big Dipper/GPS information extraction vehicle unique identification, current information transmitting time, current longitude and latitude and/or current driving mileages according to current latitude and longitude information in real time; Divide into groups according to the track data of vehicle unique identification with each car, and arrange by the access time ascending order; Use track denoise algorithm is filtered the back to unusual track data track data is compressed processing, and the track data that will compress after handling blocks the generation mulitpath by necessarily blocking the track data record of rule with each car; The mulitpath that all vehicles are generated divides into groups according to identical initial termination city, cluster analysis is carried out in path to each group, and the path that cluster is later calculate to generate optimum recommended line more than at least two according to different attribute respectively, and result of calculation deposited in the distributed data base and memory database of cloud platform; This attribute comprises shortest time, bee-line, income is the highest or the frequency of travelling is the most high, is convenient to the driver and selects suitable freightways according to actual conditions, improves the efficient of logistics and the utilization factor of goods stock, reduces energy resource consumption.Wherein, the track data denoise algorithm is specially: the vehicle-mounted Big Dipper/gps data is divided into groups according to license plate number, to arrange by ascending order writing time then, get n the continuous Big Dipper/gps data point successively, and calculate the distance of intermediate point between putting with other n-1, if distance greater than 50%, is then filtered this Big Dipper/gps data point greater than the frequency of a certain setting threshold D and generation; Otherwise, exporting this Big Dipper/gps data point, can set according to actual conditions apart from threshold values; Specifically seeing also Fig. 2 (it is example that Fig. 2 only chooses GPS, and the Big Dipper is as the same), is the track data denoise algorithm schematic diagram of the embodiment of the invention.Track data blocks rule for national map is divided into several big zones, when vehicle is entered city b1 among another regional B inequality by the city a1 of a regional A, calculate this car in the residence time in b1 city, when residence time during greater than certain threshold value, then circuit is blocked, generate mulitpath successively; Wherein, residence time threshold values can be set as the case may be, for example 2 hours; If same car has stop several times in same city, then this several times accumulative total down time of stop be that this car is in the residence time in this city; Clustering method comprises: at first carry out path modeling, linear interpolation and addendum are carried out in the path, features such as the time by extracting the path, space, speed, direction are divided into many single sub path with the path, and successively every single sub path is carried out carrying out cluster analysis according to space-time, speed, direction and variation thereof, similar path is brought together, as a circuit; For long-distance path, sub-fraction difference end to end just, other major parts are identical, then are similar path.
Shipping recommended line module is used for providing the user to inquire about the shipping circuit, and the freight line circuit-switched data that is stored in the cloud platform is safeguarded, shipping recommended line module comprises the expired processing module of circuit, circuit query request processing module and circuit evaluation processing module,
The expired processing module of circuit is used for regularly depositing up-to-date shipping recommended line in memory database, and recommend the shipping circuit to remove memory database history, saves memory headroom, improves the shipping circuit efficient of inquiry in real time; Wherein, circuit cycle of depositing or removing memory database in can be set as the case may be.
The circuit query request processing module is used for receiving user's circuit query request, and at first retrieves in memory database, if retrieve relevant circuit, then directly returns corresponding track data; If do not retrieve relevant circuit, then query requests is forwarded in the distributed data base and retrieves, if still do not retrieve relevant circuit, then return no result, have and then return corresponding track data; Simultaneously, when the query requests transfer amount is excessive, then query requests is evenly distributed on the different servers, improves the load balance ability of system.
Circuit is estimated processing module and for the user shipping circuit that checks out is made the evaluation processing, is convenient to the user and finds best shipping circuit according to relevant evaluation, improves the interactivity of system.
The cloud platform is based upon on the distributed system architecture, for example Hadoop, Dremel, Spark etc., comprise based on the distributed data base on these frameworks and memory database, be used for the storage of freight line circuit-switched data, and finish functions such as access to user request information, index, to accelerate data access speed, realize real-time or interactive inquiry, the processing etc. of mass data.
The circuit recommendation method based on the Big Dipper/gps data of the embodiment of the invention comprises circuit generation method and circuit query method, sees also Fig. 3, is the process flow diagram of the circuit generation method of the embodiment of the invention.The circuit generation method of the embodiment of the invention may further comprise the steps:
Step 300: the Big Dipper/GPS terminal sends the Big Dipper/GPS information of oneself to server by radio network technique;
In step 300, the Big Dipper/GPS information comprises the characteristic informations such as time, current longitude and latitude and/or current driving mileage that vehicle unique identification, current information send.In embodiments of the present invention, the vehicle unique identification is license plate number, and the Big Dipper/GPS terminal can be the vehicle-mounted Big Dipper/GPS terminal, also can be the hand-held Big Dipper/GPS terminal or other terminal with the Big Dipper/GPS function.
Step 310: receive the Big Dipper/GPS information by server, and extract characteristic informations such as vehicle unique identification, current information transmitting time, current longitude and latitude, current driving mileage, and calculate city, vehicle place according to current latitude and longitude information;
Step 320: divide into groups according to the track data of vehicle unique identification with each car, and arrange by the access time ascending order, use the track denoise algorithm that unusual track data is filtered the back track data is compressed processing;
In step 320, the track data denoise algorithm is specially: the vehicle-mounted Big Dipper/gps data is divided into groups according to license plate number, to arrange by ascending order writing time then, get n the continuous Big Dipper/GPS point data successively, and calculate the distance of intermediate point between putting with other n-1, if distance greater than 50%, is then rejected this point greater than the frequency of a certain setting threshold D and generation, this threshold values can be set according to actual conditions.
Step 330: the track data that will compress after handling blocks by necessarily blocking the track data record of rule with each car, generates mulitpath;
In step 330, track data blocks rule: national map is divided into several big zones, when vehicle is entered city b1 among another regional B inequality by the city a1 of a regional A, calculate this car in the residence time in b1 city, when residence time during greater than certain threshold value, then circuit is blocked, generate mulitpath successively; Wherein, residence time threshold values can be set as the case may be, for example 2 hours; If same car has stop several times in same city, then this several times accumulative total down time of stop be that this car is in the residence time in this city.
Step 340: the mulitpath that all vehicles are generated divides into groups according to identical initial termination city, and cluster analysis is carried out in the path of each group;
In step 340, clustering method comprises: at first carry out path modeling, linear interpolation and addendum are carried out in the path, features such as the time by extracting the path, space, speed, direction are divided into many single sub path with the path, and successively every single sub path is carried out carrying out cluster analysis according to space-time, speed, direction and variation thereof, similar path is brought together, as a circuit; For long-distance path, sub-fraction difference end to end just, other major parts are identical, then are similar path.
Step 350: the optimum recommended line that generates more than at least two is calculated according to different attribute respectively in the path that cluster is later;
In step 350, this attribute comprises that shortest time, bee-line, top gain and/or highest line sail frequency etc., is convenient to the driver and selects the freightways that is fit to according to actual conditions, improves the efficient of logistics and the utilization factor of goods stock, reduces energy resource consumption.
Step 360: the optimum recommended line that will generate deposits in the cloud platform database, and calls the expired processing module of circuit and regularly deposit up-to-date shipping recommended line in memory database, recommends the shipping circuit to remove memory database history.
In step 360, the cloud platform is based upon on the distributed system architecture, for example Hadoop, Dremel, Spark etc., comprise based on the distributed data base on these frameworks and memory database, be used for the storage of freight line circuit-switched data, and finish functions such as access to user request information, index, to accelerate data access speed, realize mass data in real time or interactive inquiry, processing etc.
Seeing also Fig. 4, is the process flow diagram of the circuit query method of the embodiment of the invention.The circuit query method of the embodiment of the invention may further comprise the steps:
Step 400: the user stops city and transmitting line query requests by browser input initial sum;
Step 410: server receives query requests, and goes to retrieve in memory database, if retrieve relevant circuit, then directly returns corresponding track data; If do not retrieve relevant circuit, then query requests is forwarded in the distributed data base and retrieves, if still do not retrieve relevant circuit, then return no result, have and then return corresponding track data;
In step 410, when the query requests transfer amount is excessive, query requests can be evenly distributed on the different servers, improve the load balance ability of system.
Step 420: use map API(Application Programming Interface, application programming interface) track data is presented at above the browser, and recommended line is carried out optimal classification by different attribute;
Step 430: call circuit evaluation processing module and carry out circuit evaluation processing for the user.
In step 430, the user can find best shipping circuit according to the circuit evaluation information, improves the interactivity of system.
The circuit recommendation system and method based on the Big Dipper/gps data of the embodiment of the invention passes through the Big Dipper/GPS information of transmission goods stock in real time, the real-time Big Dipper/GPS information by goods stock is analyzed and is handled, and according to many optimum recommended lines of different attribute generation, solve the problem of shipping recommended line real-time deficiency, be convenient to the driver and select suitable freightways according to actual conditions, improve the efficient of logistics and the utilization factor of goods stock, and be convenient to loglstics enterprise and carry out intelligentized operation plan, save the traffic resource energy consumption, reduce the municipal pollution index.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.