Drawing method and apparatus for information prompt box, and electronic device

By drawing information prompt boxes in map navigation software and connecting the pixel positions of navigation prompt information, the problem of users having difficulty identifying the positions of multiple prompt boxes is solved, enabling fast and accurate display of information prompt boxes and improving the user experience.

WO2025261118A1PCT designated stage Publication Date: 2025-12-26BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/097924
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-20
Filing Date
2025-05-29
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

When existing map navigation software renders multiple information prompt boxes along the navigation route, it is difficult for users to quickly and accurately determine the location of the prompt information.

Method used

By obtaining the geographical location of the navigation prompt information and converting it into pixel position in the screen coordinate system, calculating the offset parameter, drawing the anchor point position of the information prompt box, and drawing the information prompt box containing the navigation prompt information and the indicator line at the anchor point, the pixel position of the prompt box and the navigation prompt information is connected.

Benefits of technology

Users can quickly and accurately identify the correspondence between navigation prompts and their effective locations, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025097924_26122025_PF_FP_ABST
    Figure CN2025097924_26122025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in embodiments of the present disclosure are a drawing method and apparatus for an information prompt box, and an electronic device. The method is applied to a process of guiding a navigated object to move along a planned navigation route. The method comprises: acquiring a geographic location corresponding to navigation prompt information to be rendered of the navigation route; converting the geographic location corresponding to the navigation prompt information into a pixel position in a screen coordinate system; acquiring an offset parameter corresponding to the navigation prompt information; on the basis of the pixel position of the navigation prompt information and the offset parameter, acquiring a pixel position of a drawing anchor point; and on the basis of the distance from the navigated object to the geographic location corresponding to the navigation prompt information, drawing, at the pixel position of the drawing anchor point, an information prompt box containing the navigation prompt information and an indication line. By means of the solution, a user can quickly and accurately ascertain the correspondence between the navigation prompt information and an effective location thereof when viewing an electronic map displayed on a screen, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Methods, devices, and electronic equipment for drawing information prompt boxes

[0001] This disclosure claims priority to Chinese Patent Application No. 202410799386.0, filed on June 20, 2024, entitled “Method, Apparatus and Electronic Device for Drawing Information Prompt Boxes”, the entire contents of which are incorporated herein by reference. Technical Field

[0002] This disclosure relates to the field of map rendering technology, specifically to a method, apparatus, and electronic device for drawing information prompt boxes. Background Technology

[0003] Existing map navigation applications typically provide navigation guidance information to users in two ways: one is voice guidance, which involves broadcasting navigation guidance information via voice, such as "Please turn right in 200 meters ahead"; the other is visual guidance, which involves rendering navigation guidance information on the device screen for users to view.

[0004] In this context, map-based guidance refers to rendering a navigation route on the electronic map page displayed on the screen, and then rendering information prompt boxes along the route. These prompt boxes display navigation guidance information related to the route, and are typically shaped like a bubble, hence the name "bubble box." For example, if the road along the navigation route has a speed limit sign, an information prompt box can be rendered near the location of that sign on the electronic map, displaying the speed limit value within it. Similarly, if the road along the navigation route has traffic lights (such as vehicle traffic lights, pedestrian crossing lights, etc.), an information prompt box can be rendered near the location of that traffic light on the electronic map, displaying the status of the traffic light within it.

[0005] However, the inventors of this disclosure have found that when there are a large number of information prompt boxes rendered along the navigation route, how to enable users to quickly and accurately determine the location of the prompt information corresponding to the information prompt box on the navigation route through graphic guidance is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0006] To address the problems in the related technologies, this disclosure provides a method, apparatus, and electronic device for drawing information prompt boxes.

[0007] In a first aspect, this disclosure provides a method for drawing an information prompt box, wherein the method is applied to guiding a navigated object to move based on a planned navigation route, and the method includes:

[0008] Obtain the geographic location corresponding to the navigation prompt information to be rendered for the navigation route;

[0009] Convert the geographical location corresponding to the navigation prompt information into pixel positions in the screen coordinate system;

[0010] Obtain the offset parameter corresponding to the navigation prompt information. The offset parameter represents the offset between the pixel position of the drawing anchor point of the prompt box in the screen coordinate system and the pixel position of the navigation prompt information.

[0011] Based on the pixel position and offset parameters of the navigation prompt information, obtain the pixel position of the drawing anchor point;

