The content of the invention
Based on above-mentioned situation, the present invention proposes a kind of share-car method, and cabdriver is after first passenger has been carried
System automatically generate the passenger first by bus path;Taxi set out by first by bus path leave for destination when, system
Again by constantly obtaining the riding information of other passengers(Including origin information and origin information), and other passengers starting point
Information and origin information generation second by bus path;If described the second of generation the path and the described first path by bus by bus
Have a coincidence path, calculate the expense in the coincidence path, the expense shared to the first passenger respectively according to preset ratio and
After second passenger driver and the first passenger obtain share-car prompting, if agreeing to share-car, it is possible to carry out share-car with the second passenger;Can
Cause ground time and money to waste because destination is inconsistent to avoid passenger, can cause that taxi preferably transfers money again
Source, is most people's services so that taxi resource is preferably transferred, while so that passenger with minimum enforcement distance
There is the clear and definite expense of comparing to calculate after share-car is carried out, it is to avoid the complicated processes of passenger's Charges negotiable, reduce driver and multiply
The cost input of visitor.
The invention discloses a kind of charging method based on taxi share-car, including step:Obtain the starting point of the first passenger
Information and endpoint information, generation first by bus path;The origin information and endpoint information of the second passenger are obtained, generation second multiplies
Bus or train route footpath;If described the second of generation the path and path that overlaps in the described first path by bus by bus, calculates the coincidence road
The expense in footpath, shares the expense to the first passenger and the second passenger according to preset ratio respectively.
If the patronage of the taxi is N, if N number of path by bus that N number of passenger is generated can form same coincidence
Path, calculates the expense in the same coincidence path, shares the expense respectively according to preset ratio and multiplies to corresponding each
Visitor.
The expense generation method of any passenger is described in the expense that the passenger produces in non-coincidence path is added
Passenger is in coincidence path using the expense apportioned by preset ratio.
The method in the generation path by bus, determines the beginning and end of the passenger, and selection origin-to-destination distance is most
Near preceding M bars driving path;Each bar driving path in the M bars driving path is divided into some segment paths, is counted respectively
The average speed that taxi passes through every segment path is calculated, the length further according to every segment path calculates taxi by per small respectively
The average time in section path, the average time in every segment path is added and obtains the total running time of each bar driving path;Compare
The running time of each bar driving path, using running time most short as path of riding.
Server according to the jam situation of highway at that time generate in real time again described first by bus path.
The invention also discloses a kind of charge system based on taxi share-car, including first passenger's client, server
And the second passenger's client, the first passenger client is used to obtain the origin information and endpoint information of the first passenger;Institute
State second passenger's client for obtain the second passenger origin information and endpoint information;The server is used to receive the respectively
One passenger's client and second passenger's client origin information and endpoint information simultaneously generate the corresponding first path and the by bus
Two by bus path;If generation described second by bus path with described first by bus path the path that overlaps, calculate it is described heavy
The expense in combining footpath, shares the expense to first passenger's client and second passenger's client according to preset ratio respectively.
And a kind of accounting server based on taxi share-car is disclosed, the server is used for according to the first passenger's
Origin information and endpoint information and the origin information and endpoint information according to the second passenger, generate respectively first by bus path with
Second by bus path;When the described second path and path that overlaps in the described first path by bus by bus of generation, calculate described
The expense in coincidence path, shares the expense to the first passenger and the second passenger according to preset ratio respectively.
Compared to prior art, the present invention is simple to operate, can solve because the possible difference in destination causes greatly share-car
The money of post consumption and time more problem so that taxi resource is preferably transferred, while so that passenger is being carried out
There is the clear and definite expense of comparing to calculate after share-car, it is to avoid the complicated processes of passenger's Charges negotiable, reduce the cost input of passenger.
Specific embodiment
The present invention program is described in detail below in conjunction with better embodiment therein.
As shown in figure 1, the method in the present embodiment includes step:
S101:Obtain the beginning and end information of the first passenger, the path by bus of generation first;
First passenger takes taxi in place O(Acquiescence knows origin information), and endpoint information is informed into taxi department
Machine.Now, can be by first passenger's client(Mobile phone)Or the mobile phone or other communicating terminals of cabdriver are by the first passenger
Beginning and end information be uploaded to server, server obtains the content of database, empirically the road by bus of value generation first
Footpath.As preferred example, server can also according to the jam situation of highway at that time generation first by bus path.It is general and
Speech, passenger can consider various factors when taxi is taken, and wherein time factor and price factor is major consideration,
The present embodiment mainly considers time factor, its generation first by bus path method, determine the beginning and end of the first passenger, select
Select the nearest preceding M bars driving path of origin-to-destination distance;Each bar driving path in the M bars driving path is divided into
Some segment paths, calculate the average speed that taxi passes through every segment path, further according to the length point in every segment path respectively
Not Ji Suan taxi pass through average time per segment path, average time in every segment path is added and obtains each bar traveling road
The total running time in footpath;Compare the running time of each bar driving path, using running time most short as most travelling road soon
Footpath(Elect as first by bus path).In the present embodiment the generation method in other paths of riding in first by bus path it is consistent.
S102:Obtain the origin information and endpoint information of some second passengers, the path by bus of generation some second.
After taxi carries the first passenger to set out, the origin information of N number of second passenger of surrounding is on the way constantly received
And endpoint information, and according to these information generation N number of corresponding second by bus path.Because taxi can basis after driving
Actual situation generates different share-car combinations, and different share-car combinations is directed to the first passenger and ensuing second passenger
For, the path of coincidence is more long, and its cost for wasting will be fewer, can improve the utilization rate of taxi resource.So
Optimal share-car combination is chosen in several share-cars combination has more important meaning.In addition, first by bus path and second
Path is the preset path of storage in database by bus, can be adjusted from database after the information of passenger's input beginning and end
The empirical data for going out, the influence of typically no consideration environmental factor at that time, if considering environmental factor, can be using in S101
Most fast driving path.
S103:If described the second of generation the path and path that overlaps in the described first path by bus by bus, calculates described
The expense in coincidence path, shares the expense to the first passenger and the second passenger according to preset ratio respectively.
The expense of the passenger in the present embodiment is that the expense that the passenger produces in non-coincidence path adds the passenger in weight
Expense in combining footpath apportioned by preset ratio.As shown in Fig. 2 the first passenger is from place O, its terminal is A.Multiply when first
Visitor from after the O of place, on the way, the origin information and endpoint information of the second passenger of reception, wherein the second passenger rise
First by bus in path, that driver can be in the way for sending the first passenger, just directly by for the terminal C of point B and the second passenger
Two passengers are sent to destination C, and the coincidence path of the first passenger and the second passenger is BC herein.In this case, system-computed weight
The expense of combining footpath BC, and according to preset ratio 2:3 share this expense to the first passenger and the second passenger respectively.Now first
The expense of passenger is expense+CA sections of expense+2/5BC sections of OB section of expense, and the expense of the second passenger is 3/5BC sections and takes
With the computational methods of expense add the coincidence path expense of correspondence pro rata distribution for the expense in the non-coincidence path of passenger herein.
Alternatively, as shown in figure 3, the first passenger is from place O, its terminal is A.When the first passenger from
After place O sets out, on the way, the starting point B ' and terminal C ' of the second passenger of reception, that driver can send the first passenger to A
When point, the second passenger directly can be sent to destination C ', the coincidence path of the first passenger and the second passenger is B ' herein
A.In this case, the expense of B ' A in coincidence path described in system-computed, and according to preset ratio 4:3 share this expense respectively
To the first passenger and the second passenger.Now the expense of the first passenger is the expense of A sections of the expense+4/7B ' of OB ' sections, the second passenger
Expense for 3/7B ' A+AC ' sections expense section expense, herein the computational methods of expense remain as passenger each non-coincidence path
Expense add correspondence pro rata distribution coincidence path expense.
The preset ratio of above-described embodiment can be that system or taxi are adjusted by repeatedly testing or doing the questionnaire of passenger
Acquired empirical data after looking into.In real life, due to the first passenger starting fare can somewhat higher and driver connecing
Sending the second passenger needs to stop or waits, then this when, preferentially the first passenger will be looked for when preset ratio is set, and allowed
His paying ratio is lower.Meanwhile, the expense in the coincidence path in the present embodiment obtains the data meter of taxi taximeter
Calculate.As after the first passenger loading, taximeter starts charging;After the second passenger loading, taximeter remembers not spelling for the first passenger
Expense during car, and the passenger of start recording first and second passenger's coincidence path expense, and after follow-up passenger loading, charging
Device can also do same billing operation.Taximeter passes through network or other signal connection servers, it is possible to reduce artificial operation,
System is allowed to record automatically.And using the database of server, then passenger can be allowed to pass through client(Such as mobile phone or computer), in group
The expense in coincidence path just first can be substantially calculated before into share-car.
As another examples of implementation, if the patronage of the taxi is N(1<N<5), what if N number of passenger was generated
N number of path by bus can form same coincidence path, calculate the expense in the same coincidence path, take described according to preset ratio
With sharing respectively to corresponding individual passengers,.In actual life, taxi can at most take out visitor 4, thus be up to 4
4 paths of riding that individual passenger is generated can form same coincidence path, need only calculate this same coincidence path this when
Expense, according still further to preset ratio(Such as 1:1:1:1)Just can be with 3 feelings of passenger to 4 passengers by this expense allocation
Condition is basically identical with the situation of 4 passengers, simply to make 3 ratios of people into(Such as 1:1:1).
Existing share-car is compared, this method will be greatly enhanced the resource utilization after share-car so that taxi is in traveling
When identical distance, can be serviced for more people.The charging method of each passenger is provided simultaneously so that passenger enjoys
Preferential after share-car simultaneously understands the riding fee of oneself and uses in time.
A kind of structural representation of charge system embodiment based on taxi share-car of the invention is shown in Fig. 4.
A kind of charge system based on taxi share-car, including first passenger's client, server and the second passenger visitor
Family end, the first passenger client is used to obtain the origin information and endpoint information of the first passenger;The second passenger client
Hold the origin information and endpoint information for obtaining the second passenger;The server be used for receive respectively first passenger's client with
And second passenger's client origin information and endpoint information and generate the corresponding first path and the second path by bus by bus;If raw
Into the described second path and path that overlaps in the described first path by bus by bus, calculate the expense in the coincidence path, press
The expense is shared to first passenger's client and second passenger's client respectively according to preset ratio.
Having N number of passenger when being disclosed in practical application in the inventive method implementation carries out the situation of share-car, this implementation
In also using N passenger's client it is corresponding, it is also consistent with the benefit that above method embodiment is brought when share-car.
The system can also be by the way of the share-car of the inventive method embodiment, the effect and benefit and embodiment of the method pair brought
Should, not reinflated description herein.
In addition, the invention also discloses a kind of Ride-share service device based on many taxis, the server is used for basis
The origin information of the first passenger and endpoint information and the origin information and endpoint information according to the second passenger, generate first respectively
By bus path with second by bus path;When generation described second by bus path with described first by bus path the road that overlaps
Footpath, calculates the expense in the coincidence path, shares the expense to the first passenger and the second passenger respectively according to preset ratio.
The server can also be by the way of the share-car of the inventive method embodiment, the effect and benefit and embodiment of the method pair brought
Should, not reinflated description herein.
Embodiment described above only expresses embodiments of the present invention, and its description is more specific and detailed, but can not
Therefore it is interpreted as the limitation to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art,
Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention
Enclose.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.