CN110245764A - A kind of about vehicle traveling method based on distributed storage database - Google Patents

A kind of about vehicle traveling method based on distributed storage database Download PDF

Info

Publication number
CN110245764A
CN110245764A CN201910395414.1A CN201910395414A CN110245764A CN 110245764 A CN110245764 A CN 110245764A CN 201910395414 A CN201910395414 A CN 201910395414A CN 110245764 A CN110245764 A CN 110245764A
Authority
CN
China
Prior art keywords
vehicle
order
client
request
node server
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
CN201910395414.1A
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.)
Terminus Beijing Technology Co Ltd
Original Assignee
Terminus Beijing 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 Terminus Beijing Technology Co Ltd filed Critical Terminus Beijing Technology Co Ltd
Priority to CN201910395414.1A priority Critical patent/CN110245764A/en
Publication of CN110245764A publication Critical patent/CN110245764A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application discloses a kind of about vehicle traveling method based on distributed storage database, belongs to distributed storage database technical field.The described method includes: the first client receives trip information, generates about vehicle and request and broadcast;Second client receives order information, generates order and requests and broadcast;Node server obtains the request of about vehicle and the order of the second client broadcast request of the first client broadcast, and the request of about vehicle and order request that will acquire are saved to trading pit and match trading, generates reservation order according to matching result;Reservation order is sent to corresponding the first client and the second client, and reservation order is saved to distributed storage database;The first client and the second client are distinguished the about vehicle order of receiving node server transmission and are shown.In the application, net about vehicle is carried out based on distributed storage database technology, is not only convenient for being managed reservation vehicle, order is counted, and expense is open and clear, the traceable inquiry of order relevant information.

Description

