Map rendering method and device, electronic equipment and program product
By differentiating the rendering of navigation end points in the map page, combining the positioning position and scale adjustment of the navigation object, the problem of users having difficulty finding the navigation end points after the navigation is completed is solved, and fast and accurate navigation end points are achieved, improving the user experience.
Patent Information
- Application Number
- CN202410182258.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2025-08-19
AI Technical Summary
After the existing navigation software has ended, there is a distance difference between the actual arrival location of the user and the navigation end point, making it difficult for users to find the navigation end point quickly and accurately.
By differentiating the target interest points in the map page, using rendering configuration parameters and rendering element data, control the target interest points to form visual differences with other interest points, and combine the positioning position of the navigation object to determine the target scale and display mode to ensure that the target interest points are significantly displayed on the screen.
It improves users' ability to quickly find navigation end points in the real world, reduces user operation costs, and improves navigation experience.
Smart Images

Figure CN120510262A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of map rendering technology, and in particular to a map rendering method, device, electronic device and program product. Background Art
[0002] Users can use navigation-enabled applications to find the destination and, guided by the application, follow the navigation route planned by the application to reach the destination. However, the inventors of this application have discovered that when navigation ends (the application believes it has guided the user to the destination and displays a navigation end interface), there is a certain distance between the user's actual arrival location and the location of the navigation destination. Since navigation ends, the application no longer provides navigation guidance information to the user, which can prevent the user from quickly and accurately finding the destination. Therefore, providing a solution that can help users find the destination as quickly and accurately as possible has become a problem that those skilled in the art need to solve. Summary of the Invention
[0003] The present application provides a map rendering method, device, electronic device and program product that can help users find the target point of interest as quickly as possible.
[0004] In a first aspect, the present application provides a map rendering method, the method comprising:
[0005] In response to an instruction to render a target point of interest on a map page, obtaining map rendering data of the target point of interest;
[0006] Parsing rendering configuration parameters and rendering element data of the target point of interest from the map rendering data;
[0007] The target point of interest is rendered in a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
[0008] In some embodiments, the method is applied after the navigated object reaches the navigation end point, and the method further includes:
[0009] Obtaining the location of the navigated object when it reaches the navigation destination;
[0010] In response to an instruction to display a target page including a map page on the screen, generating an instruction to render a target point of interest on the map page, the target point of interest being the navigation destination;
[0011] The rendering of the target point of interest on a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest is specifically as follows:
[0012] The target point of interest is rendered in a map page displayed on a screen based on the rendering configuration parameters of the target point of interest, the rendering element data, and the positioning position of the navigated object when it reaches the navigation end point.
[0013] In some embodiments, the rendering configuration parameters of the target point of interest include at least the location coordinates of the target point of interest. Before rendering the target point of interest on the map page displayed on the screen based on the rendering configuration parameters of the target point of interest, the rendering element data, and the location of the navigated object when it reaches the navigation destination, the method further includes:
[0014] Determining the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when the navigated object reaches the navigation end point;
[0015] If the distance is greater than a first preset distance and less than or equal to a second preset distance, determining that the map page displayed on the screen is a two-dimensional map page, wherein the first preset distance is less than the second preset distance;
[0016] If the distance is less than or equal to the first preset distance, it is determined that the map page displayed on the screen is a three-dimensional map page.
[0017] In some embodiments, rendering the target point of interest on a map page displayed on a screen based on the rendering configuration parameters and rendering element data of the target point of interest includes:
[0018] Determining a target scale based on rendering configuration parameters of the target point of interest and the location of the navigated object when it reaches the navigation endpoint, wherein the map page corresponding to the target scale is such that both the target point of interest and the navigated object are within the map page displayed on the screen;
[0019] The map page includes an electronic map with the location of the navigated object when it reaches the navigation destination as the center position of the electronic map, displays the navigated object and the electronic map of the target scale, and renders the target point of interest on the electronic map based on the rendering configuration parameters and rendering element data of the target point of interest.
[0020] In some embodiments, the target point of interest is a planar point of interest, and the rendering configuration parameters of the target point of interest further include: contour point coordinates of the target point of interest, and determining the target scale based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point includes:
[0021] Determining a contour bounding box of the target interest point according to the contour point coordinates of the target interest point;
[0022] The target scale is determined according to the outline bounding box of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point.
[0023] In some embodiments, the target point of interest is a point-like point of interest, and the rendering configuration parameters include at least: the position coordinates of the point-like point of interest. The target scale is determined based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point, specifically including:
[0024] Determining the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when the navigated object reaches the navigation end point;
[0025] The target scale is determined according to the distance.
[0026] In some embodiments, if the target point of interest is a point-shaped point of interest, the rendering element data includes at least: an icon;
[0027] If the target interest point is a planar interest point, the rendering element data includes at least: an icon, and a rendering rule for a planar area of the planar interest point, wherein the rendering rule includes at least one of highlighting and rendering dynamic effects;
[0028] The icon is displayed at a position corresponding to the target point of interest in the map page, and is used to indicate the target point of interest.
[0029] In a second aspect, the present application provides a map rendering device, the device comprising:
[0030] an acquisition module, configured to acquire map rendering data of a target point of interest in response to an instruction to render the target point of interest on a map page;
[0031] A parsing module, configured to parse the map rendering data to obtain rendering configuration parameters and rendering element data of the target point of interest;
[0032] A rendering module is configured to render the target point of interest in a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
[0033] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.
[0034] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory; the processor is communicatively connected to the memory;
[0035] The memory stores computer instructions;
[0036] The processor executes the computer instructions stored in the memory to implement the method as described in any one of the first aspects.
[0037] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which implements the method described in any one of the first aspects when executed by a processor.
[0038] The map rendering method, device, electronic device and program product provided by the present application can respond to the instruction to render the target point of interest on the map page, and render the target point of interest on the map page based on the rendering configuration parameters and rendering element data of the target point of interest. Since the target point of interest of the present application is rendered in the map page according to the corresponding rendering configuration parameters and rendering element data, the rendering configuration parameters and rendering element data can be used to control the target point of interest to form a differentiated visual effect from other points of interest displayed on the map page, so that the user can quickly notice the target point of interest on the map page. Furthermore, when the target point of interest is the navigation end point of the navigation, the navigation end point displayed differently on the map page also helps the user to quickly find the corresponding location in the real world, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A schematic diagram of a map page of an existing application software;
[0041] Figure 2 A flowchart of a map rendering method provided in this application;
[0042] Figure 3 A schematic diagram of the map page of the application software provided for this application;
[0043] Figure 4 A flowchart of another map rendering method provided by this application;
[0044] Figure 5 A schematic diagram of another map page provided for this application;
[0045] Figure 6A schematic diagram of the structure of a map rendering device provided in an embodiment of the present application;
[0046] Figure 7 A schematic structural diagram of an electronic device 110 provided in an embodiment of the present application.
[0047] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0048] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions in this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0049] The following first explains some of the noun concepts involved in this application:
[0050] Point-like points of interest: Bus stops, subway stations, shops, etc. in the real world can be abstracted as physical elements of a point and expressed as point-like points of interest in map data.
[0051] Area points of interest: Physical features in the real world that cover a large geographical area, such as parks, residential areas, sports fields, and buildings, are expressed as area points of interest in map data.
[0052] Protocol Buffer Protocol (PB), also known as the PB protocol, is a cross-platform serialized data structure protocol. It is commonly used for network communication. Data transmitted using the PB protocol is characterized by fast decoding speed and compact size.
[0053] With the advancement of computer technology, more and more users are using navigation-enabled applications. However, through research, the inventors discovered that when the application believes it has guided the user to the navigation destination and displays the navigation end screen, there may be a discrepancy between the user's actual arrival location and the intended destination, due to factors such as the navigation destination being inside a building and inaccurate positioning of the user's actual arrival location.
[0054] The existing technology also displays the navigation end point on the navigation end page, such as Figure 1As shown, the existing application software displays a navigation end page after the navigation is completed. The navigation end page includes a two-dimensional (2D) map page. In the 2D map page, a bubble box or other mark indicating that this is the navigation end point is displayed at the position corresponding to the navigation end point. However, the inventor found that after the navigation is completed, the application software will no longer continue to provide the user with navigation guidance information for the navigation end point. The existing method of only displaying a mark at the location of the navigation end point is still insufficient to guide the user to quickly find the navigation end point in the real world. After the navigation is completed, a large number of users will use the application software to search for the navigation end point again to find more information that can help users find the navigation end point in the real world. Such operations increase the user's usage cost.
[0055] In order to solve the above-mentioned problems existing in existing application software, the present application proposes a map rendering method that can differentiate the target point of interest from other points of interest displayed on a map page.
[0056] It should be understood that this application has no restrictions on the navigation scenarios in which the map rendering method is used. For example, the application software can apply the map rendering method provided by this application in any navigation scenario such as driving navigation, bus navigation, and cycling navigation.
[0057] It should be understood that the navigation scenario is only one possible application scenario of the map rendering method provided in this application. Optionally, the map rendering method provided in this application can be used in any scenario that requires differentiated display of target points of interest, such as scenarios for searching points of interest or recommending points of interest.
[0058] The map rendering method provided in this application is executed by application software. This application software can be an application software with map navigation functions or an application software with only map rendering functions. This application software can be installed on electronic devices such as mobile phones and vehicle computers. When the application software is installed on a mobile phone, it can also be called an application program (APP); when installed on a vehicle computer, the application software is software pre-installed by the vehicle manufacturer.
[0059] The technical solutions of the present application are described in detail below in conjunction with specific embodiments. The specific embodiments provided in this application can be combined with each other, and the same or similar technical means or technical features will not be repeated in each embodiment.
[0060] Figure 2 A flowchart of a map rendering method provided in this application, the method comprising:
[0061] S101 : In response to an instruction to render a target point of interest on a map page, obtain map rendering data of the target point of interest.
[0062] The present application has no restrictions on the type of target points of interest, which may be point-shaped points of interest, surface-shaped points of interest, etc. The map page may be any page (a page may also be referred to as an interface) that includes an electronic map, for example, the map page may be the homepage of the application software that includes an electronic map (that is, the first page a user sees when opening the application software), the navigation end page that includes an electronic map, or a page that displays search results for points of interest that includes an electronic map.
[0063] Since the map rendering method provided in this application can be applied in a variety of scenarios, the above-mentioned "instruction to render the target point of interest on the map page" can be triggered in the following scenarios:
[0064] 1. Navigation ends;
[0065] 2. Receive the search results of the target point of interest;
[0066] 3. The points of interest included in the map page opened by the user include points of interest that meet the preset differentiated rendering conditions, among which:
[0067] The differentiated rendering conditions may be based on user pre-settings, for example, the user may pre-set "differentiated rendering when the point of interest is a scenic spot", or may be actively recommended based on user preferences.
[0068] Optionally, the map rendering data of the target point of interest can be data requested in real time from the server side by the application software in response to an instruction to render the target point of interest on the map page, or it can be data obtained from locally stored or cached data by the application software in response to an instruction to render the target point of interest on the map page.
[0069] S102: Parsing rendering configuration parameters and rendering element data of the target point of interest from the map rendering data.
[0070] Among them, the above-mentioned rendering configuration parameters may include, for example: the coordinates of the contour points of the target point of interest, color, font, the displayable level of the target point of interest (that is, the displayable scale, indicating at which scales the target point of interest can be displayed in the electronic map), light and shadow effects (highlights, shadows) and other configuration parameters required for rendering. The above-mentioned rendering element data may include, for example: element data such as icons, buildings, animations, etc. The rendering element data of different types of target points of interest may be the same or different. Those skilled in the art can define the specific data content included in the rendering configuration parameters and rendering element data as needed, and there is no strict distinction between rendering configuration parameters and rendering element data. The examples in this application should not be interpreted as limitations on rendering configuration parameters and rendering element data.
[0071] The specific implementation method of the application software parsing the rendering configuration parameters and rendering element data of the target point of interest from the map rendering data is related to the data transmission protocol, data format, etc. adopted by the application software. The data transmission protocol, data format, etc. are not the invention of this application. Those skilled in the art can parse the rendering configuration parameters and rendering element data of the target point of interest from the map rendering data based on the data transmission protocol, data format, etc. adopted by them. The specific parsing process will not be repeated in this application.
[0072] S103: Render the target point of interest in a map page displayed on the screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
[0073] Rendering a target point of interest on a map page displayed on a screen can be understood as displaying the target point of interest on an electronic map included in the map page displayed on the screen based on the rendering configuration parameters and rendering element data of the target point of interest. The screen refers to the screen of a device on which application software is installed, and the application software executes the method provided by this application.
[0074] As mentioned above, different types of target interest points may correspond to different rendering element data. The following describes target interest points as point-like interest points and planar interest points, respectively.
[0075] If the target point of interest is a point-like point of interest, such as a bus stop, the rendering element data of the point-like point of interest may include at least: an icon. The icon is displayed at the corresponding position of the target point of interest in the map page, and can be used to indicate the target point of interest. Taking a bus stop as an example, the application software can display the icon at the corresponding position of the bus stop in the map page. In order to make the target point of interest form a differentiated visual effect from other points of interest displayed on the map page, on the one hand, the rendering configuration parameters of the bus stop can be used to control the other points of interest displayed on the map page to not display icons, or to control the color of the bus stop icon to have obvious visual differences from the icons of other points of interest, so that users can quickly notice the target point of interest on the map page.
[0076] If the target point of interest is a planar point of interest, such as a lake, the rendering element data of the planar point of interest may at least include: an icon, a rendering rule for the planar area of the planar point of interest. Among them, the rendering rule may, for example, include: at least one of highlighting and rendering dynamic effects. Taking a lake as an example, the rendering dynamic effect in the rendering rule of the planar area of the lake may be, for example, an animation (such as swimming fish, a boat). The application software may display the icon at the geometric center of the lake, display swimming fish, boats, etc. in the water, and control the lake area to present a highlight or shimmering display effect through rendering configuration parameters. If the planar point of interest is a building, the rendering element data of the building may include: an icon, a building body, and an animation. The application software may display the icon and the building body at the corresponding position of the building in the map page, and control the highlighting of a certain face or the entire building body through rendering configuration parameters, and render dynamic effects (luminescence, fading in and out), etc. on the building body, so that the building forms a differentiated visual effect from other points of interest in the map page.
[0077] In this embodiment, the application software can respond to an instruction to render a target point of interest on a map page, and based on the rendering configuration parameters and rendering element data of the target point of interest, render the target point of interest on the map page. Since the target point of interest of this application is rendered in accordance with the corresponding rendering configuration parameters on the map page, the rendering configuration parameters and rendering element data can be used to control the target point of interest to form a differentiated visual effect from other points of interest displayed on the map page, thereby enabling the user to quickly notice the target point of interest on the map page. Furthermore, when the target point of interest is the navigation destination of the navigation, the navigation destination displayed differently on the map page also helps the user quickly find the corresponding location in the real world, thereby improving the user experience.
[0078] The map rendering method provided by this application is described below by taking the above method applied to the navigation end scenario as an example, in which the target point of interest is the navigation end point.
[0079] like Figure 3 As shown, when the application software determines that the navigated object has reached the navigation end point, it will usually display the navigation end page, and obtain the location of the navigated object when it reaches the navigation end point. In one implementation, the navigation end page includes a control for returning to the target page (such as the aforementioned home screen page), and displays a prompt message prompting the user to click the control to find the navigation end point, and the user clicks the "control to return to the home screen page". The application software can generate the above-mentioned instruction for rendering the navigation end point on the map page in response to the screen displaying an instruction for the target page containing a map page. In another implementation, if the navigation end page includes an electronic map, it can also generate an instruction for rendering the navigation end point on the navigation end page when it is determined that the navigated object has reached the navigation end point.
[0080] In response to the aforementioned instruction to render the navigation destination on the map page, the application software can obtain the map rendering data for the navigation destination and parse the rendering configuration parameters and rendering element data for the navigation destination from the map rendering data. The application software can send a data request containing the navigation destination identifier to the server, which will then return the map rendering data for the navigation destination. This method of obtaining data has improved data freshness and accuracy. The application software can then render the target point of interest on the map page displayed on the screen based on the rendering configuration parameters and rendering element data for the target point of interest.
[0081] Furthermore, at the end of navigation, if the location of the navigated object is inconsistent with the navigation destination, the navigated object needs to know the positional relationship between its location (positioning location) and the navigation destination. Therefore, in a preferred embodiment, the application software can render the target point of interest in the map page displayed on the screen based on the rendering configuration parameters, rendering element data and the positioning location of the target point of interest when the navigated object reaches the navigation destination. That is, the map page includes both the target point of interest and the navigated object. Similarly, this preferred embodiment is also applicable to any other scenario that needs to display the target point of interest and the location of the object paying attention to the point of interest.
[0082] The following describes in detail how the application software renders the target point of interest on the map page displayed on the screen based on the rendering configuration parameters of the target point of interest, the rendering element data, and the location of the navigated object when it reaches the navigation destination:
[0083] As a possible implementation method, the application software can determine the target scale based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point. The map page corresponding to the target scale makes the target point of interest and the navigated object both within the map page displayed on the screen. As mentioned above, the map page is a page that includes an electronic map. Specifically, the application software can use the positioning position of the navigated object when it reaches the navigation end point as the center position of the electronic map included in the map page, display the navigated object and the electronic map of the target scale, and render the target point of interest on the electronic map based on the rendering configuration parameters and rendering element data of the target point of interest. The rendering process of the electronic map is not the invention of this application, and this application will not elaborate on how to display the electronic map of the target scale.
[0084] In some embodiments, the method for determining the target scale for different types of target points of interest may be different. Therefore, the method provided by this application can first determine the type of the target point of interest when the application software determines the target scale. For example, the type of the target point of interest can be determined based on the attribute information of the target point of interest, and then the process branch for determining the target scale can be executed based on the type of the target point of interest. The following describes the embodiments of determining the target scale provided by this application for target points of interest that are surface points of interest and point points of interest, respectively.
[0085] If the target point of interest is a planar point of interest, since the planar point of interest covers a certain geographical range in the real world, the planar point of interest is not represented as a point on the electronic map, but rather covers a certain area. Therefore, the rendering configuration parameters of the planar target point of interest also include: the coordinates of the contour points of the target point of interest. To this end, when determining the target scale of the planar target point of interest, the application software can determine the contour bounding box of the target point of interest based on the coordinates of the contour points of the target point of interest. The contour bounding box is used to represent the coverage area of the target point of interest. Then, based on the contour bounding box of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point, the target scale is determined to ensure that the target point of interest can be fully displayed within the map page displayed on the screen. The specific implementation method of the application software obtaining the contour bounding box of the target point of interest based on the coordinates of the contour points of the target point of interest can refer to any existing method for determining the contour bounding box based on the coordinates of the contour points of an object, and this application will not repeat it in detail. If multiple target scales are determined, the application software can use the maximum scale that allows both the planar target point of interest and the navigated object to be fully displayed within the map page displayed on the screen as the target scale.
[0086] Through the above method, the application software not only realizes the differentiated display of the target point of interest, but also ensures the complete display of the target point of interest. Moreover, since the target point of interest and the navigated object are both displayed on the map page, the navigated object can intuitively grasp the relative position relationship between the location of the navigated object and the location of the target point of interest through the map page, helping users to quickly find the target point of interest (navigation destination) and improving the user navigation experience.
[0087] If the target point of interest is a point-like point of interest, the point-like point of interest is expressed as a point in the electronic map. Therefore, the rendering configuration parameters of the target point of interest may include: the position coordinates of the point-like point of interest. The application software can calculate the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point. Then, the application software determines the target scale based on the distance so that both the target point of interest and the navigated object are displayed within the map page. For example, the application software can determine the target scale based on the distance between the above-mentioned target point of interest and the navigated object, as well as the mapping relationship between the distance and the scale.
[0088] The above is an example of determining a target scale provided by this application. As another possible implementation, regardless of whether the target POI is a planar POI or a point POI, the target scale can be set based on the scenario. The application software then displays the electronic map corresponding to the preset scale on the screen. For example, in a navigation scenario, where the navigation destination is often close to the location of the navigated object, a larger scale can be set as the target scale.
[0089] As mentioned above, the map page of the present application is a page containing an electronic map. Electronic maps have two common display forms: two-dimensional and three-dimensional. In order to make the display effect of the electronic map included in the map page meet the needs of the corresponding scene, before displaying the target point of interest, it can be further determined whether to render a two-dimensional map page or a three-dimensional map page. For navigation scenarios, the application software can first determine the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point, and judge the relationship between the distance and the first preset distance and the second preset distance to determine the display mode of the map page. It can also be understood as determining that the map page includes a display mode of the electronic map. Among them, the first preset distance is less than the second preset distance.
[0090] If the distance between the target point of interest and the navigated object is greater than the first preset distance and less than or equal to the second preset distance, it means that the navigated object is currently slightly far away from the target point of interest. The application software can then determine that the map page displayed on the screen is a two-dimensional map page, and render and display the two-dimensional map page. Exemplarily, the application software can, for example, obtain the rendering configuration parameters and rendering element data for rendering the target point of interest as a two-dimensional map element from the rendering configuration parameters and rendering element data of the above-mentioned target point of interest, and based on the rendering configuration parameters and rendering element data, render the two-dimensional target point of interest in the two-dimensional map page displayed on the screen. When the navigated object is slightly far away from the target point of interest, the two-dimensional map page can effectively prevent the target point of interest from being blocked, and the navigated object can clearly see the relative position relationship between its location and the target point of interest.
[0091] If the distance between the target point of interest and the navigated object is less than or equal to the first preset distance, indicating that the navigated object is relatively close to the target point of interest, the application software determines that the map page displayed on the screen is a three-dimensional map page and renders the three-dimensional map page. Exemplarily, the application software can obtain the rendering configuration parameters and rendering element data for rendering the target point of interest as a three-dimensional map element from the rendering configuration parameters and rendering element data of the target point of interest, and based on the rendering configuration parameters and rendering element data, render the three-dimensional target point of interest in the three-dimensional map page displayed on the screen. When the navigated object is relatively close to the target point of interest, since the three-dimensional map page displays richer information, it can make it more convenient for the navigated object to find the target point of interest that is relatively close.
[0092] If the distance between the target POI and the navigated object is greater than the second predetermined distance, it indicates that the navigated object is currently too far from the target POI. After navigation is completed, if the distance from the navigated object to the target POI, i.e., the navigation destination, is too far, it is likely because the navigated object no longer needs to reach the navigation destination. In this case, the application software may stop monitoring the aforementioned instructions for rendering the target POI on the map page.
[0093] The above is the method for differential rendering of target points of interest provided by this application. Since the purpose of differential rendering of target points of interest is to help users find the target points of interest faster in the real world, when certain conditions are met, the target points of interest may no longer be displayed differentially. The following describes an embodiment of no longer differentially displaying target points of interest.
[0094] As a possible implementation, after the target POI is differentially rendered on the map page, if the application software is restarted, the target POI with differentiated visual effects will no longer be displayed when the map page including the target POI is displayed.
[0095] As another possible implementation method, after the target point of interest is differentially rendered on the map page, if the user searches for a new point of interest on the map page, it means that the user has changed the place of interest. At this time, no matter whether the user navigates to the new point of interest or views the new point of interest on the map page, the target point of interest will no longer be displayed differentially on the map page.
[0096] As another possible implementation, after the target POI is differentially rendered on the map page, if it is determined that the navigated object has reached the target POI, the target POI is no longer differentially displayed on the map page. For example, the navigated object may be determined to have reached the target POI when the distance between the location of the navigated object and the location of the target POI is less than a preset distance threshold (e.g., 5 meters, 10 meters).
[0097] The above is an embodiment of the present application that does not differentiate the target points of interest. The following is an embodiment of the present application that combines the architecture of the application software that executes the method provided by the present application. Figure 4 , the map rendering method provided by this application is introduced.
[0098] like Figure 4 As shown, the application software includes: a rendering engine (hereinafter referred to as the engine) and a client, and the data server provides data services for the application software. Usually the data server is located on the network side. The data server stores the rendering data of the point of interest, such as icon data (i.e., Figure 4 ), surface data, vector models, animation data, etc. The rendering data corresponding to different types of points of interest are different. For details, please refer to the relevant examples above and will not be repeated here.
[0099] The client of the application software can pre-define processing nodes based on scenarios where target points of interest are rendered differently. For example, in the case of the method provided in this application applied to a navigation scenario, the client-defined processing nodes can be called arrival point processing nodes. After navigation is completed, if the client of the application software detects an instruction to render the target point of interest on the map page, it triggers the arrival node to call the engine and sends the ID of the navigation destination to the engine, so that the engine can request map rendering data for the navigation destination from the data server.
[0100] like Figure 4 As shown, the engine can send a map rendering data acquisition request carrying the navigation destination ID to the data server through the data engine module, using technologies such as network request processing, dynamic request merging, and dynamic request gateway processing. The engine can send a rendering data acquisition request to the data server by referring to any existing data request method and will not be further described here.
[0101] The data server responds to the map rendering data acquisition request from the engine and triggers the corresponding data compilation service to generate the map rendering data of the target point of interest carried in the request. Continuing with the navigation scenario as an example, the data server can trigger the navigation destination ID carried in the request. Figure 4The arrival data compilation service shown above determines the rendering configuration parameters and rendering element data of the navigation destination. In specific implementation, the data server can provide a variety of other data service compilations in addition to the arrival data compilation service according to service requirements, such as Figure 4 The data is generated by the data compilation service, and the data server can package the map rendering data for the navigation destination using the pre-set PB protocol and send it to the engine. The PB protocol has the advantages of high data parsing efficiency, low performance overhead, and low data traffic consumption.
[0102] Similar to the client, the engine can also define rendering scene nodes based on the scenarios of differentiated rendering target points of interest. Continuing with the navigation scene as an example, the rendering scene node can be called a navigation scene rendering node. When the engine's data engine module receives the map rendering data packaged based on the PB protocol sent by the data server, the navigation scene rendering node can parse the map rendering data based on the PB protocol after determining that the PB protocol has been loaded. After parsing the rendering configuration parameters and rendering element data from the map rendering data, the navigation scene rendering node creates graphics processing unit (GPU) resources for the parsed rendering element data and can start drawing (displaying) the map page. As mentioned above, this application needs to display the target point of interest and the navigated object on the screen. Therefore, the navigation scene rendering node also needs to determine the target scale based on the position of the target point of interest and the navigated object, so that the target point of interest and the navigated object are displayed on the screen.
[0103] As previously mentioned, the electronic map included in the map page of this application can be displayed in two or three dimensions. Therefore, the navigation scene rendering node can change the display mode of the electronic map by adjusting the camera angle, so that the spatial relationship between the navigated object and the navigation destination can be fully presented on the screen, and the navigation destination can be presented more clearly to the user. Specifically, taking the aforementioned first preset distance of 500 meters (m) and the second preset distance of 2 kilometers (km) as an example, the camera angle can be adjusted according to the following rules:
[0104] According to the distance between the location of the navigated object and the navigation destination at the end of navigation, it is divided into three levels, from far to near: the map page will not be processed if the distance is over 2km; the navigation destination will be displayed in 2D perspective if the distance is between 500m and 2km; the navigation destination will be displayed in 3D perspective if the distance is less than 500m. Figure 5 This is a schematic diagram of another map page provided by this application. Figure 5 As shown, the map page is a 3D perspective map page, and the positioning position of the navigated object and the outline of the navigation destination are both within the screen.
[0105] If the target POI also requires animation, the navigation scene rendering node can process animation keyframes (the starting and ending frames that must be defined for all smooth transitions in the animation). Furthermore, since the electronic map displaying the target POI also includes other map elements, such as buildings, collision detection can be performed by querying the map tile ID (that is, the ID of the map area) and the building ID within the geographic area corresponding to the map tile ID (each building has its own unique identifier, which can be called a building ID).
[0106] The above is the map rendering method provided by this embodiment. This method supports differentiated rendering of points of interest, improving the flexibility and display efficiency of map rendering. In particular, in navigation scenarios, after navigation is completed, the navigation destination and the positional relationship between the navigated object and the navigation destination are differentiated on the map page, providing assistance to the navigated object in reaching the navigation destination. This can better guide the navigated object to the navigation destination after navigation is completed, eliminating the need for the navigated object to search for the navigation destination again, reducing user operating costs and improving the user experience.
[0107] Figure 6 This is a structural diagram of a map rendering device provided in an embodiment of the present application. Figure 6 As shown, the map rendering device includes: an acquisition module 21, a parsing module 22, and a rendering module 23.
[0108] The acquisition module 21 is configured to acquire map rendering data of a target point of interest in response to an instruction to render the target point of interest on a map page.
[0109] The parsing module 22 is configured to parse the map rendering data to obtain rendering configuration parameters and rendering element data of the target point of interest.
[0110] The rendering module 23 is configured to render the target point of interest in a map page displayed on the screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
[0111] Taking the method as an example of applying the method after the navigated object reaches the navigation destination, optionally, the acquisition module 21 is specifically configured to obtain the location of the navigated object when it reaches the navigation destination; and in response to an instruction to display a target page including a map page on the screen, generates an instruction to render a target point of interest on the map page. The target point of interest is the navigation destination. Optionally, the rendering module 23 is specifically configured to render the target point of interest on the map page displayed on the screen based on the rendering configuration parameters, rendering element data of the target point of interest, and the location of the navigated object when it reaches the navigation destination.
[0112] Taking the rendering configuration parameters of the target point of interest as an example, which at least include the location coordinates of the target point of interest, the device may optionally further include a processing module 24 for determining the distance between the target point of interest and the navigated object based on the location coordinates of the target point of interest and the location of the navigated object when the navigated object reaches the navigation endpoint before rendering the target point of interest in the map page displayed on the screen; when the distance is greater than a first preset distance and less than or equal to a second preset distance, determining that the map page displayed on the screen is a two-dimensional map page; and when the distance is less than or equal to the first preset distance, determining that the map page displayed on the screen is a three-dimensional map page. Wherein, the first preset distance is less than the second preset distance.
[0113] Optionally, the rendering module 23 is specifically used to determine the target scale based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point; use the positioning position of the navigated object when it reaches the navigation end point as the center position of the map page including the electronic map, display the electronic map of the navigated object and the target scale, and render the target point of interest on the electronic map based on the rendering configuration parameters and rendering element data of the target point of interest; the map page corresponding to the target scale makes the target point of interest and the navigated object both within the map page displayed on the screen.
[0114] Taking the target point of interest as a planar point of interest, the rendering configuration parameters of the target point of interest also include: taking the contour point coordinates of the target point of interest as an example, optionally, the rendering module 23 is specifically used to determine the contour bounding box of the target point of interest based on the contour point coordinates of the target point of interest; determine the target scale based on the contour bounding box of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point.
[0115] Taking the target point of interest as a point-like point of interest, the rendering configuration parameters include at least: taking the position coordinates of the point-like point of interest as an example, optionally, the rendering module 23 is specifically used to determine the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point; and determine the target scale based on the distance.
[0116] Optionally, if the target point of interest is a point-like point of interest, the rendering element data includes at least: an icon; if the target point of interest is a surface-like point of interest, the rendering element data includes at least: an icon, and rendering rules for the surface area of the surface-like point of interest, and the rendering rules include at least one of highlighting and rendering animation; wherein the icon is displayed at the position corresponding to the target point of interest in the map page, for indicating the target point of interest.
[0117] The map rendering device provided in the embodiment of the present application can execute the map rendering method in the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail here. Figure 6 The division of the modules shown is only a schematic illustration, and this application does not limit the division of the modules and the naming of the modules.
[0118] Figure 7 This is a schematic diagram of the structure of an electronic device 110 provided in an embodiment of the present application. Figure 7 As shown, the electronic device 110 may include: at least one processor 111 and a memory 112.
[0119] The memory 112 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions.
[0120] The memory 112 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0121] The processor 111 is configured to execute computer-executable instructions stored in the memory 112 to implement the map rendering method described in the aforementioned method embodiment. The processor 111 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0122] The electronic device 110 may also include a communication interface 113, so that it can communicate and interact with external devices through the communication interface 113. The external devices may be, for example, other electronic devices (e.g., mobile phones, navigation devices) or server terminals. In a specific implementation, if the communication interface 113, the memory 112, and the processor 111 are implemented independently, the communication interface 113, the memory 112, and the processor 111 may be interconnected via a bus 114 and communicate with each other. The bus 114 may be an Industry Standard Architecture (ISA) bus 114, a Peripheral Component Interconnect (PCI) bus 114, or an Extended Industry Standard Architecture (EISA) bus 114. The bus 114 may be divided into an address bus 114, a data bus 114, a control bus 114, etc., but this does not mean that there is only one bus 114 or one type of bus 114.
[0123] Optionally, in a specific implementation, if the communication interface 113, the memory 112 and the processor 111 are integrated on a chip, the communication interface 113, the memory 112 and the processor 111 can complete communication through an internal interface.
[0124] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used for the methods in the above embodiments.
[0125] The present application also provides a program product, the program product including execution instructions stored in a readable storage medium. At least one processor of an electronic device can read the execution instructions from the readable storage medium, and the at least one processor executes the execution instructions so that the electronic device implements the map rendering method provided in the various embodiments described above.
[0126] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0127] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A map rendering method, characterized in that: The method comprises: In response to an instruction to render a target point of interest on a map page, obtaining map rendering data of the target point of interest; Parsing rendering configuration parameters and rendering element data of the target point of interest from the map rendering data; The target point of interest is rendered in a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
2. The method according to claim 1, characterized in that The method is applied after the navigated object reaches the navigation end point, and the method further comprises: Obtaining the location of the navigated object when it reaches the navigation destination; In response to an instruction to display a target page including a map page on the screen, generating an instruction to render a target point of interest on the map page, the target point of interest being the navigation destination; The rendering of the target point of interest on a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest is specifically as follows: The target point of interest is rendered in a map page displayed on a screen based on the rendering configuration parameters of the target point of interest, the rendering element data, and the positioning position of the navigated object when it reaches the navigation end point.
3. The method according to claim 2, characterized in that The rendering configuration parameters of the target point of interest include at least the position coordinates of the target point of interest. Based on the rendering configuration parameters of the target point of interest, the rendering element data, and the location of the navigated object when it reaches the navigation destination, before rendering the target point of interest on the map page displayed on the screen, the method further includes: Determining the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when the navigated object reaches the navigation end point; If the distance is greater than a first preset distance and less than or equal to a second preset distance, determining that the map page displayed on the screen is a two-dimensional map page, wherein the first preset distance is less than the second preset distance; If the distance is less than or equal to the first preset distance, it is determined that the map page displayed on the screen is a three-dimensional map page.
4. The method according to claim 2, characterized in that Rendering the target point of interest on a map page displayed on a screen based on the rendering configuration parameters and rendering element data of the target point of interest includes: Determining a target scale based on rendering configuration parameters of the target point of interest and the location of the navigated object when it reaches the navigation endpoint, wherein the map page corresponding to the target scale is such that both the target point of interest and the navigated object are within the map page displayed on the screen; The map page includes an electronic map with the location of the navigated object when it reaches the navigation destination as the center position of the electronic map, displays the navigated object and the electronic map of the target scale, and renders the target point of interest on the electronic map based on the rendering configuration parameters and rendering element data of the target point of interest.
5. The method according to claim 4, characterized in that The target point of interest is a planar point of interest, and the rendering configuration parameters of the target point of interest further include: contour point coordinates of the target point of interest. The target scale is determined based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point, including: Determining a contour bounding box of the target interest point according to the contour point coordinates of the target interest point; The target scale is determined according to the outline bounding box of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point.
6. The method according to claim 4, characterized in that The target point of interest is a point-like point of interest, and the rendering configuration parameters include at least: the position coordinates of the point-like point of interest. The target scale is determined based on the rendering configuration parameters of the target point of interest and the positioning position of the navigated object when it reaches the navigation end point, specifically including: Determining the distance between the target point of interest and the navigated object based on the position coordinates of the target point of interest and the positioning position of the navigated object when the navigated object reaches the navigation end point; The target scale is determined according to the distance.
7. The method according to any one of claims 1 to 4, characterized in that If the target interest point is a point-shaped interest point, the rendering element data at least includes: an icon; If the target interest point is a planar interest point, the rendering element data includes at least: an icon, and a rendering rule for a planar area of the planar interest point, wherein the rendering rule includes at least one of highlighting and rendering dynamic effects; The icon is displayed at a position corresponding to the target point of interest in the map page, and is used to indicate the target point of interest.
8. A map rendering device, characterized in that: The device comprises: an acquisition module, configured to acquire map rendering data of a target point of interest in response to an instruction to render the target point of interest on a map page; A parsing module, configured to parse the map rendering data to obtain rendering configuration parameters and rendering element data of the target point of interest; A rendering module is configured to render the target point of interest in a map page displayed on a screen based at least on the rendering configuration parameters and rendering element data of the target point of interest.
9. An electronic device, characterized in that: include: processor and memory; The processor is communicatively connected to the memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when the computer program is executed by a processor.