[0012] Based on the distance between the navigated object and the geographical location corresponding to the navigation prompt, an information prompt box containing the navigation prompt and an indicator line are drawn at the pixel position of the drawing anchor point. The indicator line connects the information prompt box and the pixel position of the navigation prompt.

[0013] Secondly, this disclosure provides an apparatus for drawing an information prompt box, comprising:

[0014] The geolocation acquisition module is configured to acquire the geolocation corresponding to the navigation prompt information to be rendered for the navigation route;

[0015] The location conversion module is configured to convert the geographic location corresponding to the navigation prompt information into a pixel position in the screen coordinate system;

[0016] The offset parameter acquisition module is configured to acquire the offset parameter corresponding to the navigation prompt information. The offset parameter represents the offset between the pixel position of the drawing anchor point of the information prompt box in the screen coordinate system and the pixel position of the navigation prompt information.

[0017] The pixel position acquisition module is configured to obtain the pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the offset parameter;

[0018] The tooltip drawing module is configured to draw a tooltip containing navigation prompts and an indicator line at the pixel position of the drawing anchor point, based on the distance between the navigated object and the geographical location corresponding to the navigation prompt information. The indicator line connects the pixel positions of the tooltip and the navigation prompt information.

[0019] Thirdly, embodiments of this disclosure provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the method described in the first aspect above.

[0020] Fourthly, embodiments of this disclosure provide a computer-readable storage medium for storing computer instructions used by any of the above-described devices, which, when executed by a processor, are used to implement the method described in the first aspect.

[0021] Fifthly, embodiments of this disclosure provide a computer program product comprising computer instructions which, when executed by a processor, are used to implement the method described in the first aspect above.

[0022] The technical solutions provided in this disclosure may have the following beneficial effects:

[0023] This disclosure proposes a method for drawing an information prompt box. The method involves: obtaining the geographical location corresponding to the navigation prompt information to be rendered for the navigation route; converting the geographical location into a pixel position in the screen coordinate system; obtaining the offset between the pixel position of the information prompt box's drawing anchor point in the screen coordinate system and the pixel position of the navigation prompt information as an offset parameter for the navigation prompt information; obtaining the pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the offset parameter; and drawing an information prompt box containing the navigation prompt information and an indicator line connecting the information prompt box and the navigation prompt information's pixel position at the pixel position of the drawing anchor point based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information. Because this disclosure draws an indicator line connecting the information prompt box and the navigation prompt information's pixel position, a visual association is created between the navigation prompt information and the information prompt box used to display it. Furthermore, the pixel position of the navigation prompt information is obtained by converting the geographical location of the navigation prompt information (i.e., the location where the navigation prompt information is effective in the real world). Therefore, when viewing an electronic map displayed on the screen, users can quickly and accurately understand the correspondence between the navigation prompt information and its effective location, significantly improving the user experience.

[0024] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0025] Other features, objects, and advantages of this disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:

[0026] Figure 1 shows a flowchart of a method for drawing an information prompt box according to an embodiment of the present disclosure;

[0027] Figure 2 shows a schematic diagram of an information prompt box according to an embodiment of the present disclosure;

[0028] Figure 3a shows a schematic diagram of an information prompt box according to another embodiment of the present disclosure;

[0029] Figure 3b shows a schematic diagram of an information prompt box according to yet another embodiment of the present disclosure;

[0030] Figure 3c shows a schematic diagram of an information prompt box according to yet another embodiment of the present disclosure;

[0031] Figure 4 shows a structural block diagram of an apparatus for drawing information prompt boxes according to an embodiment of the present disclosure;

[0032] Figure 5 shows a schematic diagram of the structure of an electronic device suitable for implementing a method for drawing information prompt boxes according to an embodiment of the present disclosure. Detailed Implementation

[0033] In the following, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of the exemplary embodiments have been omitted from the drawings.

[0034] In this disclosure, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, figures, steps, behaviors, components, parts or combinations thereof disclosed in this specification, and do not preclude the possibility of the presence or addition of one or more other features, figures, steps, behaviors, components, parts or combinations thereof.

