VEHICLE SERVICE RESERVATION METHOD AND DEVICE
This application provides a vehicle service reservation method and a device. The method includes obtaining travel information of a vehicle. The travel information includes path information, travel plan information, and energy consumption information. The method includes determining M service apparatuses based on the travel information. M is a positive integer. The method includes making a service reservation of N service apparatuses in the M service apparatuses. N is a positive integer less than or equal to M. A service apparatus that is successfully reserved in the N service apparatuses is configured to provide a vehicle service for the vehicle.
1 . A method of reserving vehicle service, comprising:
obtaining travel information of a vehicle, wherein the travel information comprises path information, travel plan information, and energy consumption information;
determining M service apparatuses based on the travel information, wherein M is a positive integer; and
making a service reservation of N service apparatuses in the M service apparatuses, wherein N is a positive integer less than or equal to M, and a service apparatus that is successfully reserved in the N service apparatuses is configured to provide a vehicle service for the vehicle.
2 . The method according to claim 1 , wherein determining the M service apparatuses based on the travel information comprises:
determining, based on the path information and the energy consumption information, whether the vehicle meets a first condition; and
when the vehicle meets the first condition, determining the M service apparatuses, wherein the
first condition comprises at least one of the following:
a range that remaining energy of the vehicle supports the vehicle to travel is less than a traveling range for reaching a first target location indicated by the path information;
a remaining range of the vehicle is less than the traveling range for reaching the first target location indicated by the path information; or
remaining energy or a remaining range is less than or equal to a first threshold when the vehicle travels to a first location, wherein the first location is a location that the vehicle reaches before traveling to the first target location.
3 . The method according to claim + 2 , wherein determining the M service apparatuses comprises:
matching the M service apparatuses within a first location range, wherein the first location range is a location range between a current location of the vehicle and the first location, and the remaining energy or the remaining range is less than or equal to the first threshold when the vehicle travels to the first location.
4 . The method according to claim 1 , wherein determining the M service apparatuses based on the travel information comprises:
determining, based on the path information and the energy consumption information, that remaining energy or a remaining range is less than or equal to a first threshold when the vehicle travels to a first target location indicated by the path information;
determining an allowed service time of the vehicle based on the travel plan information; and
determining the M service apparatuses based on the allowed service time of the vehicle.
5 . The method according to claim 4 , wherein determining the M service apparatuses based on the allowed service time of the vehicle comprises at least one of the following:
when the allowed service time is greater than or equal to a first time threshold, obtaining the M service apparatuses through matching within a second location range of the vehicle service; or
when the allowed service time is less than or equal to a second time threshold, obtaining the M service apparatuses through matching within a third location range of the vehicle service, wherein
the second location range is a location range between a current location of the vehicle and the first target location, and the third location range is a location range determined based on the first target location.
6 . The method according to claim 5 , wherein both the first time threshold and the second time threshold are in a first proportional relationship with a travel time indicated by the travel plan information, and the travel time is a time required for the vehicle to reach the first target location indicated by the path information from the current location.
7 . The method according to claim 1 , wherein determining the M service apparatuses based on the travel information comprises:
determining, based on the path information and the energy consumption information, that remaining energy or a remaining range is greater than or equal to a second threshold when the vehicle travels to a first target location indicated by the path information;
determining, based on the travel plan information, whether a time interval between a time at which the vehicle reaches the first target location and a time at which the vehicle travels next time is greater than or equal to a third time threshold; and
when the time interval is greater than or equal to the third time threshold, determining the M service apparatuses.
8 . The method according to claim 7 , wherein determining the M service apparatuses comprises:
determining a location range of the vehicle service based on the first target location, and matching the M service apparatuses within the location range of the vehicle service.
9 . The method according to claim 1 , wherein determining the M service apparatuses comprises:
determining the M service apparatuses based on the path information and service reference information.
10 . A apparatus for reserving vehicle service, comprising:
an obtaining module, configured to obtain travel information of a vehicle, wherein the travel information comprises path information, travel plan information, and energy consumption information;
a matching module; configured to determine M service apparatuses based on the travel information, wherein M is a positive integer; and
a reservation module; configured to make a service reservation of N service apparatuses in the M service apparatuses, wherein N is a positive integer less than or equal to M, and a service apparatus that is successfully reserved in the N service apparatuses is configured to provide a vehicle service for the vehicle.
11 . The apparatus according to claim 10 , wherein the matching module is configured to:
determine, based on the path information and the energy consumption information, whether the vehicle meets a first condition; and
when the vehicle meets the first condition, determine the M service apparatuses, wherein
the first condition comprises at least one of the following:
a range that remaining energy of the vehicle supports the vehicle to travel is less than a traveling range for reaching a first target location indicated by the path information;
a remaining range of the vehicle is less than the traveling range for reaching the first target location indicated by the path information; and
remaining energy or a remaining range is less than or equal to a first threshold when the vehicle travels to a first location, wherein the first location is a location that the vehicle reaches before traveling to the first target location.
12 . The apparatus according to claim 11 , wherein the matching module is configured to
match the M service apparatuses within a first location range, wherein the first location range is a location range between a current location of the vehicle and the first location, and the remaining energy or the remaining range is less than or equal to the first threshold when the vehicle travels to the first location.
13 . The apparatus according to claim 12 , wherein the matching module is configured to:
determine, based on the path information and the energy consumption information, that remaining energy or a remaining range is less than or equal to the first threshold when the vehicle travels to the first target location indicated by the path information;
determine an allowed service time of the vehicle based on the travel plan information; and
determine the M service apparatuses based on the allowed service time of the vehicle.
14 . The apparatus according to claim 13 , wherein the matching module is configured to:
when the allowed service time is greater than or equal to a first time threshold, obtain the M service apparatuses through matching within a second location range of the vehicle service; or
when the allowed service time is less than or equal to a second time threshold, obtain the M service apparatuses through matching within a third location range of the vehicle service, wherein
the second location range is a location range between the current location of the vehicle and the first target location, and the third location range is a location range determined based on the first target location.
15 . The apparatus according to claim 14 , wherein both the first time threshold and the second time threshold are in a first proportional relationship with a travel time indicated by the travel plan information, and the travel time is a time required for the vehicle to reach the first target location indicated by the path information from the current location.
16 . The apparatus according to claim 10 , wherein the matching module is configured to:
determine, based on the path information and the energy consumption information, that remaining energy or a remaining range is greater than or equal to a second threshold when the vehicle travels to a first target location indicated by the path information;
determine, based on the travel plan information, whether a time interval between a time at which the vehicle reaches the first target location and a time at which the vehicle travels next time is greater than or equal to a third time threshold; and
when the time interval is greater than or equal to the third time threshold, determine the M service apparatuses.
17 . A reservation system, comprising a first apparatus and a second apparatus, wherein the first apparatus is a service reservation demander, and the second apparatus is a service reservation responder, wherein
the second apparatus sends a reservation request to the first apparatus, wherein the reservation request is used to request the first apparatus to make a service reservation based on travel information, and the travel information comprises path information, travel plan information, and energy consumption information;
the first apparatus determines M service apparatuses based on the travel information, wherein M is a positive integer; and
the first apparatus makes a service reservation of N service apparatuses in the M service apparatuses, wherein N is a positive integer less than or equal to M, and a service apparatus that is successfully reserved in the N service apparatuses is configured to provide a vehicle service for the vehicle.
18 . The system according to claim 17 , wherein the first apparatus is configured to:
determine, based on the path information and the energy consumption information, whether the vehicle meets a first condition; and
when the vehicle meets the first condition, determine the M service apparatuses, wherein
the first condition comprises at least one of the following:
a range that remaining energy of the vehicle supports the vehicle to travel is less than a traveling range for reaching a first target location indicated by the path information;
a remaining range of the vehicle is less than the traveling range for reaching the first target location indicated by the path information; and
remaining energy or a remaining range is less than or equal to a first threshold when the vehicle travels to a first location, wherein the first location is a location that the vehicle reaches before traveling to the first target location.
19 . The system according to claim 18 , wherein the first apparatus is configured to:
match the M service apparatuses within a first location range, wherein the first location range is a location range between a current location of the vehicle and the first location, and the remaining energy or the remaining range is less than or equal to the first threshold when the vehicle travels to the first location.
20 . The system according to claim 17 , wherein the first apparatus is configured to:
determine, based on the path information and the energy consumption information, that remaining energy or a remaining range is less than or equal to a first threshold when the vehicle travels to a first target location indicated by the path information;
determine an allowed service time of the vehicle based on the travel plan information; and
determine the M service apparatuses based on the allowed service time of the vehicle.