CN104484902A - Cloud-based car-sharing cost calculating and processing method - Google Patents

Cloud-based car-sharing cost calculating and processing method Download PDF

Info

Publication number
CN104484902A
CN104484902A CN201410727876.6A CN201410727876A CN104484902A CN 104484902 A CN104484902 A CN 104484902A CN 201410727876 A CN201410727876 A CN 201410727876A CN 104484902 A CN104484902 A CN 104484902A
Authority
CN
China
Prior art keywords
carpool
fpre
car
computing formula
people
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410727876.6A
Other languages
Chinese (zh)
Inventor
李桂文
汪德波
吴雨声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU WALKDA ELETRONIC TECHNOLOGY Co Ltd
Original Assignee
GUANGZHOU WALKDA ELETRONIC TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GUANGZHOU WALKDA ELETRONIC TECHNOLOGY Co Ltd filed Critical GUANGZHOU WALKDA ELETRONIC TECHNOLOGY Co Ltd
Priority to CN201410727876.6A priority Critical patent/CN104484902A/en
Publication of CN104484902A publication Critical patent/CN104484902A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cloud-based car-sharing cost calculating and processing method. The method comprises the following steps: transmitting car-sharing information to a cloud-based charging information processing platform after a taxi client obtains the car-sharing information; calling program resources in a cluster server by the cloud-based charging information processing platform by virtue of cloud calculation, so as to carry out calculating and processing of the car-sharing cost according to the obtained car-sharing information; pushing the calculating and processing result of the car-sharing cost to the taxi client to display by the cloud-based charging information processing platform. According to the cloud-based car-sharing cost calculating and processing method, a complicated car-sharing cost algorithm can be rapidly processed, so that the data processing efficiency is improved; meanwhile, a processor chip with high performance is not needed, so that the investment cost is greatly reduced; in addition, the car-sharing cost calculating and processing method disclosed by the invention is reasonable, and relatively simple; the processing speed of data can be further improved; the cloud-based car-sharing cost calculating and processing method can be widely applied to the field of car-sharing charging of the taxi.

Description