[0035] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0036] The user information (including but not limited to user device information such as location information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals shall be provided for users to choose to authorize or refuse.

[0037] The details of the embodiments of this disclosure are described in detail below through specific examples.

[0038] Figure 1 shows a flowchart of a method for drawing an information prompt box according to an embodiment of the present disclosure. This method is applied in the process of guiding a navigated object based on a planned navigation route. As shown in Figure 1, the method for drawing the information prompt box includes the following steps:

[0039] In step S101, the geographical location corresponding to the navigation prompt information to be rendered for the navigation route is obtained;

[0040] In step S102, the geographical location of the navigation prompt information is converted into pixel position in the screen coordinate system;

[0041] In step S103, the offset parameter corresponding to the navigation prompt information is obtained;

[0042] The offset parameter represents the offset between the pixel position of the drawing anchor point of the information prompt box in the screen coordinate system and the pixel position of the navigation prompt information.

[0043] In step S104, the pixel position of the drawing anchor point is obtained based on the pixel position of the navigation prompt information and the offset parameter;

[0044] In step S105, based on the distance between the navigated object and the geographical location corresponding to the navigation prompt information, an information prompt box and indicator line containing the navigation prompt information are drawn at the pixel position of the drawing anchor point;

[0045] The indicator line connects the pixel positions of the information prompt box and the navigation prompt information.

[0046] In this embodiment, the above-mentioned method for drawing the information prompt box can be executed on a device with computing power. The device may include a mobile terminal, wearable device, vehicle terminal or other device with a display screen, or it may be a device without its own display screen but connected to an external display screen. This disclosure does not limit this.

[0047] In some embodiments, navigation prompts can be used to indicate navigation actions along the navigation route, such as changing lanes, turning left, turning right, etc. They can also be used to indicate traffic events occurring on the roads along the navigation route, such as traffic accidents, road construction, etc., or to indicate ancillary facilities along the roads along the navigation route, such as service areas, traffic cameras, etc. They can also be used to indicate information such as traffic restrictions and prohibitions on the roads along the navigation route, such as a speed limit of 80 km / h or prohibition of entering the right-hand bus lane.

[0048] In some embodiments, the geographical location corresponding to the navigation prompt information is the geographical location where the navigation prompt information is effective. For example, if the navigation prompt information is used to indicate that there is a speed limit sign on the road traversed by the navigation route, then the geographical location of the speed limit sign in the real world is the geographical location corresponding to the navigation prompt information; if the navigation prompt information is used to indicate that there are traffic lights (such as vehicle traffic lights, pedestrian crossing lights, etc.) on the road traversed by the navigation route, then the geographical location of the traffic lights is the geographical location corresponding to the navigation prompt information.

[0049] In some embodiments, the screen coordinate system may be a coordinate system established based on the display screen of the device performing the above-described method for drawing information prompt boxes, wherein the coordinate points of the screen coordinate system correspond to the pixel points in the display screen.

[0050] Converting the geographic location of navigation prompts to pixel positions in the screen coordinate system can be achieved using a transformation relationship from geographic coordinates to screen coordinates. The transformation relationship from geographic coordinates to screen coordinates can be found in existing technologies and will not be detailed here.

[0051] In some embodiments, the offset parameter corresponding to the navigation prompt information is used to represent the offset between the pixel position of the drawing anchor point of the prompt box in the screen coordinate system and the pixel position of the navigation prompt information. This offset may include the horizontal offset of the pixel position of the drawing anchor point in the screen coordinate system relative to the pixel position of the navigation prompt information, and the vertical offset of the pixel position of the drawing anchor point in the screen coordinate system relative to the pixel position of the navigation prompt information. It should be understood that the specific expression of the offset parameter can be set by those skilled in the art according to actual needs or scenarios.

[0052] In some embodiments, the anchor point can be located at the geometric center of the information prompt box, or at any other specified location, such as any location on the boundary of the information prompt box or any location inside the information prompt box. Those skilled in the art can formulate anchor point setting rules according to actual needs or scenarios. When drawing the information prompt box, it can be drawn based on the anchor point.

[0053] In some embodiments, the indicator line can be a straight line or a polyline. To ensure that the indicator line avoids other elements displayed on the electronic map, it is preferable to draw a polyline. The inflection point of the polyline can be used to perform conflict detection between other elements displayed on the electronic map and the indicator line, determine the inflection point of the polyline, and ensure that the indicator line does not cover other elements on the electronic map.

[0054] For example, Figure 2 shows a schematic diagram of an information prompt box according to an embodiment of the present disclosure. To facilitate understanding of the solution of the present disclosure, the following exemplary description is given in conjunction with Figure 2:

[0055] As shown in Figure 2, the navigation prompt information is used to indicate the speed limit signs on the roads along the navigation route. The geographical location of the speed limit sign is (x, y). By converting the geographical location, the pixel position of the speed limit sign in the screen coordinate system can be obtained as (x1, y1). By obtaining the offset parameters (a, b) corresponding to the navigation prompt information, where a is the offset of the drawing anchor point o of the information prompt box in the horizontal direction (i.e., the horizontal direction of the screen coordinate system) relative to the pixel position (x1, y1) of the speed limit sign, and b is the offset of the drawing anchor point o of the information prompt box in the vertical direction (i.e., the vertical direction of the screen coordinate system) relative to the pixel position (x1, y1) of the speed limit sign, the pixel position (x1+a, y1+b) of the drawing anchor point o can be obtained based on the pixel position (x1, y1) of the speed limit sign and the offset parameters (a, b) corresponding to the navigation prompt information. Thus, the information prompt box 201 of the navigation prompt information is drawn at the pixel position (x1+a, y1+b), and an indicator line 202 connecting the information prompt box 201 and the pixel position (x1, y1) of the speed limit sign is drawn. The content of the speed limit sign can be displayed in the information prompt box 201: "Speed ​​limit 90KM / h" (Kilometers Per Hour).

[0056] As illustrated in Figure 2, this embodiment of the present disclosure connects the effective location of the navigation prompt information with the information prompt box used to display the navigation prompt information by drawing indicator lines. This allows users to quickly and accurately understand the correspondence between the navigation prompt information and its effective location when viewing the electronic map displayed on the screen, thereby improving the user experience.

[0057] In some embodiments, the offset parameters include: default offset parameters and dynamic offset parameters. Obtaining the offset parameters corresponding to the navigation prompt information includes:

[0058] Retrieve the default offset parameter corresponding to the navigation prompt information;

[0059] Based on the default offset parameters, at least one dynamic offset parameter is generated, which is related to a preset distance range;

[0060] Based on the pixel position and offset parameters of the navigation prompt information, the pixel position of the drawing anchor point is obtained, specifically including:

[0061] Based on the pixel position of the navigation prompt information and the default offset parameter, obtain the default pixel position of the drawing anchor point;

[0062] Based on the pixel position of the navigation prompt information and the dynamic offset parameters, obtain the dynamic pixel position of the drawing anchor point.

[0063] The navigation prompt's corresponding information box will always be displayed on the screen when the navigated object approaches the geographical location corresponding to the navigation prompt, before passing through the geographical location corresponding to the navigation prompt, or although it has passed through the geographical location corresponding to the navigation prompt but is not far away. The default offset parameter is usually used to draw the navigation prompt's information box on the screen for the first time, while the dynamic offset parameter can be used to draw the information box after the first drawing of the information box.

[0064] The default offset parameter can be found in a pre-stored configuration file. For example, the offset parameter is in XML (Extensible Markup Language) format, and the default offset parameter can correspond to the type of navigation prompt information.

[0065] In some embodiments, generating at least one dynamic offset parameter based on a default offset parameter may include:

[0066] Get the distance from the geographical location of the navigated object to the geographical location corresponding to the navigation prompt;

[0067] Based on the predefined correspondence between distance intervals and offset adjustment parameters, obtain the offset adjustment parameters corresponding to the distance interval in which the distance is located;

[0068] The default offset parameter is adjusted based on this offset adjustment parameter to generate a dynamic offset parameter.

[0069] For example, continuing with the example shown in Figure 2, the default offset parameters are: horizontal offset a is 100 pixels, and vertical offset b is 50 pixels. If the distance from the geographical location of the navigated object to the geographical location corresponding to the navigation prompt information is 500m (meters), by querying the predefined correspondence between distance intervals and offset adjustment parameters, the distance interval where 500m is located can be determined to be (200m, 800m]. Then, the offset adjustment parameters corresponding to this distance interval (200m, 800m) can be determined, for example, reducing the horizontal offset by 20 pixels. Based on the default offset parameters and this offset adjustment parameter, the generated dynamic offset parameters are: horizontal offset a is 80 pixels, and vertical offset b is 50 pixels.

[0070] As shown in Figure 2, the offset parameters include horizontal offset and vertical offset. Therefore, based on the default offset parameters, at least one dynamic offset parameter can be generated, as illustrated in the following example:

[0071] At least one dynamic offset parameter is obtained by reducing the vertical offset in the default offset parameter.

[0072] In this optional implementation, at least one dynamic offset parameter is obtained by reducing the vertical offset of the default offset parameter. Compared with the indicator line drawn based on the default offset parameter, the slope of the indicator line drawn based on the dynamic offset parameter is smaller. This implementation is preferably used when the location of the navigated object is getting closer and closer to the geographical location corresponding to the navigation prompt information. This makes the direction in which the navigated object looks at the effective location of the navigation prompt information along the indicator line closer to the horizontal direction, which helps the navigated object feel that the navigation prompt information is very close to the parking space. This makes the user experience of the navigated object consistent with the visual experience of observing the navigation prompt information in the real world, thus improving the user experience.

[0073] In some embodiments, at least one dynamic offset parameter is obtained by reducing the vertical offset in the default offset parameter, including:

[0074] The first dynamic offset parameter is obtained by reducing the vertical offset in the default offset parameter. The first dynamic offset parameter corresponds to a preset first distance interval.

[0075] At least by reducing the vertical offset in the default offset parameter to 0, a second dynamic offset parameter is obtained, which corresponds to a preset second distance interval;

[0076] Among them, the upper limit of the second distance interval is less than the lower limit of the first distance interval;

[0077] Based on the pixel position of the navigation prompt information and the dynamic offset parameters, the dynamic pixel position of the drawing anchor point is obtained, specifically including:

[0078] Based on the pixel position of the navigation prompt information and the first dynamic offset parameter, obtain the first dynamic pixel position of the drawing anchor point;

[0079] Based on the pixel position of the navigation prompt information and the second dynamic offset parameter, obtain the second dynamic pixel position of the drawing anchor point.

[0080] Continuing the previous example, the default offset parameters are: horizontal offset 'a' is 100 pixels, and vertical offset 'b' is 50 pixels. The predefined distance intervals include a first distance interval (200m, 500m) and a second distance interval (0m, 200m). If the distance between the geographical location of the navigated object and the geographical location corresponding to the navigation prompt is 400 meters, the vertical offset in the default offset parameters is reduced by 20 pixels to obtain the first dynamic offset parameters. In the first dynamic offset parameters, the horizontal offset 'a' is 100 pixels, and the vertical offset 'b' is 30 pixels. Based on the pixel position of the navigation prompt and the first dynamic offset parameters, the drawing anchor is obtained. The first dynamic pixel position of the point; if the distance from the geographical location of the navigated object to the geographical location corresponding to the navigation prompt is 150 meters, then the vertical offset in the default offset parameter is reduced to 0 pixels to obtain the second dynamic offset parameter. The second dynamic offset parameter includes a horizontal offset 'a' of 100 pixels and a vertical offset 'b' of 0 pixels. Based on the pixel position of the navigation prompt and the second dynamic offset parameter, the second dynamic pixel position of the drawing anchor point is obtained. Regardless of whether the indicator line is drawn based on the second dynamic offset parameter or the first dynamic offset parameter, the slope of the indicator line is less than that of the indicator line drawn based on the default offset parameter.

[0081] In some embodiments, the first distance interval can be further divided into multiple sub-distance intervals, wherein the upper limit of a subsequent sub-distance interval is less than the lower limit of a preceding sub-distance interval. For example, the first distance interval can be further divided into a first sub-distance interval, a second sub-distance interval, and a third sub-distance interval, wherein the upper limit of the second sub-distance interval is less than the lower limit of the first sub-distance interval, and the upper limit of the third sub-distance interval is less than the lower limit of the second sub-distance interval.

[0082] As mentioned above, in the above embodiments, the closer the navigated object is to the geographical location of the navigation prompt information, the smaller the longitudinal offset in the dynamic offset parameter, and the smaller the slope of the corresponding indicator line. This makes the direction in which the navigated object looks at the effective location of the navigation prompt information along the indicator line close to the horizontal direction, which helps the navigated object feel that the navigation prompt information is very close to the parking space. This makes the user experience of the navigated object consistent with the visual experience of observing the navigation prompt information in the real world, thus improving the user experience.

[0083] In some embodiments, based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information, an information prompt box containing the navigation prompt information is drawn at the pixel position of the corresponding drawing anchor point, including:

[0084] When the distance between the navigated object and the geographical location corresponding to the navigation prompt is greater than the upper limit of the first distance interval, an information prompt box containing the navigation prompt is drawn at the default pixel position of the drawing anchor point;

[0085] When the distance between the navigated object and the geographical location corresponding to the navigation prompt is within the first distance interval, an information prompt box containing the navigation prompt is drawn at the first dynamic pixel position of the drawing anchor point;

[0086] When the distance between the navigated object and the geographical location corresponding to the navigation prompt is within the second distance interval, an information prompt box containing the navigation prompt is drawn at the second dynamic pixel position of the drawing anchor point.

[0087] Figures 3a, 3b and 3c show schematic diagrams of information prompt boxes drawn according to the method provided in this disclosure. To better understand the method provided in this disclosure, the solution of this disclosure will be described by way of example below with reference to Figures 3a-3c.

[0088] Assume the navigation prompt is used to indicate that there are traffic cameras on the roads along the navigation route. The pixel position of the camera in the screen coordinate system is (x0, y0). The default offset parameters are: horizontal offset a is 100 pixels and vertical offset b is 50 pixels. The predefined distance intervals include a first distance interval (200m, 500m) and a second distance interval (0m, 200m).

[0089] As shown in Figure 3a, if the distance between the geographical location of the navigated object and the geographical location corresponding to the navigation prompt information is 800 meters, then the distance between the navigated object and the geographical location corresponding to the navigation prompt information is greater than the upper limit of the first distance interval. At the point (x2, y2) of the anchor point, an information prompt box 301 containing the navigation prompt information is drawn, where (x2, y2) = (x0 + a, y0 + b).

[0090] As shown in Figure 3b, if the distance between the geographical location of the navigated object and the geographical location corresponding to the navigation prompt information is 400 meters, then the distance between the navigated object and the geographical location corresponding to the navigation prompt information is within the first distance interval. The vertical offset in the default offset parameter is reduced by 20 pixels to obtain the first dynamic offset parameter. The horizontal offset a in the first dynamic offset parameter is 100 pixels and the vertical offset b' is 30 pixels. Based on the pixel position of the navigation prompt information and the first dynamic offset parameter, the first dynamic pixel position (x3, y3) of the drawing anchor point is obtained, and an information prompt box 301 containing the navigation prompt information is drawn at the first dynamic pixel position (x3, y3), where (x3, y3) = (x0 + a, y0 + b').