A kind of about vehicle traveling method based on distributed storage database
Technical field
This application involves Internet technical field more particularly to a kind of about vehicle trips based on distributed storage database Method.
Background technique
With the fast development of Internet technology, net about vehicle trip is enjoyed great popularity in recent years, when effective solution waits vehicles Between long, problem that the trip of remote location is difficult.However, in recent years, net about vehicle trip also presents some defects, for example, reservation Vehicle is more and more, and management is got up more and more difficult;About vehicle order is more and more, and statistics becomes increasingly complex;Even some drivers The behavior of arbitrary imposition of fees also happens occasionally.As it can be seen that net about vehicle trip still needs to continue to improve while bringing convenient.
Summary of the invention
To solve the deficiencies in the prior art, the application proposes a kind of about vehicle trip side based on distributed storage database Method.
In a first aspect, the application proposes a kind of about vehicle traveling method based on distributed storage database, it is applied to first Client, comprising:
Trip information is received, is requested according to the trip information Sheng Yueche, the trip information includes beginning-of-line and going out Row terminal;
The about vehicle request is broadcasted, for node server matching about vehicle order;
It receives the about vehicle order that the node server is sent and shows, the about vehicle order includes the vehicle for reserving vehicle Information.
Optionally, method further include:
Interlock account information is received, travel synchronization request is generated according to the interlock account information;
The travel synchronization request is broadcasted, so that the reservation vehicle is multiplied the letter of the position after taking out visitor by node server Real-time synchronization is ceased to the interlock account.
Optionally, the reservation vehicle corresponds to the second client;Method further include:
When the about vehicle order is completed, the execution agreement based on node server end, by the corresponding electricity of the first client Token of the sub- wallet to the corresponding stored value card transfer respective numbers of second client.
Second aspect, the application propose a kind of about vehicle traveling method based on distributed storage database, are applied to second Client, comprising:
Order information is received, order request is generated according to the order information, the order information includes vehicle present bit It sets;
The order request is broadcasted, for node server matching about vehicle order;
It receives the about vehicle order that the node server is sent and shows, the about vehicle order includes the trip letter of passenger Breath.
Optionally, after the about vehicle order for receiving the node server transmission, further includes: the second client will The location information real-time synchronization of itself to node server, for the node server by the location information synchronizing to multiplying The interlock account that visitor provides.
Optionally, corresponding first client of passenger, method further include:
When the about vehicle order is completed, the execution agreement based on node server end, second client is corresponding Stored value card is transferred to the token of corresponding data, and the token is produced by the corresponding stored value card of first client.
The third aspect, the application propose a kind of about vehicle traveling method based on distributed storage database, application and node Server, comprising:
Obtain the request of about vehicle and the order of the second client broadcast request of the first client broadcast;
About vehicle request and order request are saved to trading pit and match trading, is generated and is reserved according to matching result Order;
The reservation order is sent to corresponding the first client and the second client, and the reservation order is saved To distributed storage database.
Optionally, the about vehicle request packet includes beginning-of-line, and the order request includes current vehicle position;
It is corresponding, it is described to save about vehicle request and order request to trading pit and match trading, comprising:
About vehicle request and order request are saved to trading pit;
Beginning-of-line will be gone out in each about vehicle request currently contained in the trading pit, with the vehicle in each order request Current location is matched, obtain apart from it is the smallest go out beginning-of-line and current vehicle position, and by corresponding about vehicle request and it is right The order request answered is traded as matched about vehicle.
Optionally, after sending the reservation order to corresponding second client, further includes:
Receive the location information of the second client real-time synchronization;
And in the travel synchronization request for getting the first client broadcast, by the position of the second client real-time synchronization Confidence breath, interlock account of the real-time synchronization into travel synchronization request.
Optionally, after the generation reservation order according to matching result, further includes: it is corresponding to generate the reservation order Execution agreement;
When the reservation order is completed, further includes: agreement is executed described in automatic trigger, by first client pair Token of the stored value card answered to the corresponding stored value card transfer respective numbers of second client.
It is optionally, described to save the reservation order to distributed storage database, comprising:
Subdata base is generated, the reservation order is saved to the subdata base and broadcasted, for other node serves Device, which is based on Byzantine failure tolerance equity, proves that (PBFT) carries out common recognition verifying, and when being verified, the subdata base is accessed Distributed storage database.
The present invention has the advantages that
In the application, it is based on distributed storage database technology, net about vehicle is carried out and goes on a journey, on the one hand, can be effective right Each reservation vehicle is managed, and is disciplined as a warning and do not kept defined driver;On the other hand, the common recognition based on distributed storage database Mechanism has ensured the authentic and valid and expense transparent of about vehicle order;In another aspect, will about the relevant informations such as vehicle order protect It deposits to distributed storage database, inquiry can be traced, but also not only convenient for other statistical operations such as order statistics;Finally, passing through The interlock account that the location information real-time synchronization for reserving vehicle is provided to passenger, so that the corresponding user of the interlock account can With the position where real time inspection passenger, can get in touch as early as possible with passenger in something unexpected happened.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are general for this field Logical technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to this hair Bright limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Attached drawing 1 be according to the application embodiment it is a kind of applied to the first client based on distributed storage data The about vehicle traveling method flow chart in library;
Attached drawing 2 be according to the application embodiment it is a kind of applied to the second client based on distributed storage data The about vehicle traveling method flow chart in library;
Attached drawing 3 be according to the application embodiment it is a kind of applied to node server based on distributed storage data The about vehicle traveling method flow chart in library;
Attached drawing 4 is a kind of about vehicle traveling method stream based on distributed storage database according to the application embodiment Cheng Tu;
Attached drawing 5 is device of being gone on a journey according to the first about vehicle based on distributed storage database of the application embodiment Block diagram;
Attached drawing 6 is the about vehicle trip device according to second of the application embodiment based on distributed storage database Block diagram;
Attached drawing 7 is device of being gone on a journey according to the third about vehicle based on distributed storage database of the application embodiment Block diagram.
Specific embodiment
The illustrative embodiments of the disclosure are more fully described below with reference to accompanying drawings.Although showing this in attached drawing Disclosed illustrative embodiments, it being understood, however, that may be realized in various forms the disclosure without that should be illustrated here Embodiment is limited.It is to be able to thoroughly understand the disclosure on the contrary, providing these embodiments, and can incite somebody to action The scope of the present disclosure is fully disclosed to those skilled in the art.
Multiple first clients, the second client and node server involved in the application;Wherein, the first client has Body is the application being installed in the terminal device at about automobile-used family, is requested for sending about vehicle for about vehicle user's operation, and receive about Vehicle order;Second client is specially the application being installed in the terminal device of driver, is asked for sending order for driver operation It asks, and receives about vehicle order;Node server has the node of distributed storage data base read-write permission, for It trades with about vehicle, generates about vehicle order;Further, the first client and the second client have corresponding with node server Corresponding one or more first clients of relationship, i.e. a node server, and corresponding one or more second clients. Once in the application method, apparatus and system be described in detail.
Embodiment one
Embodiment according to the present invention, propose it is a kind of applied to the first client based on distributed storage database About vehicle traveling method, as shown in Figure 1, comprising:
Step 101: the first client receives trip information, is requested according to trip information Sheng Yueche;
Specifically, submitting trip information by the first client, wherein trip information packet when user needs net about vehicle Include beginning-of-line, travel destination, Customer information etc.;
It is corresponding, it is requested according to trip information Sheng Yueche, comprising: according to the beginning-of-line out received, travel destination, multiply The information such as objective information, the first client identification and current about vehicle time generate about vehicle and request.
Optionally, trip information can also include the travel time, so that node server according to the travel time and goes out The information matches such as beginning-of-line about vehicle is traded.
Step 102: the about vehicle request of generation is broadcasted, so that node server matching about vehicle is traded;
When node server is got in about vehicle request, by this, about vehicle request is saved to trading pit, and based in trading pit Each order matching about vehicle trade.
Step 103: the about vehicle order of receiving node server transmission is simultaneously shown;
Wherein, about vehicle order includes information of vehicles, the driver information etc. for reserving vehicle.
According to presently filed embodiment, method further include:
Step A1: receiving interlock account information, generates travel synchronization request according to the interlock account information received;
Wherein, interlock account be preferably the household that there is close relation with passenger or the account of friend, interlock account can be with For wechat, QQ, mailbox, account number of about vehicle client etc..
Step A2: the travel synchronization request of generation is broadcasted, so that node server is real-time by the location information for reserving vehicle It is synchronized to interlock account.
In the application, by the way that the location information real-time synchronization of vehicle will be reserved to the interlock account, so as to have with passenger The household or friend of close relation remove the specific location of the passenger, in something unexpected happened, obtain connection with passenger in time System.
According to presently filed embodiment, reserves vehicle and correspond to the second client;Method further include:
When about vehicle order is completed, the execution agreement based on node server end, by the corresponding electronic money of the first client Wrap the token to the corresponding stored value card transfer respective numbers of the second client.
Embodiment two
According to presently filed embodiment, propose it is a kind of for the second client based on distributed storage database About vehicle traveling method, as shown in Figure 2, comprising:
Step 201: the second client receives order information, generates order request according to order information;
Specifically, order information is submitted by the second client of itself when driver is currently at idle state, In, order information includes: information of vehicles, driver information, current vehicle position etc..
It is corresponding, according to order information generate order request, comprising: according to receive information of vehicles, driver information, Current vehicle position and the second client identification generate order request.
Step 202: the order request that the second client broadcast generates, so that node server matching about vehicle is traded;
When node server is got in order request, by order request preservation to trading pit, and based in trading pit Each about vehicle request matching about vehicle trade.
Step 203: the about vehicle order of the second client receiving node server transmission is simultaneously shown;
Wherein, about vehicle order include passenger trip information, trip information include beginning-of-line, travel destination, Cheng Kexin Breath etc..
According to presently filed embodiment, after step 203 further include: the second client is real by the location information of itself When be synchronized to node server, the interlock account that the location information synchronizing to passenger is provided for node server.
Specifically, the second client receives the location information synchronizing trigger action from driver, obtained in real time by GPS The location information of position, and it is synchronized to node server.
According to presently filed embodiment, corresponding first client of passenger, method further include:
When about vehicle order is completed, the execution agreement based on node server end, the corresponding stored value card of the second client It is transferred to the token of corresponding data, wherein token is produced by the corresponding stored value card of the first client.
Embodiment three
According to presently filed embodiment, it is also proposed that it is a kind of applied to node server based on distributed storage data The about vehicle traveling method in library, as shown in Figure 3, comprising:
Step 301: node server obtains the request of about vehicle and the order of the second client broadcast of the first client broadcast Request;
Specifically, node server obtain with itself have incidence relation the first client broadcast about vehicle request and The order of second client broadcast is requested;
More specifically, node server obtains the first visitor in distributed storage data bank network in each about vehicle request Family end mark, the first client identification that will acquire are matched with the first client identification prestored, and in successful match, will Corresponding about vehicle request is requested as the about vehicle of first client broadcast with itself with incidence relation;And node serve Device obtains the second client identification in distributed storage data bank network in each order request, the second client that will acquire It identifies and is matched with the second client identification prestored, and in successful match, corresponding order is requested as with itself to have The order of second client broadcast of incidence relation is requested.
Wherein, about vehicle request further includes that beginning-of-line, travel destination, Customer information, about vehicle time etc., order request out are gone back Including information of vehicles, driver information, current vehicle position etc..
Step 302: the request of about vehicle and order request that node server will acquire are saved to trading pit and match trading, Reservation order is generated according to matching result;
Wherein, the request of about vehicle and order request that will acquire are saved to trading pit and match trading, comprising:
Step B1: the request of about vehicle and order request that will acquire are saved to trading pit;
Step B2: will go out beginning-of-line in each about vehicle request currently contained in trading pit every prefixed time interval, with Current vehicle position in each order request is matched, and is obtained apart from the smallest beginning-of-line and current vehicle position out, and will Corresponding about vehicle request and corresponding order request are traded as matched about vehicle.
Wherein, prefixed time interval, preferably should not be too long, to avoid the corresponding period of reservation of number of the first client It is too long, such as prefixed time interval is 5 seconds;
Since same time or adjacent time usually have, multiple about vehicles are requested and order is requested, and in the application, are passed through Each request is saved to trading pit, a deals match is carried out every prefixed time interval, on the one hand enables to matched friendship Easily more rationally, on the other hand, prefixed time interval is not grown, and will not reduce the experience of the corresponding user of the first client.
Further, in the application, when the request of multiple about vehicles is corresponding go out beginning-of-line it is identical with travel destination when, then root According to about vehicle time for containing in the request of each about vehicle, the forward about vehicle request of priority match about vehicle time.
Further, the reservation order of generation includes: the beginning-of-line, travel destination out of passenger, reserves the vehicle of vehicle Information, driver information, the first client identification, second client identification etc..
Wherein, the request of about vehicle and order request that will acquire are saved to trading pit and match trading, including
It is matched according to beginning-of-line and the current vehicle position combination real-time road to be matched out of passenger.
Specifically, roadside unit RSU, roadside unit RSU and node server are set at each crossing with traffic lights Communication, node server are worked as according to beginning-of-line and the current vehicle position combination real-time road simulating vehicle to be matched out of passenger Front position reaches out n cruise route of beginning-of-line, for each trackside list of road side corresponding to every cruise route Member point calculates traffic density, so that the path load value of the cruise route is calculated, by cruise corresponding to minimum path load value Route is as recommended route routeload (k) corresponding to the vehicle.
Statistics passenger goes out beginning-of-line nearby (preferably can be radius is some numerical value within 500 meters to 2000 meters) The numerical value Z of vehicle to be matched calculates K cruise route possessed by each vehicle to be matched in Z vehicles to be matched, calculates Recommended route routeload (k) in K cruise route out.For Z different vehicle to be matched, in each vehicle to be matched Recommended route routeload (k) in, selecting vehicle z to be matched corresponding to the smallest routeload (k) is to recommend vehicle Z, and the recommended route routeload (k) is most preferably route.Specific algorithm is as follows.
Roadside unit RSU positioned at the crossing j with traffic lights is attached to node server transmission current time a certain range Close random vehicles position, the range can be set via drive test unit R SU, and preferably can be radius is 50 meters Some numerical value within to 100 meters calculates random vehicles density RSUden (j), and the operation of the random vehicles density can be Roadside unit RSU is executed, and can also be executed in node server, and operation mode uses following algorithm.
Vehicle can be abstracted into point one by one when being distributed on road, count the number N of these points, then calculate this The average distance of a little points 1,2 ..., i ..., N (only calculate every time every close front and back point), to calculate current drive test list The random vehicles density of first RSU, calculation formula are as follows:
Wherein, xi-1, yi-1With xi, yiFor the location information of the two neighboring vehicle in front and back, N is of vehicle in present scope Number, the range can be set via drive test unit R SU, and preferably can be radius is certain within 50 meters to 100 meters A numerical value.
RSUden (j) is the density of random vehicles near the Road measuring point j at the crossing of current traffic lights, smaller, table Show that density is small, the vehicle within the radius of drive test unit R SU is fewer.
By multiple RSUden (j) of multiple roadside unit RSU of the crossing j with traffic lights of each cruise route Time delay (waiting time) timewait (j) of red light near it is combined, and obtains the path load value of the cruise route,
Wherein, j is current traffic light intersection, i.e. drive test point, and J is the total number of drive test point in every cruise route, Routeload (k) is path load value, and k is the cruise route.
Routeload_recommed (z)=min { routeload (k) } (3)
For some vehicle to be matched, the path load value of its different cruise route for reaching passenger place is calculated Routeload (k) in the path load value corresponding to K cruise route, is selected belonging to routeload (k) the smallest value Route be the vehicle to be matched recommended route Routeload_recommed (z).
Route_recommend=min { Routeload_recommend (z) } (4)
For multiple vehicles to be matched, the recommended route Routeload_recommed of each vehicle to be matched is calculated (z) after, in Z vehicles to be matched, select vehicle to be matched belonging to the smallest value of Routeload_recommed (z) for Recommend vehicle, routeload (k) corresponding to the value is the recommended route of the recommendation vehicle.
According to the matching route as a result, and Route_recommend corresponding to recommendation vehicle and recommendation vehicle Generate reservation order.
Step 303: node server sends reservation order to corresponding the first client and the second client, and will be pre- About order is saved to distributed storage database.
Specifically, node server will be reserved according to the first client identification in the corresponding about vehicle request of reservation order Order is sent to corresponding first client, and according to the second client identification in the corresponding order request of reservation order, Reservation order is sent to corresponding second client;
Further, reservation order is saved to distributed storage database, comprising:
Subdata base is generated, reservation order is saved to the subdata base of generation and broadcast, for other node servers It proves that (PBFT) carries out common recognition verifying based on Byzantine failure tolerance equity, and when being verified, the subdata base of generation is accessed Distributed storage database.
In the application, by will about vehicle order save to distributed storage database, inquiry, Er Qiebian not only can be traced In other statistical operations such as order statistics.
According to presently filed embodiment, after node server sends reservation order to corresponding second client, also Include:
Receive the location information of the second client real-time synchronization;And in the travel synchronization for getting the first client broadcast Request, by the location information of the second client real-time synchronization, real-time synchronization to the travel synchronization request in interlock account, For the interlock account, corresponding personnel are checked.
Preferably, method further include: node server records the corresponding temporal information of each position information, and by each position Information and corresponding temporal information are saved together with about vehicle order to distributed storage database.
Further, this method further includes: carrying out phase to it for the second client without location information synchronizing That answers disciplines as a warning, namely disciplines as a warning its corresponding driver;For example, the order request lag processing that it is sent, or no longer Receive the order request etc. of its transmission.
In the application, the synchronization based on location information is not only convenient for understanding the travel route of reservation vehicle, avoids driver It detours, and convenient for each reservation vehicle is scheduled and is managed.
According to presently filed embodiment, generated according to matching result after reserving order, further includes: generate described pre- The about corresponding execution agreement of order;
Specifically, the address of the stored value card according to corresponding to predetermined order list corresponding first client, the second client The information such as the service fee unit price of the address of corresponding stored value card and unit mileage generate corresponding execution agreement;
It is corresponding, when reserving order completion, further includes: the automatic trigger execution agreement, it is corresponding by the first client Token of the stored value card to the corresponding stored value card transfer respective numbers of the second client.
Preferably, reservation order is saved to distributed storage database in the automatic trigger execution agreement, by the first visitor The corresponding stored value card in family end executes later to the token of the corresponding stored value card transfer respective numbers of the second client;It is corresponding , reservation order and token transfer quantity are saved to distributed storage database, not only ensured that the traceable of order is looked into It askes, and has ensured the open and clear of about fare.
It is based on distributed storage database technology as a result, carries out net about vehicle and goes on a journey, it can not only be effectively to each reservation Vehicle is managed, and is disciplined as a warning and is not kept defined driver;And about vehicle order is authentic and valid, the traceable inquiry of relevant information;Together When, in the application, by the interlock account for providing the location information real-time synchronization for reserving vehicle to passenger, so that the association The corresponding user of account can be with the position where real time inspection passenger, can take as early as possible with passenger in something unexpected happened It must contact.
Example IV
According to presently filed embodiment, it is also proposed that a kind of about vehicle traveling method based on distributed storage database, such as Shown in Fig. 4, comprising:
Step 401: the first client receives trip information, generates about vehicle according to trip information and requests and broadcast;
Step 402: the second client receives order information, requests and broadcasts according to the generation order of order information;
In the application, the execution sequence of step 401 and step 402 be can be interchanged, and may also be performed simultaneously.
Step 403: node server obtains the request of about vehicle and the order of the second client broadcast of the first client broadcast Request;
Step 404: the request of about vehicle and order request that node server will acquire are saved to trading pit and match trading, Reservation order is generated according to matching result;
Step 405: node server sends reservation order to corresponding the first client and the second client, and will be pre- About order is saved to distributed storage database;
Step 406: the first client and the second client are distinguished the about vehicle order of receiving node server transmission and are shown Show.
Wherein, the request of about vehicle and order request that will acquire are saved to trading pit and match trading, including
It is matched according to beginning-of-line and the current vehicle position combination real-time road to be matched out of passenger.
Specifically, roadside unit RSU, roadside unit RSU and node server are set at each crossing with traffic lights Communication, node server are worked as according to beginning-of-line and the current vehicle position combination real-time road simulating vehicle to be matched out of passenger Front position reaches out n cruise route of beginning-of-line, for each trackside list of road side corresponding to every cruise route Member point calculates traffic density, so that the path load value of the cruise route is calculated, by cruise corresponding to minimum path load value Route is as recommended route routeload (k) corresponding to the vehicle.
Statistics passenger goes out beginning-of-line nearby (preferably can be radius is some numerical value within 500 meters to 2000 meters) The numerical value Z of vehicle to be matched calculates K cruise route possessed by each vehicle to be matched in Z vehicles to be matched, calculates Recommended route routeload (k) in K cruise route out.For Z different vehicle to be matched, in each vehicle to be matched Recommended route routeload (k) in, selecting vehicle z to be matched corresponding to the smallest routeload (k) is to recommend vehicle Z, and the recommended route routeload (k) is most preferably route.Specific algorithm is as follows.
Roadside unit RSU positioned at the crossing j with traffic lights is attached to node server transmission current time a certain range Close random vehicles position, the range can be set via drive test unit R SU, and preferably can be radius is 50 meters Some numerical value within to 100 meters calculates random vehicles density RSUden (j), and the operation of the random vehicles density can be Roadside unit RSU is executed, and can also be executed in node server, and operation mode uses following algorithm.
Vehicle can be abstracted into point one by one when being distributed on road, count the number N of these points, then calculate this The average distance of a little points 1,2 ..., i ..., N (only calculate every time every close front and back point), to calculate current drive test list The random vehicles density of first RSU, calculation formula are as follows:
Wherein, xi-1, yi-1With xi, yiFor the location information of the two neighboring vehicle in front and back, N is of vehicle in present scope Number, the range can be set via drive test unit R SU, and preferably can be radius is certain within 50 meters to 100 meters A numerical value.
RSUden (j) is the density of random vehicles near the Road measuring point j at the crossing of current traffic lights, smaller, table Show that density is small, the vehicle within the radius of drive test unit R SU is fewer.
By multiple RSUden (j) of multiple roadside unit RSU of the crossing j with traffic lights of each cruise route Time delay (waiting time) timewait (j) of red light near it is combined, and obtains the path load value of the cruise route,
Wherein, j is current traffic light intersection, i.e. drive test point, and J is the total number of drive test point in every cruise route, Routeload (k) is path load value, and k is the cruise route.
Routeload_recommed (z)=min { routeload (k) } (3)
For some vehicle to be matched, the path load value of its different cruise route for reaching passenger place is calculated Routeload (k) in the path load value corresponding to K cruise route, is selected belonging to routeload (k) the smallest value Route be the vehicle to be matched recommended route Routeload_recommed (z).
Route_recommend=min { Routeload_recommend (z) } (4)
For multiple vehicles to be matched, the recommended route Routeload_recommed of each vehicle to be matched is calculated (z) after, in Z vehicles to be matched, select vehicle to be matched belonging to the smallest value of Routeload_recommed (z) for Recommend vehicle, routeload (k) corresponding to the value is the recommended route of the recommendation vehicle.
According to the matching route as a result, and Route_recommend corresponding to recommendation vehicle and recommendation vehicle Generate reservation order.
In the application, the implementation method of each step can be found in associated description of the embodiment one into embodiment three, herein not It is described in detail again.
Embodiment five
According to presently filed embodiment, it is also proposed that a kind of about vehicle trip device based on distributed storage database, such as Shown in Fig. 5, comprising:
First receiving module 501, for receiving trip information;
First generation module 502, the trip information Sheng Yueche request for being received according to the first receiving module 501;
First broadcast module 503, for broadcasting the about vehicle request of the first generation module 502 generation, for node server Matching about vehicle order;
First receiving module 501 is also used to the about vehicle order of receiving node server transmission, and about vehicle order includes reservation The information of vehicles of vehicle;
First display module 504, the about vehicle order received for showing the first receiving module 501.
According to presently filed embodiment, the first receiving module 501 is also used to receive interlock account information;
Corresponding, the first generation module 502 is also used to the interlock account information received according to the first receiving module 501 Generate travel synchronization request;
First broadcast module 503 is also used to broadcast the travel synchronization request of the first generation module 502 generation, for node Server will reserve the location information real-time synchronization of vehicle to the interlock account.
According to presently filed embodiment, reserves vehicle and correspond to the second client, device further include: the first electronic money Packet module;
First stored value card module is used for when about vehicle order is completed, the execution agreement based on node server end, to The token of the corresponding stored value card transfer respective numbers of second client.
Embodiment six
According to presently filed embodiment, it is also proposed that a kind of about vehicle trip device based on distributed storage database, such as Shown in Fig. 6, comprising:
Second receiving module 601, for receiving order information;
Second generation module 602, the order information for being received according to the second receiving module 601 generate order request;
Second broadcast module 603, for broadcasting the order request of the second generation module 602 generation, for node server Matching about vehicle order;
Second receiving module 601 is also used to the about vehicle order of receiving node server transmission, and about vehicle order includes passenger Trip information;
Second display module 604, the about vehicle order received for showing the second receiving module 601.
According to presently filed embodiment, device further include: the first synchronization module;
First synchronization module, for by the location information real-time synchronization of itself to node server, for node server The interlock account that the location information synchronizing to passenger is provided.
According to presently filed embodiment, corresponding first client of passenger, the device further include: the second stored value card mould Block;
Second stored value card module, for when about vehicle order is completed, the execution agreement based on node server end to turn Enter the token of corresponding data, the token is produced by the corresponding stored value card of first client.
Embodiment seven
According to presently filed embodiment, it is also proposed that a kind of about vehicle trip device based on distributed storage database, such as Shown in Fig. 7, comprising:
Module 701 is obtained, the about vehicle for obtaining the first client broadcast is requested and the order of the second client broadcast is asked It asks;
Matching module 702, the request of about vehicle and order request for will acquire the acquisition of module 701 are saved to trading pit simultaneously Match trading;
Third generation module 703, for generating reservation order according to matching result;
Sending module 704, the reservation order for generating third generation module 703 are sent to corresponding first client End and the second client;
Preserving module 705, the reservation order for generating third generation module 703 are saved to distributed storage data Library.
According to presently filed embodiment, the about vehicle request packet includes beginning-of-line, and the order request is worked as including vehicle Front position;
Corresponding, matching module 702 is specifically used for:
The request of about vehicle and order request that will acquire the acquisition of module 701 are saved to trading pit;
Beginning-of-line will be gone out in each about vehicle request currently contained in trading pit, it is current with the vehicle in each order request Position is matched, obtain apart from it is the smallest go out beginning-of-line and current vehicle position, and by corresponding about vehicle request and it is corresponding Order request is traded as matched about vehicle.
According to presently filed embodiment, device further include: third receiving module and the second synchronization module;
Third receiving module, for receiving the location information of the second client real-time synchronization.
Module 701 is obtained, is also used to obtain the travel synchronization request of the first client broadcast;
Second synchronization module, the location information for receiving third receiving module, real-time synchronization to institute's travel synchronization Interlock account in request.
According to presently filed embodiment, device further include: the 4th generation module and execution protocol module;
4th generation module, for generating after third generation module 703 generates reservation order according to matching result Reserve the corresponding execution agreement of order;
Protocol module is executed, for when reserving order completion, automatic trigger to execute agreement, corresponding by the first client Token from stored value card to the second client corresponding stored value card transfer respective numbers.
According to presently filed embodiment, preserving module 705 is specifically used for:
Subdata base is generated, reservation order is saved to the subdata base of generation and broadcast, for other node servers It proves that (PBFT) carries out common recognition verifying based on Byzantine failure tolerance equity, and when being verified, the subdata base of generation is accessed Distributed storage database.
According to presently filed embodiment, it is also proposed that a kind of about vehicle travel system based on distributed storage database, packet It includes: embodiment five to any device of embodiment seven.
According to presently filed embodiment, it is also proposed that a kind of about vehicle trip equipment based on distributed storage database, packet It includes:
At least one processor, at least one storage device;Wherein, the storage device is stored with one or more journeys Sequence, described program can be executed by the processor, so that processor execution is any of the above-described to be based on distributed storage data The step of about vehicle traveling method in library.
Further, the storage device may include the readable medium of volatile memory cell form, such as deposit at random Storage unit (RAM) and/or cache memory unit are taken, can further include read-only memory unit (ROM).
According to presently filed embodiment, it is also proposed that a kind of computer-readable medium is stored thereon with computer program (i.e. program product), when the computer program by processor when being run, realization is any of the above-described to be based on distributed storage data The step of about vehicle traveling method in library.
Further, the computer readable storage medium includes but is not limited to: phase change memory (PRAM), static random It accesses memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only Memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optics, magnetic storage are situated between Matter, this is no longer going to repeat them.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that the embodiments described herein can be with By software realization, can also be realized in such a way that software is in conjunction with necessary hardware.Therefore, according to the embodiment of the present application Technical solution can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can be personal computer, server, mobile terminal or network equipment etc.) executes according to the method for the embodiment of the present invention.
It should be noted that each embodiment is all made of relevant mode and describes in the application, identical phase between each embodiment As part mutually reference, each embodiment focuses on the differences from other embodiments.Particularly with For Installation practice, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side The part of method embodiment illustrates.
In the application, it is based on distributed storage database technology, net about vehicle is carried out and goes on a journey, on the one hand, can be effective right Each reservation vehicle is managed, and is disciplined as a warning and do not kept defined driver;On the other hand, the common recognition based on distributed storage database Mechanism has ensured the authentic and valid and expense open and clear of about vehicle order;In another aspect, the about correlation such as vehicle order is believed Breath is saved to distributed storage database, inquiry can be traced, but also not only convenient for other statistical operations such as order statistics;Finally, By the interlock account for providing the location information real-time synchronization for reserving vehicle to passenger, so that the corresponding use of the interlock account It family can be with the position where real time inspection passenger, can get in touch as early as possible with passenger in something unexpected happened.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited to This, anyone skilled in the art in the technical scope disclosed by the present invention, the variation that can readily occur in or replaces It changes, should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim It protects subject to range.

