WO2015110041A1 - Route information acquiring method and terminal - Google Patents
Route information acquiring method and terminal Download PDFInfo
- Publication number
- WO2015110041A1 WO2015110041A1 PCT/CN2015/071323 CN2015071323W WO2015110041A1 WO 2015110041 A1 WO2015110041 A1 WO 2015110041A1 CN 2015071323 W CN2015071323 W CN 2015071323W WO 2015110041 A1 WO2015110041 A1 WO 2015110041A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- road
- contact track
- road information
- group
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
Definitions
- the present disclosure relates to information processing technologies, and in particular, to a route information acquiring method and terminal.
- An embodiment of the present disclosure provides a route information acquiring method, where the method includes:
- the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, acquire corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information.
- An embodiment of the present disclosure further provides a terminal, where the terminal includes: a touch display unit, an information processing unit, and a transceiver unit, where
- the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information, and receive and display route information;
- the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, and send the geographic coordinate set information corresponding to the contact track to a server;
- the touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each contact in the touch operation; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
- FIG. 3 is a schematic diagram of acquired route information according to an embodiment of the present disclosure.
- FIG. 6 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure.
- Step 101 Enter a track change mode after displaying map information, to acquire current contact track information.
- the entering a track change mode includes: after starting the map application, selecting, by the user, the track change mode according to a menu in the map application; and displaying, by the map application, the map information, and entering the track change mode.
- the track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
- the offline map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
- the current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
- geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
- the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
- Step 103 Acquire road information from the map information according to the geographic coordinate set information corresponding to the contact track, generate route information by using the road information, and display the route information.
- the geographic coordinate set information corresponding to the contact track is that shown as the dashed line, that is, the user selects a route from the point A to the point B through the point C
- all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track is grouped according to a record time sequence, where each group includes a specified number of pieces of longitude-latitude information;
- the method further includes: starting an electronic map application on the terminal to display, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
- the entering a track change mode includes: after starting the map application, selecting, by the user, the track change mode according to a menu in the map application; and displaying, by the map application, the map information, and entering the track change mode.
- the track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
- the contact track information may further include a record time of each location coordinate.
- the collecting location coordinates corresponding to a current contact may be: periodically collecting the location coordinates corresponding to the current contact, for example, performing one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
- the current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
- Step 403 The terminal receives route information from the server, and displays the route information.
- the finding, from map information stored by the server, one or more pieces of corresponding road information may include:
- Step 502 The server sends the route information.
- the server sends the route information to the corresponding terminal according to an identifier of the terminal that sends the geographic coordinate set information corresponding to the contact track.
- a method for acquiring the identifier of the terminal by the server and a method for sending the route information by the server both belong to the background art, and are not described herein in detail.
- a terminal provided in an embodiment of the present disclosure includes: a touch display unit and an information processing unit, where
- the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, acquire corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information.
- the touch display unit is further configured to: when an electronic map application is started, display, on a display interface according to an operation by a user, map information corresponding to an area in which a path to be planned by the user is located.
- the track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
- the information processing unit is further configured to store in advance offline map information, where the offline map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
- the offline map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
- the offline map information is existing information in the background art, and may include road information, area information, connection information, and the like
- the road information may include information such as a road name, a road grade, and a road long
- the touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each contact; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
- the contact track information may further include a record time of each location coordinate.
- the current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
- geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
- the information processing unit is specifically configured to group, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road connecting the two coordinate points, and generate route information after adding the road information to the joined road information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: entering a track change mode after displaying map information, to acquire current contact track information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: storing in advance offline map information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: sequentially collecting and recording, when detecting that a touch operation starts, location coordinates corresponding to a current contact; and using, when detecting that the touch operation ends, currently recorded location coordinates corresponding to all contacts as the current contact track information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: periodically collecting the location coordinates corresponding to the current contact, for example, performing one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: finding, from map information stored by the processor, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generating route information by using the one or more pieces of road information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: grouping, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information, and if not, extracting a next group as a current group until determining is completed on all groups; and joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information, and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
- the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information, and receive and display route information;
- the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, and send the geographic coordinate set information corresponding to the contact track to a server;
- the transceiver unit is configured to receive the route information from the server, and send the route information to the touch display unit.
- the touch display unit is further configured to: when an electronic map application is started, display, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
- the map information may be map information acquired by the terminal from the server when the terminal starts the electronic map application.
- the map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
- a path to be planned by the user is a path whose start point is a point A and end point is a point B
- a map including the point A and the point B needs to be displayed in a display area of a screen of the current terminal.
- the touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each current contact; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
- the contact track information may further include a record time of each location coordinate.
- the touch display unit is specifically configured to: periodically collect the location coordinates corresponding to the current contact, for example, perform one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
- the current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
- each piece of coordinate information among all coordinate information in the contact track information is matched with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, and all the longitude-latitude information is used as the geographic coordinate set information corresponding to the contact track.
- geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
- the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
- a terminal After acquiring an online map, a terminal sends, according to a requirement of a user, geographic coordinate set information corresponding to a route planned by the user; and in this way, route information that best meets the requirement of the user can be acquired.
- the integrated module and a unit thereof in the embodiments of the present disclosure may also be stored in a computer-readable storage medium.
- the computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or a part of the methods described in the embodiments of the present disclosure.
- an embodiment of the present disclosure further records a computer-readable storage medium, where the storage medium includes a group of instructions.
- the instructions When the instructions are executed, at least one processor is triggered to execute operations including: converting contact track information to geographic coordinate set information of a contact track; sending the geographic coordinate set information corresponding to the contact track; and when starting an electronic map application, displaying, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: entering a track change mode after displaying map information, to acquire current contact track information, converting the contact track information to geographic coordinate set information of a contact track, and sending the geographic coordinate set information corresponding to the contact track.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: when starting an electronic map application, displaying, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: sequentially collecting and recording, when detecting that a touch operation starts, location coordinates corresponding to a current contact; and using, when detecting that the touch operation ends, currently recorded location coordinates corresponding to all contacts as the current contact track information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: periodically collecting the location coordinates corresponding to the current contact.
- the processing unit is configured to: after receiving geographic coordinate set information corresponding to a contact track, acquire corresponding road information from map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information;
- the transceiver unit is configured to send, to the processing unit, the received geographic coordinate set information corresponding to the contact track, and send the route information sent by the processing unit.
- the processing unit is specifically configured to find, from the map information stored by the information processing unit, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generate route information by using the one or more pieces of road information.
- the processing unit is specifically configured to: for example, as shown in FIG. 3, when the geographic coordinate set information corresponding to the contact track is that shown as the dashed line, that is, a user selects a route from a point A to a point B through a point C, group, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road
- the server sends the route information to the corresponding terminal according to an identifier of the terminal that sends the geographic coordinate set information corresponding to the contact track.
- a method for acquiring the identifier of the terminal by the server and a method for sending the route information by the server both belong to the background art, and are not described herein in detail.
- the foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc.
- program code such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc.
- an embodiment of the present disclosure further records a computer-readable storage medium, where the storage medium includes a group of instructions.
- the instructions When the instructions are executed, at least one processor is triggered to execute operations including: after receiving geographic coordinate set information corresponding to a contact track, acquiring corresponding road information from map information according to the geographic coordinate set information corresponding to the contact track; generating route information by using the road information; and sending the route information.
- the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: grouping, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information, and if not, extracting a next group as a current group until determining is completed on all groups; and joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information, and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Automation & Control Theory (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
- Instructional Devices (AREA)
Abstract
The present disclosure discloses a route information acquiring method and terminal. The method includes : entering a track change mode after displaying map information, to acquire current contact track information; converting the contact track information to geographic coordinate set information corresponding to a contact track; and acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, generating route information by using the road information, and displaying the route information. By using the present disclosure, an optimal path can be provided for a user according to a requirement of the user.
Description
FIELD OF THE TECHNOLOGY
The present disclosure relates to information processing technologies, and in particular, to a route information acquiring method and terminal.
BACKGROUND OF THE DISCLOSURE
With the development of intelligent terminals, applications such as electronic maps make people's travels become increasingly convenient. As transportation develops rapidly nowadays, there are many routes from a point A of a city to a point B of the city. An electronic map can provide 2 to 3 major routes as navigation routes, and a policy for the electronic map to generate a navigation route is usually as follows: A road with few traffic lights is selected, or a shortest route between a start point and an end point is selected. However, a navigation route generated by using the foregoing policy sometimes is not an optimal path needed by a user.
It can be seen that the electronic map provided in the background art usually cannot completely meet a requirement of a user, and consequently cannot provide an optimal path for the user.
SUMMARY
To achieve the foregoing objective, the technical solutions of the present disclosure are implemented as follows:
An embodiment of the present disclosure provides a route information acquiring method, where the method includes:
entering a track change mode after displaying map information, to acquire current contact track information;
converting the contact track information to geographic coordinate set information corresponding to a contact track; and
acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, generating route information by using the road information, and displaying the route information.
In the foregoing solution, the acquiring current contact track information includes: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact in the touch operation; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
In the foregoing solution, the acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generating route information by using the road information includes:
grouping all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information;
sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information; and if not, extracting a next group as a current group until determining is completed on all groups; and
joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information; and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
An embodiment of the present disclosure further provides a route information acquiring method, where the method includes:
entering, by a terminal, a track change mode after displaying map information, to acquire current contact track information;
converting, by the terminal, the contact track information to geographic coordinate set information of a contact track, and sending the geographic coordinate set information corresponding to the contact track to a server; and
receiving, by the terminal, route information from the server, and displaying the route information.
In the foregoing solution, the acquiring current contact track information includes: sequentially collecting and recording, when detecting a touch operation, location
coordinates corresponding to each contact in the touch operation; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
An embodiment of the present disclosure provides a terminal, where the terminal includes: a touch display unit and an information processing unit, where
the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information; and
the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, acquire corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information.
In the foregoing solution, the touch display unit is specifically configured to: when detecting that a touch operation starts, sequentially collect and record location coordinates corresponding to a current contact in the touch operation; and when detecting that the touch operation ends, use currently recorded location coordinates corresponding to all contacts as the current contact track information.
In the foregoing solution, the information processing unit is specifically configured to group all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road connecting the two coordinate points, and generate route information after adding the road information to the joined road information.
An embodiment of the present disclosure further provides a terminal, where the terminal includes: a touch display unit, an information processing unit, and a transceiver unit, where
the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information, and receive and display route information;
the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, and send the geographic coordinate set information corresponding to the contact track to a server; and
the transceiver unit is configured to receive the route information from the server, and send the route information to the touch display unit.
In the foregoing solution, the touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each contact in the touch operation; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
FIG. 1 is a schematic flowchart of a route information acquiring method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a route from a start point to an end point in the background art;
FIG. 3 is a schematic diagram of acquired route information according to an embodiment of the present disclosure;
FIG. 4 is a schematic flowchart of a route information acquiring method on a terminal side according to an embodiment of the present disclosure;
FIG. 5 is a schematic flowchart of a route information acquiring method on a server side according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram 1 of a terminal according to an embodiment of the present disclosure;
FIG. 7 is a schematic structural diagram 2 of a terminal according to an embodiment of the present disclosure; and
FIG. 8 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
DESCRIPTION OF EMBODIMENTS
The following describes embodiments of the present disclosure in further detail with reference to the accompanying drawings and specific embodiments.
A terminal, as used herein, may refer to any appropriate user terminal with certain computing capabilities, such as a personal computer (PC) , a work station computer, a hand-held computing device (tablet) , a mobile terminal (amobile phone or a smart phone) , a smart terminal, or any other user-side computing device. A server, as used herein, may refer to one or more server computers configured to provide certain server functionalities. A server may also include one or more processors to execute computer programs in parallel.
As shown in FIG. 1, a route information acquiring method provided in an embodiment of the present disclosure includes the following steps:
Step 101: Enter a track change mode after displaying map information, to acquire current contact track information.
Herein, before the displaying map information, the method further includes: starting an electronic map application on a terminal to display, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
The entering a track change mode includes: after starting the map application, selecting, by the user, the track change mode according to a menu in the map application; and displaying, by the map application, the map information, and entering the track change mode. The track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
The map information may be offline map information stored in the terminal in advance.
The offline map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
For example, as shown in FIG. 2, when a path to be planned by the user is a path whose start point is a point A and end point is a point B, a map including the point A and the point B needs to be displayed in a display area of a screen of the current terminal.
The acquiring current contact track information includes: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the contact track information may further include a record time of each location coordinate.
The collecting location coordinates corresponding to a current contact may be: periodically collecting the location coordinates corresponding to the current contact, for example, performing one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
The current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
Step 102: Convert the contact track information to geographic coordinate set information of a contact track.
Specifically, each piece of coordinate information among all coordinate information in the contact track information is matched with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, and all the longitude-latitude information is used as the geographic coordinate set information corresponding to the contact track.
For example, geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
In some embodiments, the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
Step 103: Acquire road information from the map information according to the geographic coordinate set information corresponding to the contact track, generate route information by using the road information, and display the route information.
Specifically, for example, as shown in FIG. 3, when the geographic coordinate set information corresponding to the contact track is that shown as the dashed line, that is, the user selects a route from the point A to the point B through the point C, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track is grouped according to a record time sequence, where each group includes a specified number of pieces of longitude-latitude information;
a group is sequentially extracted as a current group, it is determined whether the current group has one or more pieces of corresponding road information, and if yes, the one or more pieces of road information is extracted; and if not, a next group is extracted as a current group until determining is completed on all groups; and
all extracted road information is joined to obtain joined road information, it is determined whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, route information is generated by using the joined road information; and if yes, information of a road connecting the two coordinate points is selected from the map information, and route information is generated after the road information is added to the joined road information.
It can be seen that by using the foregoing method, a problem in the background art that route planning cannot be performed according to a user requirement during planning of route information can be solved, and a user can acquire an optimal path that meets a requirement of the user, thereby improving user experience.
Embodiment 2
As shown in FIG. 4, an operation process, on a terminal side, of a route information acquiring method provided in an embodiment of the present disclosure includes the following steps:
Step 401: A terminal enters a track change mode after displaying map information, to acquire current contact track information.
Herein, before the displaying map information, the method further includes: starting an electronic map application on the terminal to display, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
The entering a track change mode includes: after starting the map application, selecting, by the user, the track change mode according to a menu in the map application; and displaying, by the map application, the map information, and entering the track change mode. The track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
The map information may be map information acquired by the terminal from a server when the terminal starts the electronic map application.
The map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
For example, as shown in FIG. 2, when a path to be planned by the user is a path whose start point is a point A and end point is a point B, a map including the point A and the point B needs to be displayed in a display area of a screen of the current terminal.
The acquiring current contact track information includes: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the contact track information may further include a record time of each location coordinate.
The collecting location coordinates corresponding to a current contact may be: periodically collecting the location coordinates corresponding to the current contact, for example, performing one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
The current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
Step 402: The terminal converts the contact track information to geographic coordinate set information of a contact track, and sends the geographic coordinate set information corresponding to the contact track to a server.
Specifically, each piece of coordinate information among all coordinate information in the contact track information is matched with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, all the longitude-latitude information is used as the geographic coordinate set information corresponding to the contact track, and the geographic coordinate set information corresponding to the contact track is sent to the server.
For example, geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
In embodiments, the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
Step 403: The terminal receives route information from the server, and displays the route information.
It can be seen that by using the foregoing method, after acquiring an online map, a terminal sends, according to a requirement of a user, geographic coordinate set information corresponding to a route planned by the user; and in this way, route information that best meets the requirement of the user can be acquired.
As shown in FIG. 5, an operation process, on a server side, of a route information acquiring method provided in an embodiment of the present disclosure includes the following steps:
Step 501: After receiving geographic coordinate set information corresponding to a contact track, a server acquires corresponding road information from map information according to the geographic coordinate set information corresponding to the contact track, and generates route information by using the road information.
Specifically, the server finds, from map information stored by the server, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generates route information by using the one or more pieces of road information.
Herein, the finding, from map information stored by the server, one or more pieces of corresponding road information may include:
for example, as shown in FIG. 3, when the geographic coordinate set information corresponding to the contact track is that shown as the dashed line, that is, a user selects a route from a point A to a point B through a point C, grouping, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information;
sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information; and if not, extracting a next group as a current group until determining is completed on all groups; and
joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information; and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
Step 502: The server sends the route information.
Herein, the server sends the route information to the corresponding terminal according to an identifier of the terminal that sends the geographic coordinate set information corresponding to the contact track. A method for acquiring the identifier of the terminal by the server and a method for sending the route information by the server both belong to the background art, and are not described herein in detail.
It can be seen that by using the foregoing method, a problem in the background art that route planning cannot be performed according to a user requirement during planning of route information can be solved, and a user can acquire an optimal path that meets a requirement of the user, thereby improving user experience.
As shown in FIG. 6, a terminal provided in an embodiment of the present disclosure includes: a touch display unit and an information processing unit, where
the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information; and
the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, acquire corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information.
The touch display unit is further configured to: when an electronic map application is started, display, on a display interface according to an operation by a user, map information corresponding to an area in which a path to be planned by the user is located. The track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
The information processing unit is further configured to store in advance offline map information, where the offline map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area. For example, as shown in FIG. 2, when a path to be planned by the user is a path whose start point is a point A and end point is a point B, a map including the point A and the point B needs to be displayed in a display area of a screen of the current terminal.
The touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each contact; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the contact track information may further include a record time of each location coordinate.
The touch display unit is specifically configured to: periodically collect location coordinates corresponding to a current contact, for example, perform one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
The current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A
through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
The information processing unit is specifically configured to match each piece of coordinate information among all coordinate information in the contact track information with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, and use all the longitude-latitude information as the geographic coordinate set information corresponding to the contact track.
For example, geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
In some embodiments, the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
The information processing unit is specifically configured to find, from the map information stored by the information processing unit, one or more pieces of corresponding matched road information according to all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generate route information by using the one or more pieces of road information.
The information processing unit is specifically configured to group, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road connecting the two coordinate points, and generate route information after adding the road information to the joined road information.
It can be seen that by using the foregoing method, a problem in the background art that route planning cannot be performed according to a user requirement during planning of route
information can be solved, and a user can acquire an optimal path that meets a requirement of the user, thereby improving user experience.
When implemented in a form of a software functional module and sold or used as an independent product, the integrated module and a unit thereof in the embodiments of the present disclosure may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present disclosure essentially, or the part contributing to the background art may be implemented in a form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or a part of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM) , a random access memory (RAM) , a magnetic disk, or an optical disc. In this way, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present disclosure further records a computer-readable storage medium, where the storage medium includes a group of instructions. When the instructions are executed, at least one processor is triggered to execute operations including: entering a track change mode after displaying map information, to acquire current contact track information; converting the contact track information to geographic coordinate set information corresponding to a contact track; and acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, generating route information by using the road information, and displaying the route information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: entering a track change mode after displaying map information, to acquire current contact track information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: converting the contact track information to geographic coordinate set information of a contact track, acquiring corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generating route information by using the road information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: when starting an electronic map application, displaying, on a display interface according to an operation by a user, map information corresponding to an area in which a path to be planned by the user is located.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: storing in advance offline map information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: sequentially collecting and recording, when detecting that a touch operation starts, location coordinates corresponding to a current contact; and using, when detecting that the touch operation ends, currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: periodically collecting the location coordinates corresponding to the current contact, for example, performing one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: matching each piece of coordinate information among all coordinate information in the contact track information with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, and using all the longitude-latitude information as the geographic coordinate set information corresponding to the contact track.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: finding, from map information stored by the processor, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generating route information by using the one or more pieces of road information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: grouping,
according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information, and if not, extracting a next group as a current group until determining is completed on all groups; and joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information, and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
Embodiment 4
As shown in FIG. 7, a terminal provided by an embodiment of the present disclosure may include: a touch display unit, an information processing unit, and a transceiver unit, where
the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information, and receive and display route information;
the information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, and send the geographic coordinate set information corresponding to the contact track to a server; and
the transceiver unit is configured to receive the route information from the server, and send the route information to the touch display unit.
The touch display unit is further configured to: when an electronic map application is started, display, on a display interface, map information corresponding to an area in which a path to be planned by a user is located. The map information may be map information acquired by the terminal from the server when the terminal starts the electronic map application. The map information is existing information in the background art, and may include road information, area information, connection information, and the like, where the road information may include information such as a road name, a road grade, and a road longitude-latitude coordinate string; and the area information may include information such as an area name, and a longitude-latitude coordinate string corresponding to each location in an area.
The track change mode is a mode in which the map information is unchanged, a touch operation of the user is received, and coordinate information obtained by using the touch operation of the user is used as route selection information.
For example, as shown in FIG. 2, when a path to be planned by the user is a path whose start point is a point A and end point is a point B, a map including the point A and the point B needs to be displayed in a display area of a screen of the current terminal.
The touch display unit is specifically configured to: when detecting a touch operation, sequentially collect and record location coordinates corresponding to each current contact; and use currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the contact track information may further include a record time of each location coordinate.
The touch display unit is specifically configured to: periodically collect the location coordinates corresponding to the current contact, for example, perform one operation of collecting location coordinates corresponding to a contact during each clock cycle, where the location coordinates are collected coordinates of the current contact on a touch screen.
The current contact track information acquired in this embodiment may be that shown as a dashed line in FIG. 3. Specifically, when needing to reach a point B from a point A through a point C, the user may select a route from the point A to the point C on the screen, and then selects a route from the point C to the point B, so as to finally obtain the contact track information shown as the dashed line in FIG. 3.
Specifically, each piece of coordinate information among all coordinate information in the contact track information is matched with longitude-latitude information of a currently displayed map area to obtain longitude-latitude information corresponding to all the coordinate information, and all the longitude-latitude information is used as the geographic coordinate set information corresponding to the contact track.
For example, geographic coordinate set information corresponding to a contact track to be selected by the user is determined according to the contact track information shown as the dashed line in FIG. 3.
In some embodiments, the geographic coordinate set information corresponding to the contact track not only includes the longitude-latitude information, but also may include a record time corresponding to each piece of longitude-latitude information.
It can be seen that, after acquiring an online map, a terminal sends, according to a requirement of a user, geographic coordinate set information corresponding to a route planned by the user; and in this way, route information that best meets the requirement of the user can be acquired.
When implemented in a form of a software functional module and sold or used as an independent product, the integrated module and a unit thereof in the embodiments of the present disclosure may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present disclosure essentially, or the part contributing to the background art may be implemented in a form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or a part of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc. In this way, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present disclosure further records a computer-readable storage medium, where the storage medium includes a group of instructions. When the instructions are executed, at least one processor is triggered to execute operations including: converting contact track information to geographic coordinate set information of a contact track; sending the geographic coordinate set information corresponding to the contact track; and when starting an electronic map application, displaying, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: entering a track change mode after displaying map information, to acquire current contact track information, converting the contact track information to geographic coordinate set information of a contact track, and sending the geographic coordinate set information corresponding to the contact track.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: when starting an electronic map application, displaying, on a display interface, map information corresponding to an area in which a path to be planned by a user is located.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: sequentially collecting and recording, when detecting that a touch operation starts, location coordinates corresponding to a current contact; and using, when detecting that the touch operation ends, currently recorded location coordinates corresponding to all contacts as the current contact track information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operation, where the operation includes: periodically collecting the location coordinates corresponding to the current contact.
In some embodiments, the foregoing terminal may be further used together with a server in an embodiment of the present disclosure. As shown in FIG. 8, the server may include: a processing unit and a transceiver unit, where
the processing unit is configured to: after receiving geographic coordinate set information corresponding to a contact track, acquire corresponding road information from map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information; and
the transceiver unit is configured to send, to the processing unit, the received geographic coordinate set information corresponding to the contact track, and send the route information sent by the processing unit.
The processing unit is specifically configured to find, from the map information stored by the information processing unit, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generate route information by using the one or more pieces of road information.
The processing unit is specifically configured to: for example, as shown in FIG. 3, when the geographic coordinate set information corresponding to the contact track is that shown as the dashed line, that is, a user selects a route from a point A to a point B through a point C, group, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join
all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road connecting the two coordinate points, and generate route information after adding the road information to the joined road information.
Herein, the server sends the route information to the corresponding terminal according to an identifier of the terminal that sends the geographic coordinate set information corresponding to the contact track. A method for acquiring the identifier of the terminal by the server and a method for sending the route information by the server both belong to the background art, and are not described herein in detail.
It can be seen that, a problem in the background art that route planning cannot be performed according to a user requirement during planning of route information can be solved, and a user can acquire an optimal path that meets a requirement of the user, thereby improving user experience.
When implemented in a form of a software functional module and sold or used as an independent product, the integrated module and a unit thereof in the embodiments of the present disclosure may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present disclosure essentially, or the part contributing to the background art may be implemented in a form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, a network device, or the like) to perform all or a part of the methods described in the embodiments of the present disclosure. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disc. In this way, the embodiments of the present disclosure are not limited to any specific combination of hardware and software.
Correspondingly, an embodiment of the present disclosure further records a computer-readable storage medium, where the storage medium includes a group of instructions. When the instructions are executed, at least one processor is triggered to execute operations including: after receiving geographic coordinate set information corresponding to a contact track, acquiring corresponding road information from map information according to the geographic coordinate set information corresponding to the contact track; generating route information by using the road information; and sending the route information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: finding, from map information stored by the processor, one or more pieces of corresponding matched road information according to all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, and generating route information by using the one or more pieces of road information.
In some embodiments, the storage medium further includes an instruction that triggers at least one processor to execute the following operations, where the operations include: grouping, according to a record time sequence, all the longitude-latitude information in the geographic coordinate set information corresponding to the contact track, where each group includes a specified number of pieces of longitude-latitude information; sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information, and if not, extracting a next group as a current group until determining is completed on all groups; and joining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information, and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
The foregoing descriptions are merely preferred embodiments of the present disclosure, and are not intended to limit the protection scope of the present disclosure.
Claims (11)
- A route information acquiring method, comprising:at a terminal comprising at least one processor and a memory;entering a track change mode after displaying map information, to acquire current contact track information;converting the contact track information to geographic coordinate set information corresponding to a contact track;acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, generating route information by using the road information; anddisplaying the route information.
- The method according to claim 1, wherein the acquiring current contact track information comprises: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact in the touch operation; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
- The method according to claim 1, wherein the acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generating route information by using the road information comprises:grouping all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, wherein each group comprises a specified number of pieces of longitude-latitude information;sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information; and if not, extracting a next group as a current group until determining is completed on all groups; andjoining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information; and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
- A route information acquiring method, wherein the method comprises:entering, by a terminal, a track change mode after displaying map information, to acquire current contact track information;converting, by the terminal, the contact track information to geographic coordinate set information of a contact track, and sending the geographic coordinate set information corresponding to the contact track to a server; andreceiving, by the terminal, route information from the server, and displaying the route information.
- The method according to claim 4, wherein the acquiring current contact track information comprises: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact in the touch operation; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
- A terminal, comprising:one or more processors;memory; andone or more units stored in the memory and to be executed by the one or more processors, the one or more units comprising:the touch display unit is configured to: enter a track change mode after displaying map information, to acquire current contact track information; andthe information processing unit is configured to convert the contact track information to geographic coordinate set information of a contact track, acquire corresponding road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generate route information by using the road information.
- The terminal according to claim 6, wherein the touch display unit is specifically configured to: when detecting that a touch operation starts, sequentially collect and record location coordinates corresponding to a current contact in the touch operation; and when detecting that the touch operation ends, use currently recorded location coordinates corresponding to all contacts as the current contact track information.
- The terminal according to claim 6, wherein the information processing unit is specifically configured to group all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, wherein each group comprises a specified number of pieces of longitude-latitude information; sequentially extract a group as a current group, determine whether the current group has one or more pieces of corresponding road information, and if yes, extract the one or more pieces of road information, and if not, extract a next group as a current group until determining is completed on all groups; and join all extracted road information to obtain joined road information, determine whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generate route information by using the joined road information, and if yes, select, from the map information, information of a road connecting the two coordinate points, and generate route information after adding the road information to the joined road information.
- A computer-readable storage medium storing a group of instructions, when the instructions being executed, at least one processor being triggered to execute operations comprising:entering a track change mode after displaying map information, to acquire current contact track information;converting the contact track information to geographic coordinate set information corresponding to a contact track;acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, generating route information by using the road information; anddisplaying the route information.
- The computer-readable storage medium according to claim 9, wherein the acquiring current contact track information comprises: sequentially collecting and recording, when detecting a touch operation, location coordinates corresponding to each contact in the touch operation; and using currently recorded location coordinates corresponding to all contacts as the current contact track information.
- The computer-readable storage medium according to claim 9, wherein the acquiring road information from the map information according to the geographic coordinate set information corresponding to the contact track, and generating route information by using the road information comprises:grouping all longitude-latitude information in the geographic coordinate set information corresponding to the contact track, wherein each group comprises a specified number of pieces of longitude-latitude information;sequentially extracting a group as a current group, determining whether the current group has one or more pieces of corresponding road information, and if yes, extracting the one or more pieces of road information; and if not, extracting a next group as a current group until determining is completed on all groups; andjoining all extracted road information to obtain joined road information, determining whether any two coordinate points having no corresponding road information exist between a start point and an end point of the joined road information, and if not, generating route information by using the joined road information; and if yes, selecting, from the map information, information of a road connecting the two coordinate points, and generating route information after adding the road information to the joined road information.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410033897.8 | 2014-01-23 | ||
CN201410033897.8A CN104808932B (en) | 2014-01-23 | 2014-01-23 | Route information acquisition method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015110041A1 true WO2015110041A1 (en) | 2015-07-30 |
Family
ID=53680826
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/071323 WO2015110041A1 (en) | 2014-01-23 | 2015-01-22 | Route information acquiring method and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104808932B (en) |
WO (1) | WO2015110041A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108828643A (en) * | 2018-04-25 | 2018-11-16 | 长安大学 | A kind of indoor and outdoor seamless positioning system and method based on grey forecasting model |
CN112677763A (en) * | 2020-12-28 | 2021-04-20 | 广州小马慧行科技有限公司 | Automatic driving vehicle journey planning processing method and device and vehicle-mounted terminal |
CN113761618A (en) * | 2021-08-03 | 2021-12-07 | 武汉光庭信息技术股份有限公司 | 3D simulation road network automation construction method and system based on real data |
CN115077527A (en) * | 2022-05-27 | 2022-09-20 | 合众新能源汽车有限公司 | Positioning information sending method, positioning track drawing method and positioning system |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106446083A (en) * | 2016-09-09 | 2017-02-22 | 珠海市魅族科技有限公司 | Route indication method and mobile terminal |
CN106484907A (en) * | 2016-10-24 | 2017-03-08 | 重庆联导金宏实业有限公司 | Based on the fast search display methods of engine map, device and engine map |
CN111368218A (en) * | 2020-02-25 | 2020-07-03 | 深圳市口袋网络科技有限公司 | Display method, device, terminal and computer storage medium |
CN111896023B (en) * | 2020-06-30 | 2022-08-09 | 汉海信息技术(上海)有限公司 | Navigation route generation method, user side, server side, device and storage medium |
WO2022141506A1 (en) * | 2020-12-31 | 2022-07-07 | 华为技术有限公司 | Method for constructing simulation scene, simulation method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1948908A (en) * | 2005-10-12 | 2007-04-18 | 深圳市融进科技有限公司 | Navigation method and system based on cell phone |
CN101113903A (en) * | 2006-07-28 | 2008-01-30 | 佛山市顺德区顺达电脑厂有限公司 | Map data correcting navigation information method with identifying information and device |
CN101319900A (en) * | 2007-06-08 | 2008-12-10 | 杨爱国 | Method for implementing navigation by photograph based on mobile phone |
CN101319906A (en) * | 2007-06-08 | 2008-12-10 | 爱信艾达株式会社 | Navigation apparatus and program |
CN102080964A (en) * | 2009-12-01 | 2011-06-01 | 汤贻芸 | Intelligent navigation method and system for automatically determining navigation destination address |
CN103364001A (en) * | 2012-03-27 | 2013-10-23 | 哈尔滨工业大学深圳研究生院 | Intelligent GPS (global position system) route planning system and method based on cloud service |
CN103424121A (en) * | 2013-08-27 | 2013-12-04 | 深圳市卡讯尔车联网科技开发有限公司 | Vehicle navigation method and system based on cloud server |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5182158B2 (en) * | 2009-03-04 | 2013-04-10 | 株式会社デンソー | Navigation device |
TWI362483B (en) * | 2009-04-23 | 2012-04-21 | Htc Corp | Method, system and computer program product for reporting route |
CN102829793A (en) * | 2011-06-16 | 2012-12-19 | 环达电脑(上海)有限公司 | Navigation device and control method thereof |
CN102915348B (en) * | 2012-09-27 | 2015-09-09 | 北京百度网讯科技有限公司 | Recommend the method and system of search information to user in map |
CN103471606B (en) * | 2013-08-27 | 2016-08-10 | 深圳市凯立德科技股份有限公司 | Air navigation aid and navigator |
-
2014
- 2014-01-23 CN CN201410033897.8A patent/CN104808932B/en active Active
-
2015
- 2015-01-22 WO PCT/CN2015/071323 patent/WO2015110041A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1948908A (en) * | 2005-10-12 | 2007-04-18 | 深圳市融进科技有限公司 | Navigation method and system based on cell phone |
CN101113903A (en) * | 2006-07-28 | 2008-01-30 | 佛山市顺德区顺达电脑厂有限公司 | Map data correcting navigation information method with identifying information and device |
CN101319900A (en) * | 2007-06-08 | 2008-12-10 | 杨爱国 | Method for implementing navigation by photograph based on mobile phone |
CN101319906A (en) * | 2007-06-08 | 2008-12-10 | 爱信艾达株式会社 | Navigation apparatus and program |
CN102080964A (en) * | 2009-12-01 | 2011-06-01 | 汤贻芸 | Intelligent navigation method and system for automatically determining navigation destination address |
CN103364001A (en) * | 2012-03-27 | 2013-10-23 | 哈尔滨工业大学深圳研究生院 | Intelligent GPS (global position system) route planning system and method based on cloud service |
CN103424121A (en) * | 2013-08-27 | 2013-12-04 | 深圳市卡讯尔车联网科技开发有限公司 | Vehicle navigation method and system based on cloud server |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108828643A (en) * | 2018-04-25 | 2018-11-16 | 长安大学 | A kind of indoor and outdoor seamless positioning system and method based on grey forecasting model |
CN108828643B (en) * | 2018-04-25 | 2022-04-29 | 长安大学 | Indoor and outdoor seamless positioning system and method based on grey prediction model |
CN112677763A (en) * | 2020-12-28 | 2021-04-20 | 广州小马慧行科技有限公司 | Automatic driving vehicle journey planning processing method and device and vehicle-mounted terminal |
CN113761618A (en) * | 2021-08-03 | 2021-12-07 | 武汉光庭信息技术股份有限公司 | 3D simulation road network automation construction method and system based on real data |
CN113761618B (en) * | 2021-08-03 | 2024-04-16 | 武汉光庭信息技术股份有限公司 | Real data-based automatic construction method and system for 3D simulation road network |
CN115077527A (en) * | 2022-05-27 | 2022-09-20 | 合众新能源汽车有限公司 | Positioning information sending method, positioning track drawing method and positioning system |
Also Published As
Publication number | Publication date |
---|---|
CN104808932A (en) | 2015-07-29 |
CN104808932B (en) | 2020-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015110041A1 (en) | Route information acquiring method and terminal | |
JP6188674B2 (en) | Method and apparatus for pushing trajectory information | |
US11009360B2 (en) | Method, apparatus and storage medium for determining navigation reference point, navigation method, apparatus and storage medium | |
RU2636270C2 (en) | Method and device of navigation | |
CN104535071B (en) | A kind of phonetic navigation method and device | |
WO2011123421A1 (en) | Trusted maps: updating map locations using trust-based social graphs | |
US10900802B2 (en) | Map based navigation method, apparatus, storage medium and equipment | |
US20200168211A1 (en) | Information Processing Method, Server, Terminal, and Information Processing System | |
WO2015172359A1 (en) | Object search method and apparatus | |
CN111490927B (en) | Method, device and equipment for displaying message | |
WO2016127695A1 (en) | Position information sharing method and system | |
CN104090921A (en) | Multi-media file playing method and device as well as terminal and server | |
CN110619027A (en) | House source information recommendation method and device, terminal equipment and medium | |
CN106899929A (en) | A kind of signal search methods, devices and systems | |
CN102291419B (en) | The supplying method of navigation information system and navigation information | |
WO2017024684A1 (en) | User behavioral intent acquisition method, device and equipment, and computer storage medium | |
CN104392156A (en) | Processing method for interface unlocking | |
JP2018132906A (en) | Information processing server, client and information processing system | |
JP5370522B2 (en) | Information processing apparatus, information processing system, and program | |
KR101542477B1 (en) | Method, apparatus, and terminal device for generating and processing information | |
US11553052B2 (en) | Information processing apparatus, system, and in-vehicle device | |
CN105188154B (en) | A kind of method, apparatus and system being automatically brought into operation smart machine | |
US10459936B2 (en) | Information search method and apparatus | |
CN116033544A (en) | Indoor parking lot positioning method, computer device, storage medium and program product | |
CN104360801A (en) | Terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15739936 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23/12/2016) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15739936 Country of ref document: EP Kind code of ref document: A1 |