[0091] As shown in Figure 3c, if the distance between the geographical location of the navigated object and the geographical location corresponding to the navigation prompt information is 120 meters, then the distance between the navigated object and the geographical location corresponding to the navigation prompt information is in the second distance interval. The vertical offset in the default offset parameter is reduced to 0 to obtain the second dynamic offset parameter. The second dynamic offset parameter includes a horizontal offset of 100 pixels and a vertical offset of 0 pixels. Based on the pixel position of the navigation prompt information and the second dynamic offset parameter, the second dynamic pixel position (x4, y4) of the drawing anchor point is obtained. An information prompt box 301 containing the navigation prompt information is drawn at the second dynamic pixel position (x4, y4), where (x4, y4) = (x0 + a, y0 + b").

[0092] In this optional implementation, information prompt boxes containing navigation prompt information are drawn at different pixel positions based on the distance between the navigated object and the geographical location corresponding to the navigation prompt information. As the location of the navigated object gets closer and closer to the geographical location corresponding to the navigation prompt information, the orientation of the information prompt box for the navigated object is made closer to the horizontal direction. This helps the navigated object to feel that the effective location of the navigation prompt information is very close to the navigated object, so that the user experience of the navigated object is consistent with the relative position feeling of observing the navigation prompt information in the real world, thus improving the user experience.

[0093] In some embodiments, drawing indicator lines includes:

[0094] If the navigation prompt is a traffic light, then obtain the current color of the traffic light; and draw the color of the indicator line based on the current color of the traffic light.

[0095] If the navigation prompt is for other transportation facilities, then obtain the pre-configured indicator line color;

[0096] In some embodiments, the indicator line color corresponding to the current time can also be obtained. For example, if the current time is 9:00, which belongs to a predefined daytime time interval (e.g., (7:00, 19:00)), a query can be performed in the predefined time interval and indicator line color correspondence to obtain the indicator line color corresponding to the daytime time interval, such as black; if the current time is 21:00, which belongs to a predefined nighttime time interval (e.g., (19:00, 7:00)), a search can be performed in the predefined time interval and indicator line color correspondence to obtain the indicator line color corresponding to the nighttime time interval, such as white.

[0097] In this optional implementation, the color of the indicator line can be drawn more flexibly, allowing users to know the current signal color of the traffic light, the type of traffic facility, or the current time by looking at the color of the indicator line, thus improving the user experience.

[0098] In some embodiments, the method further includes:

[0099] If the navigated object has already passed through the geographical location indicated by the navigation prompt along the navigation route, then remove the indicator lines and information prompt boxes from the navigation prompt.

[0100] In this optional implementation, if the navigated object has already passed through the geographical location indicated by the navigation prompt along the navigation route, the navigated object will no longer be affected by the traffic events indicated by the navigation prompt. Therefore, the navigated object does not need to check the indicator lines and information prompts to know the navigation prompts and their effective location. By removing the indicator lines and information prompts of the navigation prompts, it can be ensured that the electronic map page can be updated in a timely manner, avoiding interference to users and improving the user experience.

[0101] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein.

[0102] Figure 4 shows a structural block diagram of an apparatus for drawing an information prompt box according to an embodiment of the present disclosure. This apparatus can be implemented as part or all of an electronic device through software, hardware, or a combination of both. As shown in Figure 4, the apparatus for drawing the information prompt box includes:

[0103] The geolocation acquisition module 401 is configured to acquire the geolocation corresponding to the navigation prompt information to be rendered for the navigation route;

[0104] The location conversion module 402 is configured to convert the geographical location corresponding to the navigation prompt information into a pixel position in the screen coordinate system;

[0105] The offset parameter acquisition module 403 is configured to acquire the offset parameter corresponding to the navigation prompt information. The offset parameter represents the offset between the pixel position of the drawing anchor point of the information prompt box in the screen coordinate system and the pixel position of the navigation prompt information.

[0106] The pixel position acquisition module 404 is configured to acquire the pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the offset parameter;

[0107] The tooltip drawing module 405 is configured to draw an information tooltip containing navigation prompt information and an indicator line at the pixel position of the drawing anchor point based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information. The indicator line connects the pixel positions of the information tooltip and the navigation prompt information.

[0108] This embodiment of the disclosure connects the effective location of navigation prompts with the information prompt box used to display the navigation prompts by drawing indicator lines. This allows users to quickly and accurately understand the correspondence between navigation prompts and their effective locations when viewing the electronic map on the screen, thus improving the user experience.

[0109] The drawing device for the information prompt box in this embodiment corresponds to the drawing method for the information prompt box described above. For specific details, please refer to the description of the drawing method for the information prompt box described above, which will not be repeated here.

[0110] Figure 5 shows a schematic diagram of the structure of an electronic device suitable for implementing a method for drawing information prompt boxes according to an embodiment of the present disclosure.

[0111] As shown in Figure 5, the electronic device 500 includes a processing unit 501, which can be implemented as a CPU (Central Processing Unit), GPU (Graphics Processing Unit), FPGA (Field Programmable Gate Array), NPU (Neural Network Processing Unit), or other processing units. The processing unit 501 can execute various processes according to any of the above-described embodiments of the methods disclosed herein, based on a program stored in read-only memory (ROM) 502 or a program loaded from storage portion 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0112] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. Removable media 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 510 as needed so that computer programs read from them can be installed into storage section 508 as needed.