Claims (8)

1. a kind of about vehicle traveling method based on distributed storage database, comprising:
First client receives trip information, generates about vehicle according to trip information and requests and broadcast;
Second client receives order information, requests and broadcasts according to the generation order of order information;
Node server obtains the request of about vehicle and the order of the second client broadcast request of the first client broadcast;
The request of about vehicle and order request that node server will acquire are saved to trading pit and match trading, raw according to matching result At reservation order;
Node server send reservation order to corresponding the first client and the second client, and will reservation order save to point Cloth storing data library;
The first client and the second client are distinguished the about vehicle order of receiving node server transmission and are shown, wherein
The request of about vehicle and order request that will acquire are saved to trading pit and match trading, are generated reservation according to matching result and are ordered It is single, including
Roadside unit RSU is set at each crossing with traffic lights, roadside unit RSU is communicated with node server, node clothes Business device reaches out according to beginning-of-line and the current vehicle position combination real-time road simulating vehicle to be matched current location out of passenger K cruise route of beginning-of-line calculates vehicle for each roadside unit point j of road side corresponding to every cruise route k Density, calculation formula are as follows:
Wherein, xi-1, yi-1With xi, yiFor the location information of the two neighboring vehicle in front and back, N is the number of vehicle in present scope, institute It states range to be set via drive test unit R SU, RSUden (j) is the road where the drive test unit R SU of current traffic light intersection The density of random vehicles at the drive test point j of road;
By the time delay of the red light of each traffic lights corresponding to each RSUden (j) of each drive test point j of every cruise route k and its Timewait (j) is combined, and obtains the path load value of cruise route k,
Wherein, J is the total number of drive test point in the cruise route, and routeload (k) is the path load value of the cruise route, k For the cruise route;
Routeload_recommed (z)=min { routeload (k) } (3)
For some vehicle to be matched, the path load value routeload of its every cruise route k for reaching passenger place is calculated (k), in the path load value corresponding to K cruise route, cruise route belonging to routeload (k) the smallest value is selected For the recommended route Routeload_recommed (z) of the vehicle to be matched;
Route_recommed=min { Routeload_recommed (z) } (4)
In Z vehicles to be matched, select belonging to Routeload_recommed (z) the smallest value Route_recommed to Matching vehicle is to recommend vehicle Zre, cruise route corresponding to the value is the recommended route K of the recommendation vehiclere
According to recommendation vehicle Zre, cruise route KreGenerate reservation order.
2. the about vehicle traveling method according to claim 1 based on distributed storage database, which is characterized in that
First client receives trip information, generates about vehicle according to trip information and requests and broadcast, comprising:
Trip information is received, about vehicle is generated according to the trip information and is requested, the trip information includes beginning-of-line and trip Terminal;
The about vehicle request is broadcasted, for node server matching about vehicle order.
3. the about vehicle traveling method according to claim 2 based on distributed storage database, which is characterized in that method is also Include:
Interlock account information is received, travel synchronization request is generated according to the interlock account information;
Broadcast travel synchronization request, for node server by the location information real-time synchronization of the reservation vehicle to described Interlock account.
4. the about vehicle traveling method according to claim 3 based on distributed storage database, which is characterized in that
When the about vehicle order is completed, the execution agreement based on node server end, by the corresponding electronic money of the first client Wrap the token to the corresponding stored value card transfer respective numbers of second client.
5. the about vehicle traveling method according to claim 1 based on distributed storage database, which is characterized in that
Second client receives order information, generates order according to order information and requests and broadcast and includes:
Order information is received, order request is generated according to the order information, the order information includes current vehicle position;
The order request is broadcasted, for node server matching about vehicle order.
6. the about vehicle traveling method according to claim 5 based on distributed storage database, which is characterized in that described to connect After the about vehicle order for receiving the node server transmission, further includes:
Second client is by the location information real-time synchronization of itself to node server, so that the node server is by institute's rheme Confidence breath is synchronized to the interlock account of passenger's offer.
7. the about vehicle traveling method according to claim 6 based on distributed storage database, which is characterized in that
When the about vehicle order is completed, the execution agreement based on node server end, the corresponding electronics of second client Wallet is transferred to the token of corresponding data, and the token is produced by the corresponding stored value card of first client.
8. the about vehicle traveling method according to claim 1 based on distributed storage database, which is characterized in that described It is generated according to matching result after reserving order, further includes: generate the corresponding execution agreement of the reservation order;
When the reservation order is completed, further includes: agreement is executed described in automatic trigger, by the corresponding electricity of first client Token of the sub- wallet to the corresponding stored value card transfer respective numbers of second client.
CN201910395414.1A 2019-05-13 2019-05-13 A kind of about vehicle traveling method based on distributed storage database Pending CN110245764A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910395414.1A CN110245764A (en) 2019-05-13 2019-05-13 A kind of about vehicle traveling method based on distributed storage database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910395414.1A CN110245764A (en) 2019-05-13 2019-05-13 A kind of about vehicle traveling method based on distributed storage database

