The application is a divisional application of invention patents with application numbers of 201310157571.1, application dates of 2013, 4 and 28 months and invention names of navigation method, navigation device, terminal, server and navigation system
Example two
Referring to fig. 3, a flowchart of a navigation method according to a second embodiment of the present invention is shown. The navigation method can be used in a terminal comprising a camera and a plurality of sensors, and the terminal can be a smart phone, a tablet computer, an electronic book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, MPEG Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, MPEG Audio Layer 3), a laptop computer, and the like. The navigation method comprises the following steps:
step 301, acquiring a position parameter of a target position;
the terminal provides real-time street view navigation service for the user. After the user initiates the service, the terminal may ask the user to input the target location. At this time, the present step may include the following sub-steps:
firstly, receiving attribute information of a target position of character input or voice input;
if the user inputs the attribute information of the target position in a character mode through a physical keyboard or a virtual keyboard, the terminal receives the attribute information of the target position input through characters;
if the user inputs the attribute information of the target position in a voice mode through the microphone, the terminal receives the attribute information of the target position input in the voice mode, and then the voice signal is recognized as corresponding character information through a voice recognition technology.
The attribute information of the target location is usually the name of the target location, and may be other description information with unique identification.
Secondly, inquiring interest points corresponding to the target position according to the attribute information of the target position;
the terminal can be pre-cached with a POI information base, and after obtaining the attribute information of the target position, the terminal queries the interest point corresponding to the target position in the POI information base according to the attribute information. If the interest point corresponding to the target position is not found, the terminal may require the user to re-input the attribute information of the target position.
Thirdly, the longitude and latitude information in the inquired interest points corresponding to the target position is used as the position parameters of the target position;
and when the terminal inquires the POI corresponding to the target position, using the longitude and latitude information in the POI corresponding to the target position as the position parameter of the target position.
It should be noted that, when the user starts the real-time street view navigation service, the terminal may start to collect and display the real-time street view image. Of course, the terminal may start to acquire and display the real-time street view image after starting the navigation, which is not limited to this.
Step 302, acquiring a position parameter of a terminal;
different from the position parameter of the target position, the position parameter of the terminal not only includes longitude and latitude information, but also includes orientation information, and the orientation information represents the orientation position of the camera of the terminal. If the terminal is in a non-stationary state, the position parameter of the terminal further needs to include at least one of motion information and rotation angle information, the motion information represents the motion information of the terminal in the moving process, and the rotation angle information represents the motion information of the terminal in the rotating process.
The terminal may acquire the location parameters through at least one sensor built in. Specifically, the method comprises the following steps:
firstly, acquiring longitude and latitude information through a Global Positioning System (GPS) receiver in a terminal, and taking the longitude and latitude information as a part of position parameters;
secondly, acquiring orientation information through an electronic compass sensor in the terminal, and taking the orientation information as the other part of the position parameters;
thirdly, if the position parameters also comprise motion information, acquiring the motion information through a three-axis acceleration sensor in the terminal;
fourthly, if the position parameters also comprise rotation angle information, acquiring the rotation angle information through a gyroscope sensor in the terminal;
it should be noted that, the above four steps are only for illustration, and the acquisition order of each piece of information is not specifically limited, that is, the terminal usually acquires each piece of information in the location parameters at the same time. In addition, the terminal may acquire the location parameters more than once, but may acquire the location parameters once at predetermined time intervals.
Step 303, requesting a map from a server;
the terminal requests a map, which may be existing 2D map data, from the server. It should be noted that, if the terminal has cached the offline map data packet in advance, step 303 and step 304 do not need to be executed. In this embodiment, the terminal is only exemplified as not including the offline map data packet.
Step 304, receiving and storing a map fed back by the server;
and the terminal receives and stores the 2D map data fed back by the server.
305, determining navigation information according to the position parameter of the target position and the position parameter of the terminal;
and the terminal determines navigation information according to the acquired position parameters of the target position, the acquired position parameters of the terminal and a map stored locally. The navigation information is the navigation information special for the real-time street view image and comprises navigation direction, destination marking information or the combination of the navigation direction and the destination marking information. Wherein the navigation direction is used for indicating a direction towards the target position in the real-time street view image; and the target labeling information is used for identifying the location of the target position in the real-time street view image. The following first describes the determination process of the navigation direction:
and the terminal determines a navigation direction according to the position parameter of the target position and the position parameter of the terminal, wherein the navigation direction is used for indicating the direction towards the target position in the real-time street view image. In particular, the determination of the navigation direction may comprise the sub-steps of:
firstly, calculating a navigation track on a map according to longitude and latitude information of a target position and longitude and latitude information of a terminal;
with reference to fig. 4A, the terminal may locate the location a of the target location on the map 31 according to the latitude and longitude information of the target location, may locate the current location B of the terminal on the map 31 according to the latitude and longitude information of the terminal, and may then calculate a navigation track between the points a and B on the map according to a navigation algorithm, where the navigation track is usually a shortest path between the points a and B when the terminal travels in a certain traffic manner, such as a shortest path during walking, a shortest path of a bus route, or a shortest path during automobile traveling.
And secondly, generating a navigation direction according to the orientation information and the navigation track of the terminal.
If the navigation track is regarded as a curve and the position of the terminal on the map is regarded as a point on the navigation track, an advancing direction D1 can be determined from the tangential direction of the curve, and the advancing direction D1 and the terminal facing direction D2 can determine that the navigation direction is deviated from the terminal facing direction to the left by N degrees or to the right by N degrees, as shown in the figure, the navigation direction D3 is deviated from the terminal facing direction D2 to the right by N degrees.
To this end, the terminal may determine the navigation direction in the navigation information.
Continuing to describe the determination process of the target annotation information:
and the terminal determines target labeling information according to the position parameter of the target position and the position parameter of the terminal, wherein the target labeling information is used for identifying the location of the target position in the real-time street view image. Specifically, the determination of the target annotation information may comprise the following sub-steps:
firstly, determining a visible area of a terminal on a map according to longitude and latitude information and orientation information of the terminal;
the visual area of the terminal is used for representing the area which can be collected by the camera of the terminal, and the visual area is represented as a sector area which is positioned in front of the orientation of the terminal on the map. With continued reference to fig. 4A, on the map 31, the location B of the terminal may be determined according to latitude and longitude information of the terminal, and then the visible area 32 of the terminal may be determined according to the orientation information D2 of the terminal, where the visible area 32 is a sector area, and an included angle between two sides of the sector area is determined by a visible angle of a camera of the terminal, such as 120 degrees; the length of both sides of the sector area may be a preset value, such as 500 meters on the map 31.
Secondly, detecting whether the target position is positioned in the visible area according to the longitude and latitude information of the target position;
the terminal can locate the position a of the target position on the map according to the latitude and longitude information of the target position, and then detect whether the position a of the target position is located in the visible area 32.
Thirdly, if the detection result is that the target position is located in the visible area, generating target labeling information.
And if the detection result is that the target position is located in the visible area, the terminal generates target labeling information. The target annotation information is typically presented in the form of a text box or text bubble displayed on the real-time street view image. The process of generating the target annotation information by the terminal can comprise the following substeps:
1) generating first display content according to the attribute information of the target position;
the terminal first generates the first display content according to the attribute information of the target location, which may be the name, introduction, etc. of the target location, and the attribute information may be obtained from the POI corresponding to the target location queried in step 301. For example, the name "yellow river hotel" of the target location is used as the first display content.
2) Determining a horizontal display position of the first display content on the real-time street view image according to the position identified by the longitude and latitude information of the target position in the visible area;
referring to fig. 4B in combination, the terminal may determine the position of the target position in the horizontal line of sight 33 according to a connection line m between the position a identified by the latitude and longitude information of the target position in the visible area 32 and the position B of the terminal itself. In other words, the intersection C of the connecting line m and the horizontal visual field line 33 corresponds to the position of the target position on the horizontal visual field line 33, which can be represented by the ratio L1/L2 of the line segment L1 and the line segment L2. When the screen display width of the terminal is known, a horizontal coordinate x can be converted according to L1/L2, and the horizontal coordinate x can be used as the horizontal display position of the first display content on the real-time street view image.
3) Determining the vertical display position of the first display content on the real-time street view image according to the height information of the target position;
referring to fig. 4C, when the terminal provides real-time street view navigation, the camera in the terminal is usually toward the front by default, the terminal determines the vertex D of the target position according to the height information H of the target position and the distance m between the terminal and the target position, and after connecting the position a with the vertex D to obtain the connection line n, the position of the target position on the vertical view line 34 can be determined. In other words, the intersection E of the connecting line n with the vertical line of sight 34 corresponds to the position of the target position on the vertical line of sight 34, which can be represented by the ratio L3/L4 of the line segment L3 and the line segment L4. When the screen display height of the terminal is known, a vertical coordinate y can be converted according to L3/L4, and the vertical coordinate y can be used as the vertical display position of the first display content on the real-time street view image.
Assuming that the target location is a building, the vertical coordinate y is calculated such that the first display is displayed on the top of the building. If it is desired that the first display content is displayed in the middle of the building, the above proportional relationship may be modified to (L3+1/2 × L4)/(1/2 × L4), as shown in fig. 4D. By analogy, if it is desired that the first display content is displayed in the upper 3/4 portion in the building, the above proportional relationship may be modified to (L3+1/4 × L4)/(3/4 × L4).
The horizontal view line 33 and the vertical view line 34 are determined by the viewing angle of the camera of the terminal, and may be preset values. In addition, the sub-steps 2) and 3) are only schematic illustrations, and the specific algorithm implementation based on the idea may be different, and is not particularly limited. The height information of the target position may be acquired from the POI corresponding to the target position, and if the POI corresponding to the target position does not include the height information, one preset vertical coordinate may be used as a vertical display position of the first display content on the real-time street view image.
4) And taking the first display content, the horizontal display position and the vertical display position as target labeling information.
Up to this point, the first display content, the horizontal display position of the first display content, and the vertical display position of the first display content may be taken as the target annotation information corresponding to the target position. Taking the first display content displayed in the middle of the building as an example, the finally determined target annotation information can be referred to as shown in fig. 4E.
Since the location parameter of the terminal may be obtained at predetermined time intervals, the target label information is also generated at predetermined time intervals correspondingly. In this process, the terminal may be in a non-stationary state accompanied by displacement or rotation, so when the position parameter of the terminal includes the motion information and/or the rotation angle information, it is preferable to include steps 306 to 307 to update the horizontal display position and/or the vertical display position in the target annotation information. The method comprises the following specific steps:
step 306, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal; updating the horizontal display position in the target marking information according to the moving speed of the terminal in the horizontal direction;
the motion information is generally acceleration information of the terminal in three spatial directions, and the moving speed of the terminal in the horizontal direction can be calculated according to the acceleration information of the terminal in the horizontal direction.
And after the moving speed of the terminal in the horizontal direction is calculated, updating the horizontal display position in the target marking information according to the moving speed, so that the horizontal display position in the target marking information follows the movement of the terminal in the horizontal direction. That is, when the terminal moves to the right, the horizontal display position in the target marking information is adjusted to the left by a corresponding amplitude; when the terminal moves leftwards, the horizontal display position in the target marking information is adjusted rightwards by a corresponding amplitude, so that the target marking information can generate the effect of 'adhering' to be displayed on the target position.
Step 307, determining a rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal; updating a vertical display position in the target marking information according to the rotation angle of the terminal in the vertical direction;
correspondingly, the rotation angle information is generally rotation angle values of the terminal in three spatial directions, and the rotation angle of the terminal in the vertical direction can be calculated according to the rotation angle values of the terminal in the vertical direction.
After the rotation angle of the terminal in the vertical direction is calculated, the vertical display position in the target labeling information is updated according to the rotation angle, so that the vertical display position in the target labeling information follows the movement of the terminal in the vertical direction. That is, when the terminal rotates upwards, the vertical display position in the target marking information is adjusted downwards by a corresponding amplitude; when the terminal rotates downwards, the vertical display position in the target marking information is adjusted upwards by a corresponding amplitude, so that the target marking information can generate an effect of 'adhering' to be displayed on the target position.
308, determining interest point marking information according to the position parameters of the terminal and at least one interest point;
as can be seen from the above description, the target annotation information is generated for subsequent display only when the target position is within the visible area of the terminal. When the target position is located outside the visible area of the terminal, the navigation information only contains navigation directions. Preferably, in order to provide more useful information to the user, the navigation information may further include interest point labeling information for labeling the location of other interest points besides the target location on the real-time street view image. And the terminal determines the interest point marking information according to the position parameter of the terminal and at least one interest point. Specifically, the method may include the following substeps:
firstly, determining a visible area of a terminal on a map according to a position parameter of the terminal;
the visible area can be determined in the map by latitude and longitude information and orientation information of the terminal, and the specific determination process is not repeated.
Secondly, at least one interest point in a visible area of the terminal is inquired, wherein the at least one interest point does not include the interest point corresponding to the target position;
and secondly, generating at least one interest point annotation information according to the inquired interest points.
The process of generating the interest point labeling information is basically the same as the process of generating the target labeling information. May comprise the following sub-steps:
1) acquiring attribute information, longitude and latitude information and height information of the interest points;
2) generating second display content according to the attribute information of the interest points;
3) determining the horizontal display position of the second display content on the real-time street view image according to the position identified by the longitude and latitude information of the interest point in the visible area;
4) determining the vertical display position of the second display content on the real-time street view image according to the height information of the interest point;
5) and taking the second display content, the horizontal display position and the vertical display position as the interest point annotation information.
For example, in the example shown in fig. 4E, if there is a POI "book building" in the visible area 33 of the terminal, the horizontal display position x and the vertical display position y can be determined based on the latitude and longitude information and the height information of the POI "book building" using the "book building" as the second display content.
Like the target annotation information, when the position parameter of the terminal includes the motion information and/or the rotation angle information, steps 309 and 310 are preferably included to update the horizontal display position and/or the vertical display position in the interest point annotation information. The method comprises the following specific steps:
step 309, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal; updating a horizontal display position in the interest point annotation information according to the moving speed of the terminal in the horizontal direction;
step 310, determining a rotation angle of the terminal in a vertical direction according to the rotation angle information of the terminal; and updating the vertical display position in the interest point annotation information according to the rotation angle of the terminal in the vertical direction.
The detailed process can be combined with the process shown in reference to steps 306 to 307, which is not described in detail. It should be noted that, although the generation processes of the target annotation information and the interest point annotation information are described as two parts in this embodiment, in a specific implementation, the two generation processes may be performed in parallel and share a part of steps, such as: the steps of determining the visible area of the terminal on the map according to the position parameters of the terminal, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal, determining the rotating angle of the terminal in the vertical direction according to the rotating angle information of the terminal and the like can be shared. The execution order and the specific implementation manner of the two generation processes are not particularly limited herein.
And 311, overlaying and displaying navigation information on the real-time street view image displayed by the terminal.
When the terminal displays the real-time street view image, a transparent layer can be additionally arranged above the real-time street view image, and then navigation information is displayed in the transparent layer. Specifically, the terminal normally displays the navigation direction in the navigation information at a position lower than the middle of the real-time street view image, as indicated by an arrow 35 in fig. 4F.
If the navigation information includes the target labeling information, the terminal further displays the first display content 36 in the target labeling information at a first designated position in the real-time street view image, wherein the first designated position is determined according to the horizontal display position and the vertical display position in the target labeling information.
If the navigation information further includes at least one interest point label information, the terminal further displays the second display content 37 in each interest point label information at a second designated position in the real-time street view image, and the second designated position is determined according to the horizontal display position and the vertical display position in the interest point label information. Fig. 4F is illustrated only in the case where the navigation information includes one point of interest annotation information, but actually, the point of interest annotation information may be two or more.
Particularly, if there is an overlapping portion in the display position between the target annotation information and the interest point annotation information, the longer distance target annotation information/interest point annotation information may be displayed at a lower layer or hidden according to the distance between the target position and the terminal and the distance between the interest point and the terminal. If the display position between the interest point labeling information and the interest point labeling information has a superposition part, the interest point labeling information with a longer distance can be placed on a lower layer for display or hidden display according to the distance between the interest point and the terminal. In addition, the display mode of the target labeling information may be different from the display mode of the interest point labeling information, so that the display mode of the target labeling information is more striking and prominent, for example, the interest point labeling information is displayed by a thin green text box, the target labeling information is displayed by a bold red text box, and the like.
In a more preferred embodiment, the terminal may also provide a navigation voice to be used in conjunction with the navigation information described above.
In summary, in the navigation method provided by this embodiment, the navigation information is displayed in an overlapping manner on the real-time street view image displayed by the terminal; the problem that the existing navigation method can only represent a general position area and cannot correctly find a target position under the condition that a user is unfamiliar with the surrounding environment is solved; the navigation information is combined with the real-time street view image, and the target position guided by the navigation information is a specific position in the real-time street view image, so that the user can accurately find the target position.
In this embodiment, the display position of the target annotation information in the navigation information is updated according to the motion information and the rotation angle information of the terminal, so that the display position of the target annotation information can be correspondingly changed along with the movement or rotation of the terminal. In other words, even if the terminal moves or rotates, the target marking information can still accurately indicate the position of the target position, so that the user can still accurately find the target position by means of the indication of the target marking information in a scene such as walking or sitting on a car.
The embodiment also adds at least one interest point mark information in the navigation information, so that the navigation information can provide more useful information, and further, a user can obtain more useful information in real-time street view navigation. Meanwhile, the display position of the interest point marking information in the navigation information is updated through the motion information and the rotation angle information of the terminal, so that the display position of the interest point marking information can be correspondingly changed along with the movement or the rotation of the terminal, and further, a user can still accurately find the interest point by means of the indication of the target marking information in the scenes such as walking or sitting on a car. Alternatively, the point of interest annotation information can be effectively combined with the scene in the real-time street view image.
The above-described embodiment is exemplified only in the case where the navigation method is applied to a separate terminal. Due to the fact that computing power of the terminals is uneven, in order to reduce the requirement for the computing power of the terminals when the navigation method is applied to the terminals, the navigation method can be further applied to a navigation system comprising the terminals and a server to achieve the purpose, the server undertakes main computing work, the terminals are only responsible for collecting position parameters of the terminals and position parameters of target positions, and navigation information is displayed in an overlaying mode on real-time street view images when the real-time street view images are displayed.
Please refer to fig. 5, which shows a flowchart of a navigation method according to a third embodiment of the present invention. The present embodiment is exemplified in that the navigation method is used in a navigation system including a terminal and a server. The navigation method comprises the following steps:
step 501, a terminal collects attribute information of a target position;
the terminal provides real-time street view navigation service for the user. After the user initiates the service, the terminal may ask the user to input the target location. At this time, the terminal receives attribute information of a target position input by a user through text input or voice input.
If the user inputs the attribute information of the target position in a character mode through a physical keyboard or a virtual keyboard, the terminal receives the attribute information of the target position input through characters;
if the user inputs the attribute information of the target position in a voice mode through the microphone, the terminal receives the attribute information of the target position input in the voice mode, and then the voice signal is recognized as corresponding character information through a voice recognition technology.
The attribute information of the target location is usually the name of the target location, and may be other description information with unique identification.
It should be noted that, when the user starts the real-time street view navigation service, the terminal may start to collect and display the real-time street view image. Of course, the terminal may start to acquire and display the real-time street view image after starting the navigation, which is not limited to this.
502, the terminal sends the attribute information of the target position to a server;
the terminal may transmit the attribute information of the target location to the server through a wireless network or a wired network.
Step 503, the server obtains the position parameter of the target position;
the server acquires the position parameter of the target position by receiving the attribute information of the target position sent by the terminal. Specifically, the present step may include the following sub-steps:
1) the server receives attribute information of a target position sent by the terminal, wherein the attribute information of the target position is information obtained by the terminal receiving character input or voice input;
2) the server inquires interest points corresponding to the target position according to the attribute information of the target position;
the server may pre-cache a POI information base, and after obtaining the attribute information of the target location, the terminal queries an interest point corresponding to the target location in the POI information base according to the attribute information. If the interest point corresponding to the target position cannot be inquired, the server can feed back error information to the terminal, and the terminal can require the user to input the attribute information of the target position again after receiving the error information.
3) And the server takes the searched longitude and latitude information in the interest point corresponding to the target position as the position parameter of the target position.
And when the server inquires the POI corresponding to the target position, taking the longitude and latitude information in the POI corresponding to the target position as the position parameter of the target position.
Step 504, the terminal collects the position parameters of the terminal;
different from the position parameter of the target position, the position parameter of the terminal not only includes longitude and latitude information, but also includes orientation information, and the orientation information represents the orientation position of the camera of the terminal. If the terminal is in a non-stationary state, the position parameter of the terminal further needs to include at least one of motion information and rotation angle information, the motion information represents the motion information of the terminal in the moving process, and the rotation angle information represents the motion information of the terminal in the rotating process.
The terminal may acquire the location parameters through at least one sensor built in. Specifically, the method comprises the following steps:
firstly, acquiring longitude and latitude information through a Global Positioning System (GPS) receiver in a terminal, and taking the longitude and latitude information as a part of position parameters;
secondly, acquiring orientation information through an electronic compass sensor in the terminal, and taking the orientation information as the other part of the position parameters;
thirdly, if the position parameters also comprise motion information, acquiring the motion information through a three-axis acceleration sensor in the terminal;
fourthly, if the position parameters also comprise rotation angle information, acquiring the rotation angle information through a gyroscope sensor in the terminal;
it should be noted that, the above four steps are only for illustration, and the acquisition order of each piece of information is not specifically limited, that is, the terminal usually acquires each piece of information in the location parameters at the same time. In addition, the terminal may acquire the location parameters more than once, but may acquire the location parameters once at predetermined time intervals.
Step 505, the terminal sends the position parameter of the terminal to a server;
and the terminal sends the acquired position parameters to the server. The terminal can immediately send the position parameters to the server after acquiring the position parameters each time. If the terminal only collects the position parameters once, the process of sending the position parameters to the server is also once; if the terminal collects the position parameters once every preset time interval, the process of sending the position parameters to the server is corresponding to multiple times.
Step 506, the server acquires the position parameters of the terminal;
and the server receives the position parameters sent by the terminal. The location parameters of the terminal may include:
latitude and longitude information and orientation information; or,
latitude and longitude information, orientation information and motion information; or,
latitude and longitude information, orientation information and rotation angle information; or,
latitude and longitude information, orientation information, motion information and rotation angle information;
the latitude and longitude information is information collected by a terminal through a Global Positioning System (GPS) receiver; the orientation information is information acquired by the terminal through an electronic compass sensor; the motion information is information acquired by the terminal through a three-axis acceleration sensor; the rotation angle information is information collected by the terminal through a gyroscope sensor.
Step 507, the server determines navigation information according to the position parameter of the target position and the position parameter of the terminal;
and the server determines navigation information according to the acquired position parameters of the target position, the acquired position parameters of the terminal and a map stored locally. The navigation information is the navigation information special for the real-time street view image and comprises navigation direction, destination marking information or the combination of the navigation direction and the destination marking information. Wherein the navigation direction is used for indicating a direction towards the target position in the real-time street view image; and the target labeling information is used for identifying the location of the target position in the real-time street view image. The following first describes the determination process of the navigation direction:
and the server determines a navigation direction according to the position parameter of the target position and the position parameter of the terminal, wherein the navigation direction is used for indicating the direction towards the target position in the real-time street view image. In particular, the determination of the navigation direction may comprise the sub-steps of:
firstly, calculating a navigation track on a map according to longitude and latitude information of a target position and longitude and latitude information of a terminal;
with reference to fig. 4A, the server may locate the location a of the target location on the map 31 according to the latitude and longitude information of the target location, may locate the current location B of the terminal on the map 31 according to the latitude and longitude information of the terminal, and may then calculate a navigation track between the points a and B on the map according to a navigation algorithm, where the navigation track is usually a shortest path between the points a and B when the terminal travels in a certain traffic manner, such as a shortest path during walking, a shortest path of a bus route, or a shortest path during automobile traveling.
And secondly, generating a navigation direction according to the orientation information and the navigation track of the terminal.
If the navigation track is regarded as a curve and the position of the terminal on the map is regarded as a point on the navigation track, a forward direction D1 can be determined from the tangential direction of the curve, and the foreground direction D1 and the heading direction D2 of the terminal can determine that the navigation direction is deviated from the heading direction of the terminal to the left by N degrees or to the right by N degrees, as shown in the figure, the navigation direction is deviated from the heading direction D2 of the terminal to the right by N degrees.
To this end, the server may determine the navigation direction in the navigation information.
Continuing to describe the determination process of the target annotation information:
and the server determines target labeling information according to the position parameter of the target position and the position parameter of the terminal, wherein the target labeling information is used for identifying the location of the target position in the real-time street view image. Specifically, the determination of the target annotation information may comprise the following sub-steps:
firstly, determining a visible area of a terminal on a map according to longitude and latitude information and orientation information of the terminal;
the visual area of the terminal is used for representing the area which can be collected by the camera of the terminal, and the visual area is represented as a sector area which is positioned in front of the orientation of the terminal on the map. With continued reference to fig. 4A, on the map 31, the location B of the terminal may be determined according to latitude and longitude information of the terminal, and then the visible area 32 of the terminal may be determined according to the orientation information D2 of the terminal, where the visible area 32 is a sector area, and an included angle between two sides of the sector area is determined by a visible angle of a camera of the terminal, such as 120 degrees; the length of both sides of the sector area may be a preset value, such as 500 meters on the map 31.
Secondly, detecting whether the target position is positioned in the visible area according to the longitude and latitude information of the target position;
the server can locate the position a of the target position on the map according to the latitude and longitude information of the target position, and then detect whether the position a of the target position is located in the visible area 32.
Thirdly, if the detection result is that the target position is located in the visible area, generating target labeling information.
And if the detection result is that the target position is located in the visible area, the server generates target labeling information. The target annotation information is typically presented in the form of a text box or text bubble displayed on the real-time street view image. The process of generating the target annotation information by the server can comprise the following sub-steps:
1) generating first display content according to the attribute information of the target position;
the server first generates the first display content according to the attribute information of the target location, which may be the name, introduction, etc. of the target location, and the attribute information may be obtained from the POI corresponding to the target location queried in step 403. For example, the name "yellow river hotel" of the target location is used as the first display content.
2) Determining a horizontal display position of the first display content on the real-time street view image according to the position identified by the longitude and latitude information of the target position in the visible area;
referring to fig. 4B in combination, the server may determine the position of the target location in the horizontal line of sight 33 according to a connection line m between the location a identified by the latitude and longitude information of the target location within the visible area 32 and the location B of the terminal. In other words, the intersection C of the connecting line m and the horizontal visual field line 33 corresponds to the position of the target position on the horizontal visual field line 33, which can be represented by the ratio L1/L2 of the line segment L1 and the line segment L2. When the screen display width of the terminal is known, a horizontal coordinate x can be converted according to L1/L2, and the horizontal coordinate x can be used as the horizontal display position of the first display content on the real-time street view image.
3) Determining the vertical display position of the first display content on the real-time street view image according to the height information of the target position;
referring to fig. 4C, when the terminal provides real-time street view navigation, the camera in the terminal is usually toward the front by default, the server determines the vertex D of the target position according to the height information H of the target position and the distance m between the terminal and the target position, and after the position a of the terminal and the vertex D are connected to obtain the connection line n, the position of the target position on the vertical view line 34 can be determined. In other words, the intersection E of the connecting line n with the vertical line of sight 34 corresponds to the position of the target position on the vertical line of sight 34, which can be represented by the ratio L3/L4 of the line segment L3 and the line segment L4. When the screen display height of the terminal is known, a vertical coordinate y can be converted according to L3/L4, and the vertical coordinate y can be used as the vertical display position of the first display content on the real-time street view image.
Assuming that the target location is a building, the vertical coordinate y is calculated such that the first display is displayed on the top of the building. If it is desired that the first display content is displayed in the middle of the building, the above proportional relationship may be modified to (L3+1/2 × L4)/(1/2 × L4), as shown in fig. 4D. By analogy, if it is desired that the first display content is displayed in the upper 3/4 portion in the building, the above proportional relationship may be modified to (L3+1/4 × L4)/(3/4 × L4).
The horizontal view line 33 and the vertical view line 34 are determined by the viewing angle of the camera of the terminal, and may be preset values. In addition, the sub-steps 2) and 3) are only schematic illustrations, and the specific algorithm implementation based on the idea may be different, and is not particularly limited. The height information of the target position may be acquired from the POI corresponding to the target position, and if the POI corresponding to the target position does not include the height information, one preset vertical coordinate may be used as a vertical display position of the first display content on the real-time street view image.
4) And taking the first display content, the horizontal display position and the vertical display position as target labeling information.
To this end, the server may take the first display content, the horizontal display position of the first display content, and the vertical display position of the first display content as the target annotation information corresponding to the target position. Taking the first display content displayed in the middle of the building as an example, the finally determined target annotation information can be referred to as shown in fig. 4E.
Since the location parameter of the terminal may be obtained at predetermined time intervals, the target label information is also generated at predetermined time intervals correspondingly. In this process, the terminal may be in a non-stationary state accompanied by displacement or rotation, so when the position parameter of the terminal includes the motion information and/or the rotation angle information, it preferably includes steps 508 to 509 to update the horizontal display position and/or the vertical display position in the target annotation information. The method comprises the following specific steps:
step 508, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal; updating the horizontal display position in the target marking information according to the moving speed of the terminal in the horizontal direction;
the motion information is generally acceleration information of the terminal in three spatial directions, and the server can calculate the moving speed of the terminal in the horizontal direction according to the acceleration information of the terminal in the horizontal direction.
After the server calculates the moving speed of the terminal in the horizontal direction, the server updates the horizontal display position in the target labeling information according to the moving speed, so that the horizontal display position in the target labeling information follows the movement of the terminal in the horizontal direction. That is, when the terminal moves to the right, the horizontal display position in the target marking information is adjusted to the left by a corresponding amplitude; when the terminal moves leftwards, the horizontal display position in the target marking information is adjusted rightwards by a corresponding amplitude, so that the target marking information can generate the effect of 'adhering' to be displayed on the target position.
Step 509, determining a rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal; updating a vertical display position in the target marking information according to the rotation angle of the terminal in the vertical direction;
correspondingly, the rotation angle information is generally rotation angle values of the terminal in three spatial directions, and the server can calculate the rotation angle of the terminal in the vertical direction according to the rotation angle values of the terminal in the vertical direction.
After the server calculates the rotation angle of the terminal in the vertical direction, the server updates the vertical display position in the target labeling information according to the rotation angle, so that the vertical display position in the target labeling information follows the movement of the terminal in the vertical direction. That is, when the terminal rotates upwards, the vertical display position in the target marking information is adjusted downwards by a corresponding amplitude; when the terminal rotates downwards, the vertical display position in the target marking information is adjusted upwards by a corresponding amplitude, so that the target marking information can generate an effect of 'adhering' to be displayed on the target position.
Step 510, determining interest point marking information according to the position parameters of the terminal and at least one interest point;
as can be seen from the above description, the target annotation information is generated for subsequent display only when the target position is within the visible area of the terminal. When the target position is located outside the visible area of the terminal, the navigation information only contains navigation directions. Preferably, in order to provide more useful information to the user, the navigation information may further include interest point labeling information for labeling a location of at least one interest point other than the target location on the real-time street view. And the server determines the interest point marking information according to the position parameters of the terminal and at least one interest point. Specifically, the method may include the following substeps:
thirdly, determining a visible area of the terminal on a map according to the position parameters of the terminal;
the visible area can be determined in the map by latitude and longitude information and orientation information of the terminal, and the specific determination process is not repeated.
Secondly, at least one interest point in a visible area of the terminal is inquired, wherein the at least one interest point does not include the interest point corresponding to the target position;
fourthly, generating at least one interest point annotation information according to the inquired interest points.
The process of generating the interest point labeling information is basically the same as the process of generating the target labeling information. May comprise the following sub-steps:
1) acquiring attribute information, longitude and latitude information and height information of the interest points;
2) generating second display content according to the attribute information of the interest points;
3) determining the horizontal display position of the second display content on the real-time street view image according to the position identified by the longitude and latitude information of the interest point in the visible area;
4) determining the vertical display position of the second display content on the real-time street view image according to the height information of the interest point;
5) and taking the second display content, the horizontal display position and the vertical display position as the interest point annotation information.
For example, in the example shown in fig. 4E, if there is a POI "book building" in the visible area 33 of the terminal, the horizontal display position x and the vertical display position y can be determined based on the latitude and longitude information and the height information of the POI "book building" using the "book building" as the second display content.
Like the target annotation information, when the position parameter of the terminal includes the motion information and/or the rotation angle information, steps 511 and 512 are preferably included to update the horizontal display position and/or the vertical display position in the interest point annotation information. The method comprises the following specific steps:
step 511, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal; updating a horizontal display position in the interest point annotation information according to the moving speed of the terminal in the horizontal direction;
step 512, determining a rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal; and updating the vertical display position in the interest point annotation information according to the rotation angle of the terminal in the vertical direction.
The detailed process can be combined with the process shown in steps 508 to 509, which is not described in detail for the sake of brevity. It should be noted that, although the generation processes of the target annotation information and the interest point annotation information are described as two parts in this embodiment, in a specific implementation, the two generation processes may be performed in parallel and share a part of steps, for example: the steps of determining the visible area of the terminal on the map according to the position parameters of the terminal, determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal, determining the rotating angle of the terminal in the vertical direction according to the rotating angle information of the terminal and the like can be shared. The execution order and the specific implementation manner of the two generation processes are not particularly limited herein.
Step 513, the server sends navigation information to the terminal;
the server may transmit the navigation information to the terminal. The server may determine the navigation information according to the position parameter of the terminal every time the server receives the position parameter of the terminal, and then send the navigation information to the server. If the terminal only reports the position parameter once, the process that the server sends the navigation information is also once; if the terminal reports the position parameters once every preset time interval, the process of the server sending the navigation information is corresponding to multiple times.
And 514, the terminal displays the navigation information on the real-time street view image displayed by the terminal in an overlapping manner.
The terminal can receive the navigation information sent by the server, and then when the terminal displays the real-time street view image, the terminal can add a transparent layer above the real-time street view image and then display the navigation information in the transparent layer. Specifically, the terminal normally displays the navigation direction in the navigation information at a position lower than the middle of the real-time street view image, as indicated by an arrow 35 in fig. 4F.
If the navigation information includes the target labeling information, the terminal further displays the first display content 36 in the target labeling information at a first designated position in the real-time street view image, wherein the first designated position is determined according to the horizontal display position and the vertical display position in the target labeling information.
If the navigation information further includes at least one interest point label information, the terminal further displays the second display content 37 in each interest point label information at a second designated position in the real-time street view image, and the second designated position is determined according to the horizontal display position and the vertical display position in the interest point label information. Fig. 4F is illustrated only in the case where the navigation information includes one point of interest annotation information, but actually, the point of interest annotation information may be two or more.
Particularly, if there is an overlapping portion in the display position between the target annotation information and the interest point annotation information, the longer distance target annotation information/interest point annotation information may be displayed at a lower layer or hidden according to the distance between the target position and the terminal and the distance between the interest point and the terminal. If the display position between the interest point labeling information and the interest point labeling information has a superposition part, the interest point labeling information with a longer distance can be placed on a lower layer for display or hidden display according to the distance between the interest point and the terminal. In addition, the display mode of the target labeling information may be different from the display mode of the interest point labeling information, so that the display mode of the target labeling information is more striking and prominent, for example, the interest point labeling information is displayed by a thin green text box, the target labeling information is displayed by a bold red text box, and the like.
In a more preferred embodiment, the server may also provide a navigation voice to the terminal for use in conjunction with the navigation information described above.
In summary, in the navigation method provided by this embodiment, the navigation information is displayed in an overlapping manner on the real-time street view image displayed by the terminal; the problem that the existing navigation method can only represent a general position area and cannot correctly find a target position under the condition that a user is unfamiliar with the surrounding environment is solved; the navigation information is combined with the real-time street view image, and the target position guided by the navigation information is a specific position in the real-time street view image, so that the user can accurately find the target position.
In this embodiment, the display position of the target annotation information in the navigation information is updated according to the motion information and the rotation angle information of the terminal, so that the display position of the target annotation information can be correspondingly changed along with the movement or rotation of the terminal. In other words, even if the terminal moves or rotates, the target marking information can still accurately indicate the position of the target position, so that the user can still accurately find the target position by means of the indication of the target marking information in a scene such as walking or sitting on a car.
The embodiment also adds at least one interest point mark information in the navigation information, so that the navigation information can provide more useful information, and further, a user can obtain more useful information in real-time street view navigation. Meanwhile, the display position of the interest point marking information in the navigation information is updated through the motion information and the rotation angle information of the terminal, so that the display position of the interest point marking information can be correspondingly changed along with the movement or the rotation of the terminal, and further, a user can still accurately find the interest point by means of the indication of the target marking information in the scenes such as walking or sitting on a car. Alternatively, the point of interest annotation information can be effectively combined with the scene in the real-time street view image.
In this embodiment, the server is further used for performing main calculation, and the terminal only needs to report the location parameter of the target location and the location parameter of the terminal to the server, and then receives the navigation information for display. Because the terminal does not need to download map data in the whole process, compared with the existing 2D navigation method and the virtual 4D navigation method, the requirement on the calculation performance of the terminal is not high, the data flow required by the communication between the terminal and the server is very small, but the overall navigation effect is superior to the existing 2D navigation method and the virtual 4D navigation method. When the number of terminals using the real-time street view navigation function is very large, the requirement for the service carrying capacity of the whole mobile communication network or internet network is also greatly reduced.
Example four
Referring to fig. 6, a block diagram of a navigation device according to a fourth embodiment of the present invention is shown. The navigation device may be implemented as all or part of the terminal by software, hardware or a combination of both. The navigation device may include: a first obtaining module 610, a second obtaining module 620, an information determining module 630 and an information displaying module 640;
a first obtaining module 610, configured to obtain a location parameter of a target location;
a second obtaining module 620, configured to obtain a location parameter of the terminal;
an information determining module 630, configured to determine navigation information according to the location parameter of the target location and the location parameter of the terminal;
an information display module 640, configured to display the navigation information determined by the information determination module 630 in an overlapping manner on the real-time street view image displayed by the terminal.
In a more preferred embodiment, the navigation information includes navigation directions and/or destination label information, and the information determining module includes: a direction determination submodule and/or a purpose determination submodule;
the direction determining submodule is used for determining a navigation direction according to the position parameter of the target position and the position parameter of the terminal, and the navigation direction is used for indicating the direction facing the target position in the real-time street view image;
and the destination determining submodule is used for determining destination marking information according to the position parameter of the target position and the position parameter of the terminal, and the destination marking information is used for identifying the location of the target position in the real-time street view image.
In a more preferred embodiment, the location parameter of the target location includes latitude and longitude information of the target location, the location information of the terminal includes latitude and longitude information and orientation information of the terminal, and the direction determining sub-module includes:
a trajectory calculation unit and a direction generation unit;
the track calculation unit is used for calculating a navigation track on a map according to the longitude and latitude information of the target position and the longitude and latitude information of the terminal;
and the direction generating unit is used for generating the navigation direction according to the orientation information of the terminal and the navigation track.
In a more preferred embodiment, the location parameter of the target location includes latitude and longitude information of the target location, the location information of the terminal includes latitude and longitude information and orientation information of the terminal, and the destination determining sub-module includes:
an area determination unit, a position detection unit and an information generation unit;
the area determining unit is used for determining a visible area of the terminal on the map according to the longitude and latitude information and the orientation information of the terminal;
the position detection unit is used for detecting whether the target position is positioned in the visible area according to the longitude and latitude information of the target position;
and the information generating unit is used for generating the target labeling information if the detection result shows that the target position is located in the visible area.
In a more preferred embodiment, the position parameter of the target position further includes attribute information and altitude information of the target position, and the information generating unit includes:
the system comprises a content generation subunit, a horizontal generation subunit, a vertical generation subunit and a target labeling subunit;
the content generating subunit is configured to generate first display content according to the attribute information of the target location;
the horizontal generating subunit is configured to determine, according to the identified position of the latitude and longitude information of the target position in the visible area, a horizontal display position of the first display content on the real-time street view image;
the vertical generation subunit is configured to determine, according to the height information of the target position, a vertical display position of the first display content on the real-time street view image;
and the target labeling subunit is configured to use the first display content, the horizontal display position, and the vertical display position as the target labeling information.
In a more preferred embodiment, the location parameter of the terminal further includes motion information of the terminal, and the purpose determining sub-module further includes:
a first horizontal velocity determining unit and a first horizontal position updating unit;
the first horizontal speed determining unit is used for determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal;
and the first horizontal position updating unit is used for updating the horizontal display position in the target marking information according to the moving speed of the terminal in the horizontal direction.
In a more preferred embodiment, the location parameter of the terminal further includes rotation angle information of the terminal, and the purpose determining sub-module further includes:
a first vertical angle determination unit and a first vertical position update unit;
the first vertical angle determining unit is used for determining the rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal;
the first vertical position updating unit is used for updating the vertical display position in the target labeling information according to the rotation angle of the terminal in the vertical direction.
In a more preferred embodiment, the terminal may further include:
the system comprises a region determining module, an interest point inquiring module, an information generating module and an interest point displaying module;
the area determining module is used for determining a visible area of the terminal on a map according to the position parameter of the terminal;
the interest point query module is used for querying at least one interest point located in a visible area of the terminal;
the information generation module is used for generating at least one interest point annotation information according to the inquired interest points;
and the interest point display module is used for displaying the interest point annotation information on the real-time street view image in an overlapping manner.
In a more preferred embodiment, the information generating module includes: the system comprises an information acquisition unit, a content generation unit, a horizontal generation unit, a vertical generation unit and a target labeling unit;
the information acquisition unit is used for acquiring the attribute information, the longitude and latitude information and the height information of the interest points;
the content generating unit is used for generating second display content according to the attribute information of the interest points;
the horizontal generating unit is used for determining the horizontal display position of the second display content on the real-time street view image according to the position identified by the longitude and latitude information of the interest point in the visible area;
the vertical generation unit is used for determining the vertical display position of the second display content on the real-time street view image according to the height information of the interest point;
the target labeling unit is configured to use the display content, the horizontal display position, and the vertical display position as the interest point labeling information.
In a more preferred embodiment, the location parameter of the terminal further includes motion information of the terminal, and the information generating module further includes:
a second horizontal velocity determining unit and a second horizontal position updating unit;
the second horizontal speed determining unit is used for determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal;
and the second horizontal position updating unit is used for updating the horizontal display position in the interest point mark information according to the moving speed of the terminal in the horizontal direction.
In a more preferred embodiment, the position parameter of the terminal further includes rotation angle information of the terminal, and the information generating module further includes:
a second vertical angle determination unit and a second vertical position update unit;
the second vertical angle determining unit is used for determining the rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal;
and the second vertical position updating unit is used for updating the vertical display position in the interest point annotation information according to the rotation angle of the terminal in the vertical direction.
In a more preferred embodiment, the first obtaining module includes:
the device comprises a first receiving unit, an interest point inquiring unit and a parameter determining unit;
the first receiving unit is used for receiving attribute information of a target position input through characters or voice;
the interest point query unit is used for querying interest points corresponding to the target position according to the attribute information of the target position;
and the parameter determining unit is used for taking the searched longitude and latitude information in the interest point corresponding to the target position as the position parameter of the target position.
In a more preferred embodiment, the second obtaining module includes:
the device comprises a longitude and latitude acquisition unit, an orientation acquisition unit, an acceleration acquisition unit and an angle acquisition unit;
the longitude and latitude acquisition unit is used for acquiring longitude and latitude information through a Global Positioning System (GPS) receiver in the terminal and taking the longitude and latitude information as a part of the position parameters;
the orientation acquisition unit is used for acquiring orientation information through an electronic compass sensor in the terminal, and taking the orientation information as another part of the position parameters;
the acceleration acquisition unit is used for acquiring the acceleration information through a three-axis acceleration sensor in the terminal if the position parameters further comprise acceleration information;
and the angle acquisition unit is used for acquiring the rotation angle information through a gyroscope sensor in the terminal if the position parameters further comprise rotation angle information.
In a more preferred embodiment, the terminal further includes: the map request module and the map receiving module;
the map request module is used for requesting map data of the map from a server;
the map receiving module is used for receiving the map data of the map fed back by the server.
In summary, the navigation device provided in the embodiment of the present invention displays the navigation information by superimposing the real-time street view image displayed on the terminal; the problem that the existing navigation method can only represent a general position area, and cannot correctly find a target position under the condition that a user is unfamiliar with the surrounding environment is solved; the method and the device have the advantages that the navigation information is combined with the real-time street view image, so that the target position guided by the navigation information is a specific position in the real-time street view image, and a user can accurately find the target position.
In this embodiment, the display position of the target annotation information in the navigation information is updated according to the motion information and the rotation angle information of the terminal, so that the display position of the target annotation information can be correspondingly changed along with the movement or rotation of the terminal. In other words, even if the terminal moves or rotates, the target marking information can still accurately indicate the position of the target position, so that the user can still accurately find the target position by means of the indication of the target marking information in a scene such as walking or sitting on a car.
The embodiment also adds at least one interest point mark information in the navigation information, so that the navigation information can provide more useful information, and further, a user can obtain more useful information in real-time street view navigation. Meanwhile, the display position of the interest point marking information in the navigation information is updated through the motion information and the rotation angle information of the terminal, so that the display position of the interest point marking information can be correspondingly changed along with the movement or the rotation of the terminal, and further, a user can still accurately find the interest point by means of the indication of the target marking information in the scenes such as walking or sitting on a car. Alternatively, the point of interest annotation information can be effectively combined with the scene in the real-time street view image.
EXAMPLE five
Referring to fig. 7, a block diagram of a navigation device according to a fifth embodiment of the present invention is shown. The navigation device may be implemented in software, hardware, or a combination of both as all or part of a server, which may be a server in a navigation system. The navigation device may include: a first obtaining module 610, a second obtaining module 620, an information determining module 630 and an information displaying module 640;
a first obtaining module 610, configured to obtain a location parameter of a target location;
a second obtaining module 620, configured to obtain a location parameter of the terminal;
an information determining module 630, configured to determine navigation information according to the location parameter of the target location and the location parameter of the terminal;
an information display module 640, configured to display the navigation information determined by the information determination module 630 in an overlapping manner on the real-time street view image displayed by the terminal.
In a more preferred embodiment, the navigation information includes navigation directions and/or destination label information, and the information determining module includes: a direction determination submodule and/or a purpose determination submodule;
the direction determining submodule is used for determining a navigation direction according to the position parameter of the target position and the position parameter of the terminal, and the navigation direction is used for indicating the direction facing the target position in the real-time street view image;
and the destination determining submodule is used for determining destination marking information according to the position parameter of the target position and the position parameter of the terminal, and the destination marking information is used for identifying the location of the target position in the real-time street view image.
In a more preferred embodiment, the location parameter of the target location includes latitude and longitude information of the target location, the location information of the terminal includes latitude and longitude information and orientation information of the terminal, and the direction determining sub-module includes:
a trajectory calculation unit and a direction generation unit;
the track calculation unit is used for calculating a navigation track on a map according to the longitude and latitude information of the target position and the longitude and latitude information of the terminal;
and the direction generating unit is used for generating the navigation direction according to the orientation information of the terminal and the navigation track.
In a more preferred embodiment, the location parameter of the target location includes latitude and longitude information of the target location, the location information of the terminal includes latitude and longitude information and orientation information of the terminal, and the destination determining sub-module includes:
an area determination unit, a position detection unit and an information generation unit;
the area determining unit is used for determining a visible area of the terminal on the map according to the longitude and latitude information and the orientation information of the terminal;
the position detection unit is used for detecting whether the target position is positioned in the visible area according to the longitude and latitude information of the target position;
and the information generating unit is used for generating the target labeling information if the detection result shows that the target position is located in the visible area.
In a more preferred embodiment, the position parameter of the target position further includes attribute information and altitude information of the target position, and the information generating unit includes:
the system comprises a content generation subunit, a horizontal generation subunit, a vertical generation subunit and a target labeling subunit;
the content generating subunit is configured to generate first display content according to the attribute information of the target location;
the horizontal generating subunit is configured to determine, according to the identified position of the latitude and longitude information of the target position in the visible area, a horizontal display position of the first display content on the real-time street view image;
the vertical generation subunit is configured to determine, according to the height information of the target position, a vertical display position of the first display content on the real-time street view image;
and the target labeling subunit is configured to use the first display content, the horizontal display position, and the vertical display position as the target labeling information.
In a more preferred embodiment, the location parameter of the terminal further includes motion information of the terminal, and the purpose determining sub-module further includes:
a first horizontal velocity determining unit and a first horizontal position updating unit;
the first horizontal speed determining unit is used for determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal;
and the first horizontal position updating unit is used for updating the horizontal display position in the target marking information according to the moving speed of the terminal in the horizontal direction.
In a more preferred embodiment, the location parameter of the terminal further includes rotation angle information of the terminal, and the purpose determining sub-module further includes:
a first vertical angle determination unit and a first vertical position update unit;
the first vertical angle determining unit is used for determining the rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal;
the first vertical position updating unit is used for updating the vertical display position in the target labeling information according to the rotation angle of the terminal in the vertical direction.
In a more preferred embodiment, the server may further include:
the system comprises a region determining module, an interest point inquiring module, an information generating module and an interest point displaying module;
the area determining module is used for determining a visible area of the terminal on a map according to the position parameter of the terminal;
the interest point query module is used for querying at least one interest point located in a visible area of the terminal;
the information generation module is used for generating at least one interest point annotation information according to the inquired interest points;
and the interest point display module is used for displaying the interest point annotation information on the real-time street view image in an overlapping manner.
In a more preferred embodiment, the information generating module includes: the system comprises an information acquisition unit, a content generation unit, a horizontal generation unit, a vertical generation unit and a target labeling unit;
the information acquisition unit is used for acquiring the attribute information, the longitude and latitude information and the height information of the interest points;
the content generating unit is used for generating second display content according to the attribute information of the interest points;
the horizontal generating unit is used for determining the horizontal display position of the second display content on the real-time street view image according to the position identified by the longitude and latitude information of the interest point in the visible area;
the vertical generation unit is used for determining the vertical display position of the second display content on the real-time street view image according to the height information of the interest point;
the target labeling unit is configured to use the display content, the horizontal display position, and the vertical display position as the interest point labeling information.
In a more preferred embodiment, the location parameter of the terminal further includes motion information of the terminal, and the information generating module further includes:
a second horizontal velocity determining unit and a second horizontal position updating unit;
the second horizontal speed determining unit is used for determining the moving speed of the terminal in the horizontal direction according to the motion information of the terminal;
and the second horizontal position updating unit is used for updating the horizontal display position in the interest point mark information according to the moving speed of the terminal in the horizontal direction.
In a more preferred embodiment, the position parameter of the terminal further includes rotation angle information of the terminal, and the information generating module further includes:
a second vertical angle determination unit and a second vertical position update unit;
the second vertical angle determining unit is used for determining the rotation angle of the terminal in the vertical direction according to the rotation angle information of the terminal;
and the second vertical position updating unit is used for updating the vertical display position in the interest point annotation information according to the rotation angle of the terminal in the vertical direction.
In a more preferred embodiment, the first obtaining module includes:
the device comprises a second receiving unit, an interest point inquiring unit and a parameter determining unit;
the second receiving unit is used for receiving attribute information of a target position sent by a terminal, wherein the attribute information of the target position is obtained by receiving character input or voice input by the terminal;
the interest point query unit is used for querying interest points corresponding to the target position according to the attribute information of the target position;
and the parameter determining unit is used for taking the searched longitude and latitude information in the interest point corresponding to the target position as the position parameter of the target position.
In a more preferred embodiment, the second obtaining module is specifically configured to receive a location parameter sent by a terminal, where the location parameter includes:
latitude and longitude information and orientation information; or,
latitude and longitude information, orientation information and acceleration information; or,
latitude and longitude information, orientation information and rotation angle information; or,
latitude and longitude information, orientation information, acceleration information and rotation angle information;
the latitude and longitude information is information collected by the terminal through a Global Positioning System (GPS) receiver; the orientation information is information acquired by the terminal through an electronic compass sensor; the acceleration information is information acquired by the terminal through a three-axis acceleration sensor; the rotation angle information is information acquired by the terminal through a gyroscope sensor.
In a more preferred embodiment, the information display module is specifically configured to send the navigation information to the terminal, so that the terminal displays the navigation information in an overlapping manner on the displayed real-time street view image after receiving the navigation information.
In summary, the navigation device provided in this embodiment displays the navigation information by superimposing the real-time street view image displayed on the terminal; the problem that the existing navigation method can only represent a general position area, and cannot correctly find a target position under the condition that a user is unfamiliar with the surrounding environment is solved; the method and the device have the advantages that the navigation information is combined with the real-time street view image, so that the target position guided by the navigation information is a specific position in the real-time street view image, and a user can accurately find the target position.
In this embodiment, the display position of the target annotation information in the navigation information is updated according to the motion information and the rotation angle information of the terminal, so that the display position of the target annotation information can be correspondingly changed along with the movement or rotation of the terminal. In other words, even if the terminal moves or rotates, the target marking information can still accurately indicate the position of the target position, so that the user can still accurately find the target position by means of the indication of the target marking information in a scene such as walking or sitting on a car.
The embodiment also adds at least one interest point mark information in the navigation information, so that the navigation information can provide more useful information, and further, a user can obtain more useful information in real-time street view navigation. Meanwhile, the display position of the interest point marking information in the navigation information is updated through the motion information and the rotation angle information of the terminal, so that the display position of the interest point marking information can be correspondingly changed along with the movement or the rotation of the terminal, and further, a user can still accurately find the interest point by means of the indication of the target marking information in the scenes such as walking or sitting on a car. Alternatively, the point of interest annotation information can be effectively combined with the scene in the real-time street view image.
In this embodiment, the server is further used for performing main calculation, and the terminal only needs to report the location parameter of the target location and the location parameter of the terminal to the server, and then receives the navigation information for display. Because the terminal does not need to download map data in the whole process, compared with the existing 2D navigation method and the virtual 4D navigation method, the requirement on the calculation performance of the terminal is not high, the data flow required by the communication between the terminal and the server is very small, but the overall navigation effect is superior to the existing 2D navigation method and the virtual 4D navigation method. When the number of terminals using the real-time street view navigation function is very large, the requirement for the service carrying capacity of the whole mobile communication network or internet network is also greatly reduced.