[0113] In particular, according to embodiments of this disclosure, any of the methods described above in the embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing any of the methods in the embodiments of this disclosure. In such an embodiment, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511.

[0114] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0115] The units or modules described in the embodiments of this disclosure can be implemented in software or hardware. The described units or modules can also be located in a processor, and the names of these units or modules do not necessarily constitute a limitation on the unit or module itself.

[0116] In another aspect, this disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more computer instructions, which are used by one or more processors to perform the methods described in this disclosure.

[0117] In another aspect, this disclosure also provides a computer program product including computer instructions that, when executed by a processor, implement the methods as disclosed herein.

[0118] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

Claims

1. A method for drawing an information prompt box, wherein, The method is applied to guide a navigated object along a planned navigation route, and the method includes: Obtain the geographical location corresponding to the navigation prompt information to be rendered for the navigation route; Convert the geographical location corresponding to the navigation prompt information into pixel positions in the screen coordinate system; Obtain the offset parameter corresponding to the navigation prompt information, wherein the offset parameter represents the offset between the pixel position of the drawing anchor point of the information prompt box in the screen coordinate system and the pixel position of the navigation prompt information; The pixel position of the drawing anchor point is obtained based on the pixel position of the navigation prompt information and the offset parameter; Based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information, an information prompt box and an indicator line containing the navigation prompt information are drawn at the pixel position of the drawing anchor point. The indicator line connects the information prompt box and the pixel position of the navigation prompt information.