A kind of carpool expense computation processing method based on cloud
Technical field
The present invention relates to cloud computing and processing data information technology, particularly relate to a kind of carpool expense computation processing method based on cloud.
Background technology
Along with the adjustment of taxi starting fare and increasing of trip requirements, taxi sharing has become a general phenomenon, and it can not only be saved people and be used for tackling time of taxi, but also can cost saving, effectively alleviates traffic pressure.At present, in order to can reasonably calculate the expense of share-car carpool, brainstrust proposes different algorithms all one after another, but, these algorithms all more complicated, therefore, the microprocessor of degraded performance that tradition is arranged on taxi is the computing cannot carrying out share-car carpool expense rapidly according to these algorithms.And the microprocessor of degraded performance tradition be arranged on taxi changes the microprocessor of powerful into, although fast processing can be carried out to the information of share-car carpool expense like this, then cost of greatly increasing input.
Summary of the invention
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of method can carrying out the computing of carpool expense fast based on cloud.
The technical solution adopted in the present invention is: a kind of carpool expense computation processing method based on cloud, and the method comprises:
Carpool information is sent to the charge information processing platform based on cloud after obtaining carpool information by A, taxi client;
B, to utilize based on the charge information processing platform of cloud cloud computing to call program resource in cluster server, thus carry out the computing of carpool expense according to the carpool information obtained;
C, based on the charge information processing platform of cloud the computing result of carpool expense to be pushed in taxi client and show.
Further, the described carpool information according to obtaining carries out this step of computing of carpool expense, it is specially: according to the carpool information obtained, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula computing is carried out to carpool expense.
Further, the described carpool information according to obtaining, thus judges share-car carpool mode, and then according to the result judged, thus choose corresponding computing formula and carry out this step of computing to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
When judged result is two people's share-car carpool modes, then adopt the first computing formula or the second computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
The second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, then adopt the 3rd computing formula or the 4th computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
The 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, then adopt the 5th computing formula or the 6th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
The 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
Further, the described carpool information according to obtaining, thus judges share-car carpool mode, and then according to the result judged, thus choose corresponding computing formula and carry out this step of computing to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
According to the carpool information obtained, thus judge whether that employing carries out computing with the computing formula of starting fare discount to carpool expense;
When judged result is two people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the first computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is two people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the second computing formula to carry out computing to carpool expense, the second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 3rd computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is three people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 4th computing formula to carry out computing to carpool expense, the 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 5th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
When judged result is four people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 6th computing formula to carry out computing to carpool expense, the 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
Further, described carpool information comprises share-car carpool mode, discount information, starting fare, mileage unit price, travels total kilometrage, the mileage of carpool, Fare determined by travel time by bus.
Further, described steps A is specially: taxi client is encrypted carpool information, and the ciphertext of carpool information is sent to the charge information processing platform based on cloud after obtaining carpool information.
Further, be describedly encrypted this step to carpool information, it specifically comprises:
S1, Data Segmentation is carried out to carpool information, thus obtain multiple data block;
The first encryption key that S2, employing prestore is encrypted one by one to multiple data block, thus obtains multiple data block of having encrypted;
S3, in multiple data block of having encrypted, insert checking data;
S4, the checking data of multiple data block of having encrypted and insertion is integrated into complete data, thus obtains the ciphertext of carpool information.
Further, described step S1 is specially:
Be the rule of a group with 4 bytes and then Data Segmentation is carried out to carpool information, thus obtain multiple data block;
Judge whether each data block all comprises the data of 4 bytes, if so, then perform step S2, otherwise, then 0 is inserted to the data block less than 4 bytes, thus make this data block comprise the data of 4 bytes.
Further, described step S3 is specially: adopt the second encryption key prestored to be encrypted checking data, then in multiple data block of having encrypted, insert the checking data encrypted.
The invention has the beneficial effects as follows: the present invention is provided with the charge information processing platform based on cloud, and the described charge information processing platform based on cloud utilizes cloud computing call the program resource of cluster server thus carry out data processing, therefore, fast processing can be carried out rapidly to the share-car carpool expense algorithm of complexity, greatly improve the efficiency of data processing, and, because the computing of share-car carpool expense is without the need to relying on taxi client to realize, therefore, it reduces greatly to the performance requirement of the microprocessor in taxi client, so then without the need to adopting the processor chips of powerful, greatly reduce input cost.
In addition, share-car carpool expense computation processing method of the present invention is not only reasonable, and comparatively simple, therefore, it is possible to improve the processing speed of data further.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further:
Fig. 1 is the flow chart of steps of a kind of carpool expense computation processing method based on cloud of the present invention;
Fig. 2 is the flow chart of steps of a specific embodiment of a kind of carpool expense computation processing method based on cloud of the present invention.
Embodiment
As shown in Figure 1, a kind of carpool expense computation processing method based on cloud, the method comprises:
Carpool information is sent to the charge information processing platform based on cloud after obtaining carpool information by A, taxi client;
B, to utilize based on the charge information processing platform of cloud cloud computing to call program resource in cluster server, thus carry out the computing of carpool expense according to the carpool information obtained;
C, based on the charge information processing platform of cloud the computing result of carpool expense to be pushed in taxi client and show.
Be further used as preferred embodiment, the described carpool information according to obtaining carries out this step of computing of carpool expense, it is specially: according to the carpool information obtained, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula computing is carried out to carpool expense.
Be further used as preferred embodiment, the described carpool information according to obtaining, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula this step of computing is carried out to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
When judged result is two people's share-car carpool modes, then adopt the first computing formula or the second computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
The second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, then adopt the 3rd computing formula or the 4th computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
The 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, then adopt the 5th computing formula or the 6th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
The 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
Be further used as preferred embodiment, the described carpool information according to obtaining, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula this step of computing is carried out to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
According to the carpool information obtained, thus judge whether that employing carries out computing with the computing formula of starting fare discount to carpool expense;
When judged result is two people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the first computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is two people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the second computing formula to carry out computing to carpool expense, the second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 3rd computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is three people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 4th computing formula to carry out computing to carpool expense, the 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 5th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
When judged result is four people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 6th computing formula to carry out computing to carpool expense, the 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
Be further used as preferred embodiment, described carpool information comprises share-car carpool mode, discount information, starting fare, mileage unit price, travels total kilometrage, the mileage of carpool, Fare determined by travel time by bus.Described Fare determined by travel time refers to taxi etc. and to bide one's time produced expense.
Be further used as preferred embodiment, described steps A is specially: taxi client is encrypted carpool information, and the ciphertext of carpool information is sent to the charge information processing platform based on cloud after obtaining carpool information.
Be further used as preferred embodiment, be describedly encrypted this step to carpool information, it specifically comprises:
S1, Data Segmentation is carried out to carpool information, thus obtain multiple data block;
The first encryption key that S2, employing prestore is encrypted one by one to multiple data block, thus obtains multiple data block of having encrypted;
S3, in multiple data block of having encrypted, insert checking data;
S4, the checking data of multiple data block of having encrypted and insertion is integrated into complete data, thus obtains the ciphertext of carpool information.
Be further used as preferred embodiment, described step S1 is specially:
Be the rule of a group with 4 bytes and then Data Segmentation is carried out to carpool information, thus obtain multiple data block;
Judge whether each data block all comprises the data of 4 bytes, if so, then perform step S2, otherwise, then 0 is inserted to the data block less than 4 bytes, thus make this data block comprise the data of 4 bytes.
Be further used as preferred embodiment, described step S3 is specially: adopt the second encryption key prestored to be encrypted checking data, then in multiple data block of having encrypted, insert the checking data encrypted.
The present invention one specific embodiment
As shown in Figure 2, a kind of carpool expense computation processing method based on cloud of the present invention, it specifically comprises:
Step 1, taxi client obtain carpool information, and described carpool information comprises share-car carpool mode, discount information, starting fare, mileage unit price, travels total kilometrage, the mileage of carpool, Fare determined by travel time by bus;
Step 2, be the rule of a group with 4 bytes and then Data Segmentation is carried out to carpool information, thus obtain multiple data block; Judge whether each data block all comprises the data of 4 bytes, if so, then perform step 3, otherwise, then 0 is inserted to the data block less than 4 bytes, thus make this data block comprise the data of 4 bytes, and then perform step 3;
The first encryption key that step 3, employing prestore is encrypted one by one to multiple data block, thus obtains multiple data block of having encrypted;
The second encryption key that step 4, employing prestore is encrypted checking data, then in multiple data block of having encrypted, the checking data encrypted is inserted, the described checking data encrypted inserts the position in the data block of having encrypted, can preset, and the number inserting the checking data encrypted can be decided according to the actual requirements, and for described checking data, it is preferably the data of 1 byte;
Step 5, the checking data of multiple data block of having encrypted and insertion is integrated into complete data, thus obtains the ciphertext of carpool information;
Step 6, to utilize based on the charge information processing platform of cloud cloud computing to call program resource in cluster server, thus the ciphertext of carpool information is decrypted, then carry out the computing of carpool expense according to the plaintext of the carpool information obtained;
The described carpool information according to obtaining carries out this step of computing of carpool expense, it is specially, and according to the carpool information obtained, thus judges share-car carpool mode, then according to the result judged, thus choose corresponding computing formula computing is carried out to carpool expense;
The described carpool information according to obtaining, thus judges share-car carpool mode, and then according to the result judged, thus choose corresponding computing formula and carry out this step of computing to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
According to the carpool information obtained, thus judge whether that employing carries out computing with the computing formula of starting fare discount to carpool expense;
(1), when judged result is two people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the first computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is two people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the second computing formula to carry out computing to carpool expense, the second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
Now, fPre_km*M2*D1 is expressed as the discount billing amount of the mileage of two people's carpools, and M-M2 is expressed as the mileage number not having carpool, and fPre_km* (M-M2) is expressed as the mileage billing amount not having carpool;
(2), when judged result is three people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 3rd computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is three people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 4th computing formula to carry out computing to carpool expense, the 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
Now, fPre_km*M3*D2 is expressed as the discount billing amount of the mileage of three people's carpools, fPre_km*M2*D1 is expressed as the discount billing amount of the mileage of two people's carpools, M-M2-M3 is expressed as the mileage number not having carpool, and fPre_km* (M-M2-M3) is expressed as the mileage billing amount not having carpool;
(3), when judged result is four people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 5th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
When judged result is four people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 6th computing formula to carry out computing to carpool expense, the 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Now, fPre_km*M4*D3 is expressed as the discount billing amount of the mileage of four people's carpools, fPre_km*M3*D2 is expressed as the discount billing amount of the mileage of three people's carpools, fPre_km*M2*D1 is expressed as the discount billing amount of the mileage of two people's carpools, M-M2-M3-M4 is expressed as the mileage number not having carpool, and fPre_km* (M-M2-M3-M4) is expressed as the mileage billing amount not having carpool;
Step 7, based on the charge information processing platform of cloud the computing result of carpool expense to be pushed in taxi client and show.
Obtained by above-mentioned, method of the present invention have employed the charge information processing platform based on cloud, and the described charge information processing platform based on cloud make use of this technology of cloud computing calls program resource in cluster server, thus carry out the computing of carpool expense, therefore, can calculate the share-car carpool expense of complexity rapidly and process fast, greatly improve the efficiency of share-car carpool cost data computing, and, because the computing of carpool expense is without the need to being realized by taxi client, therefore, it reduces greatly to the performance requirement of the microprocessor in taxi client, so then without the need to adopting the processor chips of powerful, greatly reduce input cost.Further, owing to establishing the charge information processing platform based on cloud, therefore, it is possible to be convenient to that staff modifies to carpool information, manages concentratedly, analysis etc.
In addition, according to the charging formula of above-mentioned share-car carpool, share-car carpool expense algorithm of the present invention is not only fair and reasonable, but also comparatively simple, therefore, it is possible to improve the efficiency of share-car carpool expense computing further.
More than that better enforcement of the present invention is illustrated, but the invention is not limited to described embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to spirit of the present invention, and these equivalent distortion or replacement are all included in the application's claim limited range.

