Background technology
Public transport is that the prevailing traffic that people go on a journey in city carries as the important component in urban traffic network
Body, vital effect is played to reducing vehicle flowrate, traffic load of releiving, reducing traffic jam etc..As city is built
If the quickening of paces, urban public transport are also developed rapidly, and with its broad covered area, it is economical quick the characteristics of, turn into
The preferred manner of most travelers.And with the development of public transport, in today of internet popularization, traffic-information service
Electronization, networking be inevitable trend.In recent years, public transportation enquiry system is quickly grown, and is occurred on network each
The public bus network inquiry system of kind various kinds.
Present public transit system, although largely meeting user's needs, station track information can be inquired about
And transfer plan, but the content that user mutual shares aspect with scheme is but still fewer.For example, user can collect oneself
The transfer circuit needed is confined between two absolute identical points so that next time checks, but for changing to the collection of circuit
Collection, i.e., beginning and end just the same can just must match come, do not allow a little deviation.And in real life, slightly
It is micro- to have a deviation, such as in the range of tens meters even hundreds of meters(If the Tian'anmen Square and the National Museum are adjacent in fact
Two places), same transfer plan can be provided completely.And this mode also causes circuit recommendation not carry out, just think, only
How low be limited to the hit rate of the circuit recommendation of absolute identical point-to-point transmission will have, and this is also the public transit system on current network
The reason for not deploying on circuit recommendation function.And so, the accuracy for changing to result does not have an effective, visitor
The evaluation of sight, for example, this section of route of having passed by user to this transfer result evaluation.For the user, Zhi Nengdan
The pure numerical procedure by system provider, it is impossible to made an appraisal to result, and user and system, user and use can not be realized
Good interaction between family.
In a word, the point-to-point matching of such astatism, it is impossible to the practical significance of collection is realized, can not be in this way
To realize that user shares to circuit.
The content of the invention
In view of this, it is an object of the invention to provide a kind of recommendation of public transport interchange circuit and querying method, use
In the efficiency for improving bus transfer lines recommendation and inquiry.
The invention provides a kind of recommendation of public transport interchange circuit and querying method, including:
After user's recommended line, the latitude and longitude information being briefly described with inception point terminus of circuit is submitted to server;
Server the longitude and latitude of the inception point terminus is carried out it is position encoded, and it is described it is position encoded with deposit data are briefly described
Storehouse;
When recommendation is checked, the latitude and longitude information of inception point and terminus is submitted;Server is to the inception point and end
The longitude and latitude progress at point station is position encoded, and uses the position encoded of the line related in the position encoded matching database,
Being briefly described as recommended line information with obtained line related.
For the present invention by position encoded technology, two points extend to an acceptable scope known to, work as user
During recommendation/collection transfer plan, the scope where beginning and end is stored;During inquiry next time, even if what is searched for is not this
Two secondary points, as long as starting and terminal point can be fallen in existing scope, it is considered as current transfer result and can use.So,
Search of the can point-to-point search extension between region unit, so as to improve the hit rate of user's recommendation/collection inquiry
And do not influence the accuracy of result.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made below in conjunction with the accompanying drawings further
Detailed description.
The present embodiment is by position encoded technology, and two points extend to an acceptable scope known to, when with
Family recommends/when collecting transfer plan, store the scope where beginning and end.During inquiry next time, even if what is searched for is not
Two current points, as long as starting and terminal point can be fallen in existing scope, are considered as current transfer result and can use.Such one
Come, it is possible to search of the point-to-point search extension between region unit, so as to improve the hit of user's recommendation/collection inquiry
Rate and the accuracy for not influenceing result.
Fig. 1 is recommendation and the querying method flow chart of public transport interchange circuit provided in an embodiment of the present invention, including with
Lower step:
After step 101, user's recommended line, the longitude and latitude being briefly described with starting and terminal point station of circuit is submitted to server
Information.The circuit for needing to take including user, the station number passed through on this circuit, transfer website, rationale for the recommendation etc. is briefly described
Information, these description informations are configurable, and the detail information as recommendation/collection scheme stores.The warp at beginning and end station
Latitude information is necessary, is the critical field of user's inquiry.
The information that step 102, server process user submit:Position volume is carried out to the longitude and latitude of inception point and terminus
Code, two points are expanded to two region units by encoding.Tellurian longitude and latitude scope two are divided, by multiple two points
Afterwards, can narrow down to sufficiently small(This scope can configure)Region, each longitude and latitude can fall in corresponding region unit, and in number
Secondary two timesharing, has also recorded the coding of each region unit.So, can be calculated using the method when getting a longitude and latitude
The region unit at place, the coding can of current region block are considered the position encoded of this point.
Being briefly described of submitting of the position encoded and user of inception point and terminus is stored to data by step 103, server
In storehouse.So far, user recommends to be partially completed.
Step 104, when check recommendation, user submits the longitude and latitude of inception point and terminus.
Step 105, server are position encoded to the progress of the longitude and latitude of inception point and terminus, and are compiled using the two positions
The data that code is gone in matching database, i.e., position encoded, the terminus of inception point in the position encoded matching database of inception point
Terminus is position encoded in position encoded matching database(The inception point that so just can ensure that the inception point of submission and recommend exists
In the same area, and then ensure that the offset of position is unlikely to excessive, terminus is herewith managed), match the data can come
It is considered available recommending data.And that is submitted in step 101 is briefly described the description use that can serve as recommended line, i.e.,
The position encoded of starting and terminal point station is used as key word of the inquiry, is briefly described as recommendation details.
For example, the circuit of user A inquiries " Wei Shi mansions to Qinghe ", have selected " 478 tunnels in the scheme that system provides
(Xue Zhi Qiao Bei-Qinghe station)" and recommend other users;User B inquires about the line of " Enjoy Science and Technology Building to Qinghe " after this
Road and to check it is recommended that circuit, it is possible to inquire " 478 tunnels(Xue Zhi Qiao Bei-Qinghe station)", user B cans are attempted
The recommended line that user A is submitted, and this circuit is also adapted to such beginning and end really.It is in this manner it is possible to effective real
Now wider user recommends/collect use range.Specific data handling procedure is as follows:After user A submits recommendation, server pair
" the longitude and latitude progress of the two websites of Xue Zhi Qiao Bei " He " Qinghe station " is position encoded, and the two are position encoded with being briefly described
(Such as " 478 tunnel Xue Zhi Qiao Bei-Qinghe station " and stops in route and user A rationale for the recommendation)It is stored in simultaneously in database;User B
Request is sent, to inquire about the recommended line of " Enjoy Science and Technology Building to Qinghe ", server is to " Enjoy Science and Technology Building " and " Qinghe "
It is position encoded for keyword query database with the two after the two point progress are position encoded(The volume of " Enjoy Science and Technology Building "
Code matches " Xue Zhi Qiao Bei " coding, the coding of the codes match in " Qinghe " to " Qinghe station "), matched user A submissions
Data, take out this data, be briefly described what user A was submitted and show user B to see that this completes what is entirely recommended
Process, user A viewpoint have also just been communicated to user B.
The recommendation of transfer plan in the present embodiment, add interacting for user and system, there is provided to user than more objective
Evaluation of result is changed to, has great lifting for Consumer's Experience, increases usage rate of the user.And the provider of Transfer System then can basis
The circuit recommendation result that user submits, the Transfer System of constantly improve itself, fundamentally improve the reliable available of Transfer System
Property.
By regional code technology, two points extend to an acceptable scope known to, when user's recommendation/receipts
When hiding transfer plan, the scope where beginning and end is stored.During inquiry next time, even if that to be searched for is not current two
Point, as long as starting and terminal point can be fallen in existing scope, it is considered as current transfer result and can use.So, it is possible to
Search of the point-to-point search extension between region unit, so as to improve the hit rate of user's recommendation/collection inquiry and not influence
As a result accuracy.
In a word, the foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.