Summary of the invention
The technical matters that the present invention solves is to provide a kind of path reservation program results to supply the system and method for other system use, and significant reference data can be provided for the path computing of other system.
The method that a kind of path reservation program results that embodiment of the present invention provides supplies other system to use; Comprise: RX path reservation program results query requests, the information in order to sign path reservation program results of carrying at least in the said path reservation program results query requests is as querying condition; Querying condition based in the said path reservation planning query requests obtains the path reservation program results that satisfies said querying condition; According to the said path reservation program results that satisfies said querying condition that obtains, generated query result; Send Query Result.
Comprise: the querying condition that carries in the said path reservation program results query requests is starting point and destination; The said path reservation program results that satisfies querying condition that obtains is to obtain the path reservation program results that comprises said starting point and destination on the respective path.
Also comprise: the querying condition that carries in the said path reservation program results query requests also comprises interim point information; The said path reservation program results that satisfies querying condition that obtains is also to comprise said interim point information on the path of the said path reservation program results correspondence of obtaining.
Comprise: the querying condition that carries in the said path reservation program results query requests is the unique identifier of path reservation program results; The said path reservation program results that satisfies querying condition that obtains is to obtain the path reservation program results consistent with unique identifier.
Comprise: the querying condition that carries in the said path reservation program results query requests is a territorial scope; Based on said territorial scope inquiry map datum, obtain relevant map datum; The said path reservation program results that satisfies querying condition that obtains is to obtain the path reservation program results that comprises the road section information in the said map datum on the respective path.
Also comprise: the querying condition that carries in the said path reservation program results query requests is start time and concluding time; The said path reservation program results that satisfies querying condition that obtains is that the subscription time of the path reservation program results that obtains also must be between said start time and concluding time.
Comprise: the querying condition that carries in the said path reservation program results query requests is start time and concluding time; The said path reservation program results that satisfies querying condition that obtains is to obtain the path reservation program results of subscription time between said start time and concluding time.
The expression mode of the Query Result of said generation is the same with the expression mode of the path that obtains reservation program results.
Comprise:, generate the expression mode consistent Query Result required with the user based on the said path reservation program results that satisfies querying condition that obtains.
Also carry subscriber identity information in the said path reservation program results query requests; Also comprise: based on said subscriber identity information, identifying user identity, whether judges has authority query path to preengage program results; If subscriber authentication is failed or do not had query path reservation program results authority, generate empty Query Result or return error message; If the subscriber authentication success, and query path reservation program results authority is arranged, generate effective Query Result by said mode.
The system that embodiment of the present invention also provides a kind of path reservation program results to supply other system to use comprises: the path planning database is used to other system desired path reservation program results is provided; Server is used for RX path reservation program results query requests, and described request is carried and comprised destination, starting point and/or intermediate point, or path reservation program results unique identifier, and/or the information of sign querying conditions such as start time and concluding time; Realizing route reservation planning inquiry according to described request, is obtained the path reservation program results of said querying condition coupling from the path planning database, based on said introductory path reservation program results generated query result; Send Query Result to designated equipment.
Also comprise: map data base, for the further refinement of said querying condition provides map datum; Said querying condition carries territorial scope information, from map data base, inquires about map datum according to said territorial scope information, further the refinement querying condition.
Also comprise: the customer account management database, be suitable for coupling with said server, be used to store subscriber identity information and whether have query path to preengage the authority of planning database; First checking subscriber identity information is confirmed user's query path reservation program results of having the right, and carries out the inquiry of said path reservation program results again, the generated query result.
Said path planning database part is deployed in server this locality and perhaps and between the server realizes alternately through network; Said map data base is deployed in server this locality and perhaps and between the server realizes alternately through network; Said customer account management database part is deployed in server this locality and perhaps and between the server realizes alternately through network.
Compare with prior art; The beneficial effect of the system and method that the path reservation program results confession other system of embodiment of the present invention uses is: the of great value reference information that calculating path is provided as other system; Help other system and calculate more optimal way; Avoid the peak period of the magnitude of traffic flow; Work out optimum driving plan; Effectively improve the validity and the practicality in path, have to utilize and reduce driving planned time cost and financial cost; Can valuable information be provided for dredging of urban transportation; Can also be for Urban Traffic Planning provide valuable reference data, the design of optimizing urban traffic route.
Embodiment
The application that planning technology is preengage in a kind of emerging path will effectively improve the service efficiency with the balance urban traffic road, can effectively reduce the frequency and the seriousness of traffic congestion.This path main function of reservation planning technology is that all types of user or industry can be preengage a preferable driving path that can arrive the destination from starting point in advance according to plan, and the path reservation program results that this reserve route is corresponding is mainly calculated through the current total amount of road, existing path reservation program results and other traffic informations according to the path by specific server and forms.
This emerging path reservation planning technology is dynamically updating of support path reservation program results also, and the reservation program results is generated between the actual use because special circumstances cause this path reservation program results correspondence driving path from the starting point to the destination is not the situation of a more optimal way in the path with the reply traffic information.
The system and method that the path of embodiment of the present invention reservation program results supplies other system to use is to utilize above-mentioned emerging path reservation planning technology, for the path computing of other system provides valuable reference data.
With reference to figure 1, be that the path reservation program results of embodiment of the present invention supplies a kind of path of the method for other system use to preengage the system schematic that program results supplies other system to use.
Said path reservation program results supplies to comprise path computation service device 101, path planning server 102 and path planning database 103 and the customer account management database 104 of other system in the system of other system use.
Wherein, can connect through diverse network between the path computation service device 101 of other system and the path planning server 102, realize data communication.Said network can adopt existing diverse network technology to implement, and this does not give unnecessary details.During practical implementation; Can adopt C/S (Client/Server) framework between the path computation service device 101 of said other system and the path planning server 102, or other are fit to the path computation service device 101 of his system and the framework that path planning server 102 carries out data interaction.
Said path planning database 103 and customer account management database 104 provide path planning record data and customer data for path planning server 102, realize that with auxiliary said path planning server 102 the required path of inquiry preengages program results.
In the embodiment of the present invention; The method that said path reservation program results supplies other system to use is meant; Path server 102 is after the path reservation program results query requests that the path computation service device 101 that receives the arrival other system sends; Manage with the client from path planning database 103 based on described request and to obtain introductory path reservation program results the database 104, and these paths reservation program resultses are sent to the path computation service device 101 of other system.
The path computation service device 101 of other system need obtain path planning database 103 and manage the introductory path reservation program results in the database 104 with the client; Be used for calculating path; Its realize with path planning server 102 between communicate by letter; Send request to path planning server 102, handle the data that receive from path planning server 102.
Using the user of the path computation service device 101 of other system can be the role that various needs such as domestic consumer, industry user, government customer are done path computing.
In concrete the realization; The path computation service device 101 of other system is to be used for the equipment of calculating path; Need plan that server obtains the relevant path reservation program results in path with required calculating through the path from path planning database 103, as one of reference information of calculating path.
Path planning server 102 is realized mutual with the path computation service device 101 of other system, is responsible for receiving the request that the path computation service device 101 of other system sends; Realization is managed the database 104 with the client from path planning database 103 according to the correlation parameter in the described request and is obtained related data, said result is beamed back the path computation service device 101 of other system.
Path planning database 103 is managed database 104 with the client can accept operations such as the inquiry of path planning server 102, deletion, interpolation, statistics and backup.Said database can be that the operator of path planning server 102 is owned, can be deployed in this locality of server 102, also can be deployed in far-end, and can realize mutual between the server 102 through network.
Wherein, the path reservation program results that generates before the storage in the path planning database 103.In concrete the realization, can adopt the mode of path planning record to store said path reservation program results.For saving resource, improve data processing efficiency, can only store the current path planning record that remains valid.
Usually, in the paths plan record, information such as starting point, destination, zero-time can be comprised, information such as running time, average velocity and expense can also be comprised.In addition; The multistage route programming result information that can also comprise intermediate point in the path planning record; Comprise interim point information, segmentation speed per hour, segmentation running time and sectional charge etc., segmentation speed per hour, segmentation running time and sectional charge are that item is informed in optional requirement.
The deletion of path planning record can be adopted automatic mode, also can adopt manual type.For example, path planning record path plan record lost efficacy to after date in its planning time, can automatic or manual it be deleted from database; The user also can initiatively cancel and delete current effective path planning record.
The interpolation of path planning record can be carried out when generation pass is preengage program results in real time, also can after the user confirms, carry out at this path reservation program results.
Customer account management database 104 is used to deposit client identity information and preengages program results with its query path of whether having the right.
Usually, in the customer data record, can include but not limited to user name, password and query path reservation program results authority etc.
In the implementation process of the method that path reservation program results confession other system uses; The path computation service device 101 that generally is other system is by after the authentication of path planning server 102; To path planning server 102 transmit paths reservation program results query requests; Path planning server 102 is according to the solicit operation path planning database 103 that receives; Program results is preengage in the path computation service device 101 required paths of inquiry other system; Path planning server 102 sends the path reservation program results of inquiry gained to the path computation service device 101 of other system afterwards; Connect other traffic information calculating paths that the path computation service device 101 of other system obtains according to the path reservation program results of receiving and other modes of employing, to obtain desired path.
With reference to figure 2, said path reservation program results supplies a kind of embodiment of other system method of application to comprise:
Step S101, the path computation service device 101 of other system sends user's logging request to server 102.
Carry necessary username and password information in the said logging request.
Step S102; Whether server 102 inquiry customer account management databases 104 have the username and password coupling in the logging request that the path computation service device 101 of information recorded and the other system that receives sends, if the record of coupling is arranged; Authentication success, otherwise authentication failure.
Step S103, server 102 sends the authentication result to the path computation service device 101 of other system, and buffer memory checking result and identity information.
After the path computation service device 101 of other system is received the checking result, judge whether the client identity checking is successful, and whether have the authority of query path reservation program results.If authentication is unsuccessful or do not have an authority of query path reservation program results, then execution in step S101, S102 and S103 again initiate authentication once more.If the authentication success, and have the authority of query path reservation program results, execution in step S104.
Step S104, the path computation service device 101 of other system is to path planning server 102 transmit paths reservation program results query requests.
Carry-on information comprises destination, starting point and/or intermediate point in the said path reservation program results query requests, or path reservation program results unique identifier, or territorial scope, and/or necessary information or optional informations such as start time and concluding time.
Step S105, path planning server 102 inquire about from path planning database 103 with said path and preengage the relevant path reservation program results of information in the program results query requests.
If carry destination, starting point and/or interim point information in the said path reservation program results query requests; The implementation method of said query script can be; All path reservation program resultses in the path planning server 102 traverse path planning databases 103; Choose the path reservation program results that comprises on the respective path information such as the destination in the described request, starting point and/or intermediate points, as Query Result.
If carry path reservation program results unique identifier in the said path reservation program results query requests; The implementation method of said query script can be; All path reservation program resultses in the path planning server 102 traverse path planning databases 103; Choose with described request in the consistent path of unique identifier reservation program results, as Query Result.
If the information of carrying territorial scope in the said path reservation program results query requests; The implementation method of said query script can be; Path planning server 102 obtains the correlation map data from map data base (figure does not show); Analyze road section information wherein; Traverse path planning database 103; Choose the path reservation program results that comprises the road section information in the said map datum on the respective path, as Query Result.
If also carry the time period information of start time and concluding time sign in the said path reservation program results query requests; The implementation method of above-mentioned query script can be; When traverse path planning database 103, the subscription time in the path reservation program results of choosing should be between said start time and concluding time.
Step S106, path planning server 102 return the path reservation program results of inquiry gained to the path computation service device 101 of other system.
The form of said route programming result can be consistent with the required form of the path computation service device of other system 101; Also can convert required form into by path computation service device 101 route programming results of other system.
After step S107, the path computation service device 101 of other system receive path reservation program results, other relevant road condition data calculating paths that obtain based on path reservation program results and other modes of employing of receiving.
Though the present invention through the preferred embodiment explanation as above, these preferred embodiments are not in order to limit the present invention.Those skilled in the art is not breaking away from the spirit and scope of the present invention, should have the ability various corrections and additional are made in this preferred embodiment, and therefore, protection scope of the present invention is as the criterion with the scope of claims.And the implication of the term of using among the present invention, words and claim can not only limit to its literal and common implication and go to understand, and also should comprise the implication and the notion that conform to technology of the present invention.