Background technology
Public transport, as the important component part in urban traffic network, is the main transport agent of people's trip in city, brings into play vital effect to reducing the aspects such as vehicle flowrate, the traffic load of releiving, minimizing traffic jam.Along with the quickening of urban construction paces, urban public transport has also obtained developing rapidly, and with its broad covered area, economy feature efficiently, becomes the preferred manner of most travelers.And follow the development of public transport, universal today in internet, the electronization of traffic-information service, networking are the trend that has been inevitable.In recent years, rapidly, there are various public bus network inquiry systems in public transportation enquiry system development on network.
Present public transit system, although met to a great extent user's needs, can inquire about station track information and transfer plan, and user interactions is shared the content of aspect with scheme but still fewer.For example, user can collect the transfer circuit oneself needing for checking next time, but for the collection of changing to circuit, is confined to two collections between absolute identical point, and starting point and terminal must just the samely could mate out, do not allow a little deviation.And in real life, have a little a deviation, as tens meters even in the scope of hundreds of rice (if the Tian'anmen Square and the National Museum are two adjacent places in fact), can provide same transfer plan completely.And this mode also makes circuit recommendation to carry out, to just think, how low the hit rate that only limits to the circuit recommendation of definitely identical point-to-point transmission will have, and this is also the reason that the public transit system on current network does not launch about circuit recommendation function.And so, not effective, the objective appraisal of the accuracy of transfer result, the evaluation of the user of this section of route of for example having passed by this transfer result.For the user, dependence system supplier's that can only be simple numerical procedure, can not make an appraisal to result, and can not realize between user and system, user and user good mutual.
In a word, the point-to-point coupling of astatism like this, can not realize the practical significance of collection, more can not realize by this way user's sharing circuit.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of recommendation and querying method of public transport interchange circuit, for improving, bus transfer lines is recommended and the efficiency of inquiry.
The recommendation and the querying method that the invention provides a kind of public transport interchange circuit, comprising:
After user's recommended line, submit the simple description of circuit and the latitude and longitude information of terminus, inception point to server; Server carries out position encoded to the longitude and latitude of this terminus, inception point, and described position encoded and simple description is deposited in to database;
In the time checking recommendation, submit the latitude and longitude information of inception point and terminus to; Server carries out position encoded to the longitude and latitude of this inception point and terminus, and uses the position encoded of line related in this position encoded matching database, and the simple description of the line related that coupling obtains is as recommended line information.
The present invention, by position encoded technology, extends to an acceptable scope two known points, in the time that user recommends/collects transfer plan, and the scope at storage starting point and terminal place; When inquiry next time, even if what will search for is not two current points, as long as starting and terminal point can be fallen in existing scope, just think that current transfer result is available.So, can be just the search between region unit point-to-point search extension, thereby improve the accuracy that user recommended/collected the hit rate of inquiry and do not affect result.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail.
The present embodiment, by position encoded technology, extends to an acceptable scope two known points, in the time that user recommends/collects transfer plan, and the scope at storage starting point and terminal place.When inquiry next time, even if what will search for is not two current points, as long as starting and terminal point can be fallen in existing scope, just think that current transfer result is available.So, can be just the search between region unit point-to-point search extension, thereby improve the accuracy that user recommended/collected the hit rate of inquiry and do not affect result.
Recommendation and the querying method process flow diagram of the public transport interchange circuit that Fig. 1 provides for the embodiment of the present invention, comprise the following steps:
After step 101, user's recommended line, submit the simple description of circuit and the latitude and longitude information at starting and terminal point station to server.Simple the circuit that comprises user and need to take is described, on this circuit the information such as station number, transfer website, rationale for the recommendation of process, these descriptors are configurable, as the details information storage of recommend/collection scheme.The latitude and longitude information of starting point and terminus is necessary, is the critical field that user inquires about.
The information that step 102, server process user are submitted to: the longitude and latitude of inception point and terminus is carried out position encoded, by coding, two points are expanded to two region units.Two points of tellurian longitude and latitude scope, through repeatedly after two points, can narrow down to the region of enough little (this scope is configurable), each longitude and latitude can drop in corresponding region unit, and in two timesharing for several times, has also recorded the coding of each region unit.Like this, just can use the method to calculate the region unit at place when getting a longitude and latitude, the coding of current region piece just can be thought the position encoded of this point.
The simple description that step 103, server are submitted the position encoded and user of inception point and terminus to is deposited in database.So far, user recommends part to complete.
Step 104, when checking recommendation, user submits the longitude and latitude of inception point and terminus to.
Step 105, server carry out position encoded to the longitude and latitude of inception point and terminus, and use these two position encoded data of going in matching database, be the position encoded of inception point in the position encoded matching database of inception point, in the position encoded matching database in terminus, the position encoded of terminus (just can guarantee that the inception point of submission and the inception point of recommendation are in the same area like this, and then the side-play amount of guaranteeing position is unlikely to excessive, herewith manage terminus), coupling data out just can be thought available recommending data.And the simple description of submitting in step 101 just can be used as the description use of recommended line, starting and terminal point station is position encoded as key word of the inquiry, simple description as recommending details.
For example, the circuit of user A inquiry " Wei Shi mansion is to Qinghe ", has selected " 478 tunnels (station, Qiao Bei-Qinghe, Xue Zhi) " and recommended other users in system in the scheme providing; User B inquires about after this circuit in " Enjoy Science and Technology Building is to Qinghe " and will check the circuit of having recommended, just can inquire " 478 tunnels (station, Qiao Bei-Qinghe, Xue Zhi) ", user B just can attempt the recommended line that user A submits to, and this circuit is also applicable to such starting point and terminal really.Like this, just can effectively realize wider user and recommend/collect usable range.Concrete data handling procedure is as follows: after user A submits to and recommends, server carries out position encoded to the longitude and latitude of " Xue Zhi Qiao Bei " and " station, Qinghe " these two websites, these two position encoded and simple descriptions (as the rationale for the recommendation of " 478 station, Qiao Bei-Qinghe, Xue Zhi, tunnel " and stops in route and user A) are deposited in database simultaneously, user B sends request, inquire about the recommended line in " Enjoy Science and Technology Building is to Qinghe ", server to " Enjoy Science and Technology Building " and " Qinghe " these two points carry out position encoded after, position encoded as keyword query database, (codes match of " Enjoy Science and Technology Building " is to the coding of " Xue Zhi Qiao Bei " taking these two, the codes match in " Qinghe " is to the coding at " station, Qinghe "), the data that user A submits to are matched, take out this data, the simple description that user A is submitted to shows user B to see, so just complete the process of whole recommendation, the viewpoint of user A has also just conveyed to user B.
The recommendation of transfer plan in the present embodiment, has increased the mutual of user and system, offers user and more objectively changes to evaluation of result, experiences and has great lifting for user, increases usage rate of the user.The provider of Transfer System can, according to the circuit recommendation result of user's submission, constantly improve the Transfer System of self, fundamentally improves the reliable availability of Transfer System.
By regional code technology, two known points are extended to an acceptable scope, in the time that user recommends/collects transfer plan, the scope at storage starting point and terminal place.When inquiry next time, even if what will search for is not two current points, as long as starting and terminal point can be fallen in existing scope, just think that current transfer result is available.So, can be just the search between region unit point-to-point search extension, thereby improve the accuracy that user recommended/collected the hit rate of inquiry and do not affect result.
In a word, the foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.