Claims (9)

1., based on a carpool expense computation processing method for cloud, it is characterized in that: the method comprises:
Carpool information is sent to the charge information processing platform based on cloud after obtaining carpool information by A, taxi client;
B, to utilize based on the charge information processing platform of cloud cloud computing to call program resource in cluster server, thus carry out the computing of carpool expense according to the carpool information obtained;
C, based on the charge information processing platform of cloud the computing result of carpool expense to be pushed in taxi client and show.
2. a kind of carpool expense computation processing method based on cloud according to claim 1, it is characterized in that: the described carpool information according to obtaining carries out this step of computing of carpool expense, it is specially: according to the carpool information obtained, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula computing is carried out to carpool expense.
3. a kind of carpool expense computation processing method based on cloud according to claim 2, it is characterized in that: the described carpool information according to obtaining, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula this step of computing is carried out to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
When judged result is two people's share-car carpool modes, then adopt the first computing formula or the second computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
The second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, then adopt the 3rd computing formula or the 4th computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
The 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, then adopt the 5th computing formula or the 6th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
The 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
4. a kind of carpool expense computation processing method based on cloud according to claim 2, it is characterized in that: the described carpool information according to obtaining, thus share-car carpool mode is judged, then according to the result judged, thus choose corresponding computing formula this step of computing is carried out to carpool expense, it specifically comprises:
According to the carpool information obtained, thus judge whether share-car carpool mode is two people's share-car carpool modes, three people's share-car carpool modes or four people's share-car carpool modes;
According to the carpool information obtained, thus judge whether that employing carries out computing with the computing formula of starting fare discount to carpool expense;
When judged result is two people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the first computing formula to carry out computing to carpool expense, the first described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is two people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the second computing formula to carry out computing to carpool expense, the second described computing formula is specially:
fee= fStart_mn*D1+fPre_km*M2*D1+fPre_km*(M-M2)+fWait_mn
When judged result is three people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 3rd computing formula to carry out computing to carpool expense, the 3rd described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is three people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 4th computing formula to carry out computing to carpool expense, the 4th described computing formula is specially:
fee= fStart_mn*D2+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*(M-M2-M3)+fWait_mn
When judged result is four people's share-car carpool modes, and when not adopting the computing formula with starting fare discount, then adopt the 5th computing formula to carry out computing to carpool expense, the 5th described computing formula is specially:
fee=fStart_mn+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
When judged result is four people's share-car carpool modes, and when adopting the computing formula with starting fare discount, then adopt the 6th computing formula to carry out computing to carpool expense, the 6th described computing formula is specially:
fee= fStart_mn*D3+fPre_km*M2*D1+fPre_km*M3*D2+fPre_km*M4*D3+fPre_km*(M-M2-M3-M4)+fWait_mn
Wherein, fee is expressed as the share-car carpool total expenses calculated, and fStart_mn is expressed as starting fare, and fPre_km is expressed as mileage unit price, and fWait_mn is expressed as Fare determined by travel time; D1 is expressed as two people's carpool discount rates, and D2 is expressed as three people's carpool discount rates, and D3 is expressed as four people's carpool discount rates; M is expressed as and travels total kilometrage by bus, and M2 is expressed as the mileage of two people's carpools, and M3 is expressed as the mileage of three people's carpools, and M4 is expressed as the mileage of four people's carpools.
5. a kind of carpool expense computation processing method based on cloud according to claim 1-4, is characterized in that: described carpool information comprises share-car carpool mode, discount information, starting fare, mileage unit price, travels total kilometrage, the mileage of carpool, Fare determined by travel time by bus.
6. a kind of carpool expense computation processing method based on cloud according to claim 1, it is characterized in that: described steps A is specially: after taxi client obtains carpool information, carpool information is encrypted, and the ciphertext of carpool information is sent to the charge information processing platform based on cloud.
7. a kind of carpool expense computation processing method based on cloud according to claim 6, is characterized in that: be describedly encrypted this step to carpool information, and it specifically comprises:
S1, Data Segmentation is carried out to carpool information, thus obtain multiple data block;
The first encryption key that S2, employing prestore is encrypted one by one to multiple data block, thus obtains multiple data block of having encrypted;
S3, in multiple data block of having encrypted, insert checking data;
S4, the checking data of multiple data block of having encrypted and insertion is integrated into complete data, thus obtains the ciphertext of carpool information.
8. a kind of carpool expense computation processing method based on cloud according to claim 7, is characterized in that: described step S1 is specially:
Be the rule of a group with 4 bytes and then Data Segmentation is carried out to carpool information, thus obtain multiple data block;
Judge whether each data block all comprises the data of 4 bytes, if so, then perform step S2, otherwise, then 0 is inserted to the data block less than 4 bytes, thus make this data block comprise the data of 4 bytes.
9. a kind of carpool expense computation processing method based on cloud according to claim 7, it is characterized in that: described step S3 is specially: adopt the second encryption key prestored to be encrypted checking data, then in multiple data block of having encrypted, insert the checking data encrypted.
CN201410727876.6A 2014-12-03 2014-12-03 Cloud-based car-sharing cost calculating and processing method Pending CN104484902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410727876.6A CN104484902A (en) 2014-12-03 2014-12-03 Cloud-based car-sharing cost calculating and processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410727876.6A CN104484902A (en) 2014-12-03 2014-12-03 Cloud-based car-sharing cost calculating and processing method