2. The method according to claim 1, wherein, The offset parameters include: default offset parameters and dynamic offset parameters. Obtaining the offset parameters corresponding to the navigation prompt information includes: Obtain the default offset parameter corresponding to the navigation prompt information; Based on the default offset parameter, at least one dynamic offset parameter is generated, which is related to a preset distance range; The step of obtaining the pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the offset parameter specifically includes: Based on the pixel position of the navigation prompt information and the default offset parameter, obtain the default pixel position of the drawing anchor point; The dynamic pixel position of the drawing anchor point is obtained based on the pixel position of the navigation prompt information and the dynamic offset parameter.

3. The method according to claim 2, wherein, The default offset parameters include horizontal offset and vertical offset. The generation of at least one dynamic offset parameter based on the default offset parameters includes: At least one dynamic offset parameter is obtained by reducing the vertical offset in the default offset parameter.

4. The method according to claim 3, wherein, The process of obtaining at least one dynamic offset parameter by reducing the vertical offset in the default offset parameter includes: A first dynamic offset parameter is obtained by reducing the vertical offset in the default offset parameter, and the first dynamic offset parameter corresponds to a preset first distance interval; At least by reducing the longitudinal offset in the default offset parameter to 0, a second dynamic offset parameter is obtained, which corresponds to a preset second distance interval; Wherein, the upper limit of the second distance interval is less than the lower limit of the first distance interval; The step of obtaining the dynamic pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the dynamic offset parameter specifically includes: Based on the pixel position of the navigation prompt information and the first dynamic offset parameter, the first dynamic pixel position of the drawing anchor point is obtained; The second dynamic pixel position of the drawing anchor point is obtained based on the pixel position of the navigation prompt information and the second dynamic offset parameter.

