Network appointment vehicle order pushing method and device and electronic equipment
Technical Field
The invention relates to the technical field of automobiles, in particular to a network taxi appointment order pushing method and device and electronic equipment.
Background
The application of the network car booking greatly facilitates the life of people, and meanwhile, laws and regulations manage the network car booking. At present, after a server receives a car booking order proposed by a passenger, the order is pushed to a car booking driver in a certain range by taking the passenger as a center, and the car booking driver can contact the passenger to complete car booking service after rushing to the order.
However, in the process of implementing the invention, the inventor finds that in some cities, such as beijing, a restriction measure exists, and the restricted vehicles cannot enter some regions, for example, in the restriction, the restricted vehicles of the beijing license plate cannot enter five rings (excluding five rings), and the foreign license plate vehicles cannot enter five rings (including five rings). However, for a passenger, the optimal path between his/her origin and destination may need to pass through the restricted area. At present, a significant problem exists in that after a network appointment car with a license plate number in a restricted driving state is robbed to an order, the network appointment car bypasses a restricted driving area and does not drive according to an optimal path, so that passengers spend more time and money, and the passengers complain. Taking fig. 1 as an example, in the beijing city, passengers need to go to the duchekan from the village and village governments of each bean, and the optimal route is the recommended scheme 1, and the passengers pass through five rings, four rings and three rings, so that the cost of the passengers is minimum and the time consumption is minimum. If the order is caught by a net appointment in a restricted state, the net appointment will travel according to scheme 3, around five rings, which increases the cost and time for the passengers.
Disclosure of Invention
Therefore, it is necessary to provide a network car booking order pushing method, a device and an electronic device for solving the technical problem that the network car booking order pushing method in the prior art cannot be optimized for traffic control measures.
The embodiment of the invention provides a network appointment order pushing method, which comprises the following steps:
receiving a network car booking order comprising a departure place and a destination;
calculating an optimal path to a destination, determining a network car booking to be screened, and acquiring network car booking information of the network car booking to be screened, wherein the network car booking information comprises a license plate number of the network car booking;
and screening the network appointment vehicles according to the optimal path and the license plate numbers of the network appointment vehicles to be screened to obtain screened network appointment vehicles capable of adopting the optimal path, and pushing the network appointment orders to the screened network appointment vehicles.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path includes:
and screening the network appointment cars to be screened, which are overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, and taking the network appointment cars to be screened, which are not overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, as the screened network appointment cars.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path specifically comprises the following steps:
if the license plate number of the network appointment vehicle to be screened belongs to the traffic control license plate, screening out the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is overlapped or crossed with the optimal path, and taking the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is not overlapped or crossed with the optimal path, as the screened network appointment vehicle;
and if the license plate number of the to-be-screened net appointment vehicle does not belong to the traffic control license plate, taking the to-be-screened net appointment vehicle of which the license plate number does not belong to the traffic control license plate as the screened net appointment vehicle.
Further, the determining of the net appointment to be screened includes:
and taking at least one network appointment vehicle within a preset position range by taking the departure place as a center as a network appointment vehicle to be screened.
Further, the calculating of the optimal path to the destination includes:
and calculating the optimal path according to the information of the departure place and the destination by adopting a preset path mode.
The embodiment of the invention provides a network appointment order pushing device, which comprises:
an order receiving module to: receiving a network car booking order comprising a departure place and a destination;
the driving information acquisition module is used for: calculating an optimal path to a destination, determining a network car booking to be screened, and acquiring network car booking information of the network car booking to be screened, wherein the network car booking information comprises a license plate number of the network car booking;
an order push module to: and screening the network appointment vehicles according to the optimal path and the license plate numbers of the network appointment vehicles to be screened to obtain screened network appointment vehicles capable of adopting the optimal path, and pushing the network appointment orders to the screened network appointment vehicles.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path includes:
and screening the network appointment cars to be screened, which are overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, and taking the network appointment cars to be screened, which are not overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, as the screened network appointment cars.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path specifically comprises the following steps:
if the license plate number of the network appointment vehicle to be screened belongs to the traffic control license plate, screening out the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is overlapped or crossed with the optimal path, and taking the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is not overlapped or crossed with the optimal path, as the screened network appointment vehicle;
and if the license plate number of the to-be-screened net appointment vehicle does not belong to the traffic control license plate, taking the to-be-screened net appointment vehicle of which the license plate number does not belong to the traffic control license plate as the screened net appointment vehicle.
Further, the determining of the net appointment to be screened includes:
and taking at least one network appointment vehicle within a preset position range by taking the departure place as a center as a network appointment vehicle to be screened.
Further, the calculating of the optimal path to the destination includes:
and calculating the optimal path according to the information of the departure place and the destination by adopting a preset path mode.
An embodiment of the present invention provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to:
receiving a network car booking order comprising a departure place and a destination;
calculating an optimal path to a destination, determining a network car booking to be screened, and acquiring network car booking information of the network car booking to be screened, wherein the network car booking information comprises a license plate number of the network car booking;
and screening the network appointment vehicles according to the optimal path and the license plate numbers of the network appointment vehicles to be screened to obtain screened network appointment vehicles capable of adopting the optimal path, and pushing the network appointment orders to the screened network appointment vehicles.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path includes:
and screening the network appointment cars to be screened, which are overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, and taking the network appointment cars to be screened, which are not overlapped or crossed with the optimal path in the restricted area corresponding to the license plate number, as the screened network appointment cars.
Further, the step of screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain the screened network car booking capable of adopting the optimal path specifically comprises the following steps:
if the license plate number of the network appointment vehicle to be screened belongs to the traffic control license plate, screening out the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is overlapped or crossed with the optimal path, and taking the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is not overlapped or crossed with the optimal path, as the screened network appointment vehicle;
and if the license plate number of the to-be-screened net appointment vehicle does not belong to the traffic control license plate, taking the to-be-screened net appointment vehicle of which the license plate number does not belong to the traffic control license plate as the screened net appointment vehicle.
Further, the determining of the net appointment to be screened includes:
and taking at least one network appointment vehicle within a preset position range by taking the departure place as a center as a network appointment vehicle to be screened.
Further, the calculating of the optimal path to the destination includes:
and calculating the optimal path according to the information of the departure place and the destination by adopting a preset path mode.
According to the embodiment of the invention, the license plate number is screened, and the order is pushed only to the screened network appointment cars, so that the pushed network appointment cars are all the vehicles capable of driving according to the optimal path, and the network appointment car is prevented from bypassing.
Drawings
FIG. 1 is a schematic diagram of a path;
fig. 2 is a flowchart illustrating a method for pushing an order of a network appointment according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for pushing an order of a network appointment according to an alternative embodiment of the present invention;
fig. 4 is a block diagram of an apparatus of an order pushing device for a network appointment car according to an embodiment of the present invention;
fig. 5 is a schematic hardware structure diagram of an electronic device for executing a network appointment order pushing method according to an alternative embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples.
Example one
Fig. 2 is a flowchart illustrating a method for pushing an order of a network appointment car according to an embodiment of the present invention, including:
step S201, receiving a network car booking order comprising a departure place and a destination;
step S202, calculating an optimal path to a destination, determining a network car appointment to be screened, and acquiring network car appointment information of the network car appointment to be screened, wherein the network car appointment information comprises a license plate number of the network car appointment;
and S203, screening the network car booking according to the optimal path and the license plate number of the network car booking to be screened to obtain a screened network car booking capable of adopting the optimal path, and pushing the network car booking order to the screened network car booking.
The passenger sends a network car booking order to the server by using the intelligent terminal, wherein the order comprises information of a departure place and a destination. After the server executes step S201 and receives the passenger order, step S202 is executed, an optimal path is calculated according to the information of the departure place and the destination, and the network appointment to be screened is determined and the corresponding license plate number is obtained. The network appointment information comprises a license plate number. And the server performs the step S203 to screen according to the optimal path and the license plate number of the network car appointment to be screened, and pushes the network car appointment order to the screened network car appointment.
And the network appointment vehicle takes the order after receiving the pushed order.
According to the embodiment of the invention, the license plate number is screened, and the order is pushed only to the screened network appointment cars, so that the pushed network appointment cars are all the vehicles capable of driving according to the optimal path, and the network appointment car is prevented from bypassing.
Example two
Fig. 3 is a flowchart illustrating a method for pushing an order of a network appointment car according to an alternative embodiment of the present invention, including:
in step S301, a network appointment order including a departure place and a destination is received.
Step S302, an optimal path is calculated according to departure place and destination information by adopting a preset path mode, at least one network car reservation in a preset position range with the departure place as a center is taken as a network car reservation to be screened, and network car reservation information of the network car reservation to be screened is obtained, wherein the network car reservation information comprises a license plate number of the network car reservation.
Specifically, the route mode includes different modes such as high speed priority, shortest distance, least time consumption, most economical and the like, and the passenger information can be acquired from the network appointment order or acquired from the network appointment order and analyzed and acquired according to the passenger preference or directly selected.
For example, the optimal path calculated by the server is the recommended scheme 11 shown in fig. 1.
Step S303, if the license plate number of the to-be-screened network car booking belongs to the traffic control license plate, executing step S304, if the license plate number of the to-be-screened network car booking does not belong to the traffic control license plate, taking the to-be-screened network car booking of which the license plate number does not belong to the traffic control license plate as the screened network car booking;
and S304, screening out the to-be-screened taxi appointment in which the restricted area corresponding to the license plate number is overlapped or crossed with the optimal path, and taking the to-be-screened taxi appointment in which the restricted area corresponding to the license plate number is not overlapped or crossed with the optimal path as the screened taxi appointment.
Specifically, the traffic control area corresponding to the license plate number of each network appointment to be screened is compared with the optimal path, and if overlapping or crossing exists, the corresponding network appointment to be screened is screened out.
And S305, pushing the network car booking order to the screened network car booking.
Since the remaining restricted area corresponding to the license plate number of the net appointment car to be screened does not overlap or intersect with the optimal path, the optimal path can be used without detour.
According to the method and the device for automatically ordering the vehicles, the network appointment vehicles which cannot run through the optimal path are screened out by overlapping or cross-comparing the restricted area of the license plate number with the optimal path, and the orders are only pushed to the screened network appointment vehicles, so that the pushed network appointment vehicles are all vehicles which can run according to the optimal path, and the network appointment vehicles are prevented from bypassing. Meanwhile, for the taxi appointment to be screened, of which the license plate number does not belong to the restricted license plate, the taxi appointment is directly used as the screened taxi appointment, so that the calculated amount is reduced.
EXAMPLE III
Fig. 4 is a block diagram of an order pushing apparatus for a network appointment car according to an embodiment of the present invention, which includes:
an order receiving module 401, configured to: receiving a network car booking order comprising a departure place and a destination;
a driving information obtaining module 402, configured to: calculating an optimal path to a destination, determining a network car booking to be screened, and acquiring network car booking information of the network car booking to be screened, wherein the network car booking information comprises a license plate number of the network car booking;
an order pushing module 403, configured to: and screening the network appointment vehicles according to the optimal path and the license plate numbers of the network appointment vehicles to be screened to obtain screened network appointment vehicles capable of adopting the optimal path, and pushing the network appointment orders to the screened network appointment vehicles.
According to the embodiment of the invention, the license plate number is screened, and the order is pushed only to the screened network appointment cars, so that the pushed network appointment cars are all the vehicles capable of driving according to the optimal path, and the network appointment car is prevented from bypassing.
Example four
An alternative embodiment of the present invention provides an online taxi appointment order pushing device, including:
an order receiving module to: receiving a network car booking order comprising a departure place and a destination;
the driving information acquisition module is used for: calculating an optimal path according to information of a departure place and a destination by adopting a preset path mode, taking at least one network car reservation within a preset position range with the departure place as a center as a network car reservation to be screened, and acquiring network car reservation information of the network car reservation to be screened, wherein the network car reservation information comprises a license plate number of the network car reservation;
an order push module to: if the license plate number of the network appointment vehicle to be screened belongs to the traffic control license plate, screening out the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is overlapped or crossed with the optimal path, and taking the network appointment vehicle to be screened, wherein the traffic control area corresponding to the license plate number is not overlapped or crossed with the optimal path, as the screened network appointment vehicle; and if the license plate number of the network appointment vehicle to be screened does not belong to the traffic control license plate, taking the network appointment vehicle to be screened, of which the license plate number does not belong to the traffic control license plate, as the screened network appointment vehicle, and pushing the network appointment order to the screened network appointment vehicle.
According to the method and the device for automatically ordering the vehicles, the network appointment vehicles which cannot run through the optimal path are screened out by overlapping or cross-comparing the restricted area of the license plate number with the optimal path, and the orders are only pushed to the screened network appointment vehicles, so that the pushed network appointment vehicles are all vehicles which can run according to the optimal path, and the network appointment vehicles are prevented from bypassing. Meanwhile, for the taxi appointment to be screened, of which the license plate number does not belong to the restricted license plate, the taxi appointment is directly used as the screened taxi appointment, so that the calculated amount is reduced.
A fifth embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the network appointment order pushing method in any of the above method embodiments.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device for executing a network appointment order pushing method according to an eighth embodiment of the present invention, which mainly includes: at least one processor 510; and a memory 520 communicatively coupled to the at least one processor 510; the memory 520 stores instructions executable by the at least one processor 510, so that the at least one processor can execute the method flows shown in fig. 2 and 3, for example, the processor 510 in fig. 5.
The electronic device executing the network appointment order pushing method may further include: an input device 530 and an output device 540.
The processor 510, the memory 520, the input device 530, and the display device 540 may be connected by a bus or other means, and fig. 5 illustrates an example of a bus connection.
The memory 520 is a non-volatile computer-readable storage medium, and can be used to store a non-volatile software program, a non-volatile computer-executable program, and modules, such as program instructions/modules corresponding to the online taxi appointment order pushing method in the embodiment of the present application, for example, the method flows shown in fig. 2 and fig. 3, or the order receiving module 401, the driving information obtaining module 402, and the order pushing module 403 shown in fig. 4. The processor 510 executes various functional applications and data processing by executing nonvolatile software programs, instructions and modules stored in the memory 520, that is, implements the network appointment order pushing method in the above embodiments.
The memory 520 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the network appointment order push apparatus, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 520 optionally includes memory located remotely from processor 510, and such remote memory may be connected via a network to a device that performs the network appointment order push method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may receive input of user clicks and generate signal inputs related to user settings and function control of the net appointment order push device. The display device 540 may include a display screen or the like.
The network appointment order push method in any of the above method embodiments is performed when the one or more modules are stored in the memory 520 and executed by the one or more processors 510.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of embodiments of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a mobile terminal (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and not to limit the same; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.