Publications (1)

Publication Number Publication Date
CN104484902A true CN104484902A (en) 2015-04-01

Family

ID=52759442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410727876.6A Pending CN104484902A (en) 2014-12-03 2014-12-03 Cloud-based car-sharing cost calculating and processing method

Country Status (1)

Country Link
CN (1) CN104484902A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183473A (en) * 2017-12-13 2018-06-19 国网上海市电力公司 A kind of cluster electric vehicle participates in the optimization Bidding system of assisted hatching
CN108805992A (en) * 2018-06-11 2018-11-13 石家庄铁道大学 A kind of taxi pooling system, method
CN110035070A (en) * 2019-03-18 2019-07-19 阿里巴巴集团控股有限公司 Data processing method and device for share-car
WO2020011030A1 (en) * 2018-07-11 2020-01-16 北京三快在线科技有限公司 Carpooling method and apparatus, carpooling route recommendation method and apparatus, and medium and electronic device
CN112669025A (en) * 2020-12-24 2021-04-16 广西中科曙光云计算有限公司 Data resource supply charging method, device, medium and terminal equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183473A (en) * 2017-12-13 2018-06-19 国网上海市电力公司 A kind of cluster electric vehicle participates in the optimization Bidding system of assisted hatching
CN108805992A (en) * 2018-06-11 2018-11-13 石家庄铁道大学 A kind of taxi pooling system, method
WO2020011030A1 (en) * 2018-07-11 2020-01-16 北京三快在线科技有限公司 Carpooling method and apparatus, carpooling route recommendation method and apparatus, and medium and electronic device
CN110035070A (en) * 2019-03-18 2019-07-19 阿里巴巴集团控股有限公司 Data processing method and device for share-car
CN110035070B (en) * 2019-03-18 2021-07-23 创新先进技术有限公司 Data processing method and device for car sharing
CN112669025A (en) * 2020-12-24 2021-04-16 广西中科曙光云计算有限公司 Data resource supply charging method, device, medium and terminal equipment
CN112669025B (en) * 2020-12-24 2021-07-16 广西中科曙光云计算有限公司 Data resource supply charging method, device, medium and terminal equipment