Publications (1)

Publication Number Publication Date
CN110245764A true CN110245764A (en) 2019-09-17

Family

ID=67884531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910395414.1A Pending CN110245764A (en) 2019-05-13 2019-05-13 A kind of about vehicle traveling method based on distributed storage database

Country Status (1)

Country Link
CN (1) CN110245764A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111523692A (en) * 2020-04-09 2020-08-11 北京白龙马云行科技有限公司 Order management method, order management device and order management system
CN112822642A (en) * 2020-12-31 2021-05-18 北京千方科技股份有限公司 Vehicle distribution method, device and system based on V2X
CN113127592A (en) * 2021-04-20 2021-07-16 南京领行科技股份有限公司 Distributed storage system
WO2022073293A1 (en) * 2020-10-10 2022-04-14 同程网络科技股份有限公司 Distributed order processing method, apparatus, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680124A (en) * 2012-09-03 2014-03-26 国民技术股份有限公司 Taxi calling system and method
CN104463509A (en) * 2014-12-29 2015-03-25 先锋智道(北京)科技有限公司 Order pushing method and order confirmation method for network taxi taking
CN106643747A (en) * 2015-11-04 2017-05-10 中国移动通信集团公司 Navigation method and navigation device
CN106971334A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 Handle method and device, the electronic equipment of stroke order
CN109000668A (en) * 2018-05-25 2018-12-14 上海汽车集团股份有限公司 Real-time intelligent air navigation aid based on car networking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103680124A (en) * 2012-09-03 2014-03-26 国民技术股份有限公司 Taxi calling system and method
CN104463509A (en) * 2014-12-29 2015-03-25 先锋智道(北京)科技有限公司 Order pushing method and order confirmation method for network taxi taking
CN106643747A (en) * 2015-11-04 2017-05-10 中国移动通信集团公司 Navigation method and navigation device
CN106971334A (en) * 2017-03-28 2017-07-21 北京小米移动软件有限公司 Handle method and device, the electronic equipment of stroke order
CN109000668A (en) * 2018-05-25 2018-12-14 上海汽车集团股份有限公司 Real-time intelligent air navigation aid based on car networking

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111523692A (en) * 2020-04-09 2020-08-11 北京白龙马云行科技有限公司 Order management method, order management device and order management system
WO2022073293A1 (en) * 2020-10-10 2022-04-14 同程网络科技股份有限公司 Distributed order processing method, apparatus, device, and storage medium
CN112822642A (en) * 2020-12-31 2021-05-18 北京千方科技股份有限公司 Vehicle distribution method, device and system based on V2X
CN113127592A (en) * 2021-04-20 2021-07-16 南京领行科技股份有限公司 Distributed storage system

