Navigation method, electronic device, and computer-readable storage medium
View Patent ↗A navigation method includes obtaining an initial navigation route, receiving a route erasing operation, and erasing a target section according to the route erasing operation. The target section includes at least a part of the initial navigation route corresponding to the route erasing operation. The method further includes determining a target navigation route according to the initial navigation route and the target section, and controlling an electronic device to perform navigation according to the target navigation route.
1 . A navigation method comprising:
obtaining an initial navigation route;
receiving a route erasing operation;
erasing a target section according to the route erasing operation, the target section including at least a part of the initial navigation route corresponding to the route erasing operation, the target section includes a first endpoint and a second endpoint, the second endpoint being farther away from a starting point of the initial navigation route than the first endpoint;
determining a supplementary section and a starting point of the supplementary section according to a supplementary section drawing operation;
determining a target navigation route according to the initial navigation route, the target section, the supplementary section, and the starting point of the supplementary section, including:
in response to determining that the starting point of the supplementary section includes the first endpoint, re-determining an end point of the supplementary section as the first endpoint;
in response to determining that the starting point of the supplementary section includes the second endpoint, re-determining the end point of the supplementary section as the second endpoint;
in response to determining that the starting point of the supplementary section includes the starting point of the initial navigation route, re-determining the end point of the supplementary section as the starting point of the initial navigation route; or
in response to determining that the starting point of the supplementary section includes an end point of the initial navigation route, re-determining the end point of the supplementary section as the end point of the initial navigation route; and
controlling an electronic device to perform navigation according to the target navigation route.
2 . The method according to claim 1 , wherein erasing the target section according to the route erasing operation includes:
determining the at least a part of the initial navigation route corresponding to the route erasing operation as the target section; and
controlling the electronic device to erase the target section.
3 . The method according to claim 2 , further comprising:
determining a map area corresponding to the route erasing operation;
wherein determining the at least a part of the initial navigation route corresponding to the route erasing operation as the target section includes:
determining at least a part of the initial navigation route covered by the map area corresponding to the route erasing operation as the target section.
4 . The method according to claim 3 , wherein determining the at least a part of the initial navigation route covered by the map area corresponding to the route erasing operation as the target section includes:
in response to the map area covering a plurality of parts of the initial navigation route, determining the target section from the plurality of parts of the initial navigation route according to the route erasing operation.
5 . The method according to claim 4 , wherein the target section is closer to the starting point or an end point of the initial navigation route than one of the plurality of parts of the initial navigation route other than the target section.
6 . The method according to claim 4 , wherein:
the route erasing operation is a sliding operation; and
the target section is one of the plurality of initial navigation route covered by the map area corresponding to the route erasing operation.
7 . The method according to claim 1 , further comprising:
obtaining a position of a user performing the erasing operation;
wherein controlling the electronic device to perform navigation according to the target navigation route includes controlling the electronic device to perform navigation according to the position of the user and the target navigation route.
8 . The method according to claim 7 , wherein controlling the electronic device to perform navigation according to the position of the user and the target navigation route includes:
in response to determining, according to the position of the user, that the user is located at an unerased section, controlling the electronic device to perform navigation according to route information of the unerased section, the unerased section being a part of the initial navigation route other than the target section.
9 . The method according to claim 7 , wherein:
controlling the electronic device to perform navigation based on the position of the user and the target navigation route includes:
in response to determining, according to the position of the user, that the user arrives at the first endpoint, controlling the electronic device to perform navigation based on a direction of the second endpoint.
10 . The method according to claim 7 , wherein:
controlling the electronic device to perform navigation based on the position of the user and the target navigation route includes:
in response to determining, according to the position of the user, that the user arrives at the second endpoint, controlling the electronic device to perform route navigation.
11 . The method according to claim 1 , further comprising:
receiving the supplementary section drawing operation.
12 . The method according to claim 1 , further comprising:
in response to the target section including the starting point of the initial navigation route, re-determining the second endpoint as the starting point of the initial navigation route; or
in response to the target section including the end point of the initial navigation route, re-determining the first endpoint as the end point of the initial navigation route.
13 . An electronic device comprising:
at least one memory storing at least one computer program; and
at least one processor configured to execute the at least one computer program to:
obtain an initial navigation route;
receive a route erasing operation;
erase a target section according to the route erasing operation, the target section including at least a part of the initial navigation route corresponding to the route erasing operation, the target section includes a first endpoint and a second endpoint, the second endpoint being farther away from a starting point of the initial navigation route than the first endpoint;
determine a supplementary section and a starting point of the supplementary section according to a supplementary section drawing operation;
determine a target navigation route according to the initial navigation route, the target section, the supplementary section, and the starting point of the supplementary section, including:
in response to determining that the starting point of the supplementary section includes the first endpoint, re-determining an end point of the supplementary section as the first endpoint;
in response to determining that the starting point of the supplementary section includes the second endpoint, re-determining the end point of the supplementary section as the second endpoint;
in response to determining that the starting point of the supplementary section includes the starting point of the initial navigation route, re-determining the end point of the supplementary section as the starting point of the initial navigation route; or
in response to determining that the starting point of the supplementary section includes an end point of the initial navigation route, re-determining the end point of the supplementary section as the end point of the initial navigation route; and
control the electronic device to perform navigation according to the target navigation route.
14 . The electronic device according to claim 13 , wherein the at least one processor is further configured to execute the at least one computer program to:
determine the at least a part of the initial navigation route corresponding to the route erasing operation as the target section; and
control the electronic device to erase the target section.
15 . The electronic device according to claim 14 , wherein:
the at least one processor is further configured to execute the at least one computer program to:
determine a map area corresponding to the route erasing operation; and
wherein determining the at least a part of the initial navigation route corresponding to the route erasing operation as the target section includes:
determining at least a part of the initial navigation route covered by the map area corresponding to the route erasing operation as the target section.
16 . The electronic device according to claim 15 , wherein the at least one processor is further configured to execute the at least one computer program to:
in response to the map area covering a plurality of parts of the initial navigation route, determine the target section from the plurality of parts of the initial navigation route according to the route erasing operation.
17 . The electronic device according to claim 16 , wherein the target section is closer to the starting point or an end point of the initial navigation route than one of the plurality of parts of the initial navigation route other than the target section.
18 . The electronic device according to claim 16 , wherein:
the route erasing operation is a sliding operation; and
the target section is one of the plurality of initial navigation route covered by the map area corresponding to the route erasing operation.
19 . A non-transitory computer readable storage medium storing at least one computer program that, when executed by at least one processor, causes the at least one processor to perform the method according to claim 1 .
20 . A navigation method comprising:
obtaining an initial navigation route;
receiving a route erasing operation;
erasing a target section according to the route erasing operation, the target section including at least a part of the initial navigation route corresponding to the route erasing operation, the target section includes a first endpoint and a second endpoint, the second endpoint being farther away from a starting point of the initial navigation route than the first endpoint;
receiving a supplementary section drawing operation;
determining a supplementary section and a starting point of the supplementary section according to the supplementary section drawing operation;
determining a target navigation route according to the initial navigation route, the target section, the supplementary section, and the starting point of the supplementary section, including:
in response to determining that the starting point of the supplementary section includes the first endpoint, re-determining an end point of the supplementary section as the first endpoint;
in response to determining that the starting point of the supplementary section includes the second endpoint, re-determining the end point of the supplementary section as the second endpoint;
in response to determining that the starting point of the supplementary section includes the starting point of the initial navigation route, re-determining the end point of the supplementary section as the starting point of the initial navigation route; or
in response to determining that the starting point of the supplementary section includes an end point of the initial navigation route, re-determining the end point of the supplementary section as the end point of the initial navigation route; and
controlling an electronic device to perform navigation according to the target navigation route.