Similar Documents

Publication Publication Date Title
CN104484902A (en) Cloud-based car-sharing cost calculating and processing method
SG10201803139UA (en) Method and system for facilitating designated payment transaction
CN103580842A (en) Method and system for conducting parallel transmission through multiple types of wireless links
CN103346978B (en) A kind of virtual machine network bandwidth fairness and stability support method
CN105912679A (en) Method and device for data query
CN107016535A (en) A kind of area message sharing method and device
JP2017533644A5 (en)
MY183031A (en) Resource processing method and device
CN112261137A (en) Model training method and system based on joint learning
CN107257379A (en) Method and apparatus for pushed information
CN116455559A (en) Implementation method and device of soft and hard collaboration high-speed password equipment and electronic equipment
CN107944731A (en) The method for building up and device of typical project cost template
CN107508687A (en) A kind of method, apparatus of charging, Internet of Things application platform and accounting server
CN104503862B (en) The method and apparatus for obtaining the check value using channel bag
CN109413099A (en) Mixed cloud encryption communication method, device and electronic equipment based on certificate
CN106327273A (en) STS-based prepaid electricity selling system and method
CN106022776B (en) A kind of the key bulking system and its packaging process of MPOS equipment
CN105511956A (en) Method and system for task scheduling based on share scheduling information
CN106973070A (en) A kind of big data calculates trusteeship service security certification system and method
IN2014CN04088A (en)
CN105488671A (en) Bus card background account recharging system and use method thereof
CN107204856B (en) A kind of method and device detecting elliptic curve loophole
CN102427405A (en) Ticket association method, system and associated equipment thereof
CN108182537A (en) Electric taxi quick charge station service characteristic analysis method based on queueing theory
CN205281495U (en) Information retrieval system based on cloud calculates

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150401

RJ01 Rejection of invention patent application after publication