5. The method according to claim 4, wherein, Based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information, an information prompt box containing the navigation prompt information is drawn at the pixel position of the drawing anchor point, including: When the distance from the navigated object to the geographical location corresponding to the navigation prompt information is greater than the upper limit of the first distance interval, an information prompt box containing the navigation prompt information is drawn at the default pixel position of the drawing anchor point; When the distance from the navigated object to the geographical location corresponding to the navigation prompt information is within the first distance range, an information prompt box containing the navigation prompt information is drawn at the first dynamic pixel position of the drawing anchor point; When the distance from the navigated object to the navigation prompt information is within the second distance range, an information prompt box containing the navigation prompt information is drawn at the second dynamic pixel position of the drawing anchor point.

6. The method according to any one of claims 1-5, wherein, The indicator line can be a straight line or a broken line.

7. The method according to any one of claims 1-6, wherein, The drawing of the indicator line includes: If the navigation prompt information is a traffic light, then obtain the current color of the traffic light; and draw the color of the indicator line according to the current color of the traffic light. If the navigation prompt information is for other transportation facilities, then obtain the pre-configured indicator line color; The color of the indicator line is drawn according to the color of the indicator line.

8. The method according to any one of claims 1-7, wherein, The method further includes: If the navigated object has already passed through the geographical location of the navigation prompt information along the navigation route, then remove the indicator line of the navigation prompt information and the information prompt box.