Similar Documents

Publication Publication Date Title
CN110245764A (en) A kind of about vehicle traveling method based on distributed storage database
Zhang et al. Design of
US11035682B2 (en) Navigation routes as community object virtual hub sequences to which users may subscribe
US11215466B2 (en) Route community objects with price-time priority queues for transformed transportation units
Coffman et al. Electric vehicles revisited: a review of factors that affect adoption
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
Hoh et al. TruCentive: A game-theoretic incentive platform for trustworthy mobile crowdsourcing parking services
Di Febbraro et al. Optimization of dynamic ridesharing systems
CN108846673B (en) Block data processing method, device, equipment and storage medium
US20190333181A1 (en) Parking community objects with price-time priority queues for transformed parking units
CN107507451A (en) Parking stall shared system and method
Yan et al. Crowdpark: A crowdsourcing-based parking reservation system for mobile phones
US11790382B2 (en) Method to transmit geolocation exchange based markets
CN109934662B (en) Shared resource leasing method and device based on block chain and computer equipment
CN112765656B (en) Electric car sharing charging credible system and method based on block chain
US20220004307A1 (en) Virtual Power Plant Optimization Method and System
CN113570065A (en) Data management method, device and equipment based on alliance chain and federal learning
CN108830710B (en) Block chain transaction platform and implementation method
CN109313792A (en) Efficient resource supplier's system
KR102465942B1 (en) Apparatus, method and computer-readable storage medium for acquiring carbon credit based on tracking trade transaction of mobile device using blockchain
US11631061B2 (en) Method for creating and maintaining a distributed ledger of vehicle gas consumption and wear and tear information
CN109426989A (en) A kind of subscription process method provides method for reserving service and equipment
Noor et al. ParkBid: An incentive based crowdsourced bidding service for parking reservation
WO2021186211A1 (en) Methods, systems, and devices for managing service requests and pricing policies for services provided by service providers to users
Wang et al. BPR: blockchain-enabled efficient and secure parking reservation framework with block size dynamic adjustment method

Legal Events

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

Application publication date: 20190917