9. A device for drawing an information prompt box, comprising: The geolocation acquisition module is configured to acquire the geolocation corresponding to the navigation prompt information to be rendered for the navigation route; The location conversion module is configured to convert the geographical location corresponding to the navigation prompt information into a pixel position in the screen coordinate system; The offset parameter acquisition module is configured to acquire the offset parameter corresponding to the navigation prompt information. The offset parameter represents the offset between the pixel position of the drawing anchor point of the information prompt box in the screen coordinate system and the pixel position of the navigation prompt information. The pixel position acquisition module is configured to acquire the pixel position of the drawing anchor point based on the pixel position of the navigation prompt information and the offset parameter; The prompt box drawing module is configured to draw an information prompt box and an indicator line containing the navigation prompt information at the pixel position of the drawing anchor point based on the distance from the navigated object to the geographical location corresponding to the navigation prompt information. The indicator line connects the information prompt box and the pixel position of the navigation prompt information.

10. An electronic device comprising a memory and a processor; wherein, The memory is used to store one or more computer instructions, which are executed by the processor to implement the method steps of any one of claims 1-8.

11. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any one of claims 1-8.

12. A computer program product, wherein, Includes computer instructions that, when executed by a processor, implement the method as described in any one of claims 1-8.

Citation Information

Patent Citations

  • Method and device for adjusting display parameters of navigation image

    CN105865480A

  • Information display method and device and storage medium

    CN114077372A

  • Display position determination method and device, electronic equipment and computer program product

    CN117029866A

  • Display position determination method and device and storage medium

    CN117109627A