Map guide card generation method, device, equipment and storage medium
By combining route navigation data in the map guide card to generate steering prompt information, interesting steering images and expected arrival information, the existing map guide card is solved, and the problem of insufficient fun and diversity and unintuitive information display is not displayed, achieving the effect of users to understand road conditions more intuitively and quickly.
Patent Information
- Application Number
- CN202111417226.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-24
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2041-11-24
AI Technical Summary
The existing map guide cards are not fun and diverse, and the information display is not intuitive enough, especially when users are not familiar with road sections, which can easily lead to accidents.
By obtaining the route navigation data to be displayed and the guidance display template, the steering prompt information, interesting steering images and expected arrival information are determined based on the route navigation data, and these information are filled in the guidance display template to generate a map guidance card.
By generating map guidance cards containing steering prompt information, interesting steering images and expected arrival information, users can understand road conditions more intuitively and quickly, reducing the risk of accidents caused by unintuitive information.
Smart Images

Figure CN114216474B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for generating a map guide card. Background Art
[0002] At present, in the field of navigation, such as in-vehicle navigation, widgets are widely used due to the particularity of large screens and multi-tasking scenarios. The widgets of navigation applications are often used to display relevant information in the field of navigation, which can provide great convenience for users. At present, the widgets of navigation applications mainly write the relevant information of navigation into the map guide card in the form of text combined with turn icons for display. However, the current display method of data in the map guide card is not interesting and diverse enough, and the display of text combined with turn icons can meet the needs of users on familiar roads. However, if the user is not familiar with the road section, the information display is not intuitive enough, and the user needs to read in detail to obtain relevant information, which is easy to cause accidents.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a method, device, equipment and storage medium for generating map guide cards, aiming to solve the technical problems that the map guide cards in the prior art are not interesting and diverse enough, and the information display is not intuitive enough.
[0005] To achieve the above object, the present invention provides a method for generating a map guide card, the method comprising the following steps:
[0006] Obtain route navigation data to be displayed and guide display template;
[0007] Determining turn prompt information, interesting turn images and estimated arrival information according to the route navigation data;
[0008] The guide display template is filled according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card.
[0009] Optionally, the route navigation data includes lane information, steering action type, total route length, remaining route distance, remaining route time, estimated arrival time, remaining steering distance and target road name;
[0010] The step of determining the turning prompt information, the interesting turning image and the estimated arrival information according to the route navigation data comprises:
[0011] generating turning prompt information according to the turning action type, the turning remaining distance and the target road name;
[0012] generating an interesting steering image according to the lane information and the steering action type;
[0013] The estimated arrival information is generated according to the remaining distance of the route, the remaining time of the route, and the estimated arrival time.
[0014] Optionally, the step of generating an interesting turning image according to the lane information and the turning action type includes:
[0015] Obtain the card display theme corresponding to the user to be navigated, and determine the background image and the car logo image according to the card display theme;
[0016] Constructing a lane prompt icon according to the lane information, and searching for an interesting turning icon corresponding to the turning action type in a preset interesting turning icon library;
[0017] An interesting turning image is generated according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon.
[0018] Optionally, before the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon, the step further includes:
[0019] Determining a route travel percentage based on the total length of the route and the remaining distance of the route;
[0020] Adjusting the vehicle logo image according to the route travel percentage to obtain a target vehicle logo image;
[0021] Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes:
[0022] An interesting turning image is generated according to the lane prompt icon, the background image, the target vehicle logo image and the turning icon.
[0023] Optionally, before the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon, the step further includes:
[0024] Determining a route travel percentage based on the total length of the route and the remaining distance of the route;
[0025] Generating a route progress bar according to the route travel percentage;
[0026] Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes:
[0027] An interesting turning image is generated according to the lane prompt icon, the background image, the vehicle logo image, the interesting turning icon and the route progress bar.
[0028] Optionally, the step of filling the guide display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card includes:
[0029] Obtaining the display sub-areas in the guide display template, and obtaining the data display format corresponding to each display sub-area;
[0030] Based on the data display format, the turn prompt information, the interesting turn image and the estimated arrival information are filled into the corresponding display sub-area to obtain a map guide card.
[0031] Optionally, before the step of obtaining the route navigation data to be displayed and the guide display template, the step further includes:
[0032] When the user to be navigated is in a route navigation state, detecting whether the user to be navigated turns on an interesting guidance mode;
[0033] If the user to be navigated turns on the fun guidance mode, the step of obtaining the route navigation data to be displayed and the guidance display template is executed.
[0034] In addition, to achieve the above-mentioned purpose, the present invention also proposes a map guide card generation device, which includes the following modules:
[0035] A data acquisition module is used to acquire route navigation data to be displayed and guide display templates;
[0036] An information generation module, used to determine turn prompt information, interesting turn images and estimated arrival information according to the route navigation data;
[0037] The card generation module is used to fill the guidance display template according to the turning prompt information, the interesting turning image and the estimated arrival information to obtain a map guidance card.
[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a map guidance card generation device, which includes: a processor, a memory, and a map guidance card generation program stored in the memory and executable on the processor, and the map guidance card generation program, when executed by the processor, implements the steps of the map guidance card generation method as described above.
[0039] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a map guide card generation program is stored, and when the map guide card generation program is executed, the steps of the map guide card generation method as described above are implemented.
[0040] The present invention obtains route navigation data to be displayed and a guide display template; determines turn prompt information, an interesting turn image and estimated arrival information according to the route navigation data; and fills the guide display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card. Since an interesting turn image is also generated according to the route navigation data when generating a map guide card, the turn prompt information, the interesting turn image and the estimated arrival information are displayed together, so that when a user needs to quickly obtain information, he can quickly obtain navigation information by viewing the dynamic interesting turn image, so that the user can understand the road condition information more intuitively and quickly. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;
[0042] Figure 2 This is a flow chart of a first embodiment of a method for generating a map guide card according to the present invention;
[0043] Figure 3 This is a flow chart of a second embodiment of a method for generating a map guide card according to the present invention;
[0044] Figure 4 This is a structural block diagram of the first embodiment of the map guide card generation device of the present invention.
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0047] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of a map guide card generating device in the hardware operating environment involved in the embodiment of the present invention.
[0048] like Figure 1As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a map guide card generation program.
[0051] exist Figure 1 In the electronic device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the map guide card generation device, and the electronic device calls the map guide card generation program stored in the memory 1005 through the processor 1001, and executes the map guide card generation method provided by the embodiment of the present invention.
[0052] The embodiment of the present invention provides a method for generating a map guide card, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a method for generating a map guide card according to the present invention.
[0053] In this embodiment, the map guide card generation method includes the following steps:
[0054] Step S10: Obtain route navigation data to be displayed and a guidance display template.
[0055] It should be noted that the executor of this embodiment may be the map guidance card generating device, and the map guidance card generating device may be a device installed with navigation software, such as a mobile terminal, an on-board computer and other electronic devices, or other devices that can achieve the same or similar functions. This embodiment does not limit this. In this embodiment and the following embodiments, the map guidance card generating method of the present invention is described by taking the map guidance card generating device as an example.
[0056] It should be noted that the route navigation data may be data corresponding to the navigation route specified by the user to be navigated, and the route navigation data may include: lane information, turn action type, total route length, remaining route distance, remaining route time, estimated arrival time, remaining turn distance, target road name and other information, wherein the user to be navigated may be a user who operates the map guide card generation device, and the lane information may include the number of lanes in the current road section, lane type and lane to be taken and other information. The guide display template may be a template for generating a map guide card, and obtaining the guide display template to be displayed may be obtaining the user ID of the user to be navigated, searching for the corresponding template setting information in the preset template information library according to the user ID, and constructing the guide display template according to the template setting information, wherein the template setting information may include information such as template specifications and regional divisions, and the preset template information library may include a mapping relationship between the user ID and the template setting information, and the mapping relationship may be pre-set by the administrator of the map guide card generation device or the user to be navigated.
[0057] Furthermore, in order to quickly discover and respond when the user wants to use the map guidance card, before step S10 in this embodiment, the following may also be included:
[0058] When the user to be navigated is in a route navigation state, detecting whether the user to be navigated turns on an interesting guidance mode;
[0059] If the user to be navigated turns on the fun guidance mode, the step of obtaining the route navigation data to be displayed and the guidance display template is executed.
[0060] In actual use, a fun guidance mode switch can be set. When the user to be navigated switches the running state of the navigation software to the route navigation state, it can be determined whether the user to be navigated has turned on the fun guidance mode by detecting the fun guidance mode switch. For example: when the user to be navigated starts the navigation software or wakes up the navigation software from the background and enters the route navigation interface, the on state of the fun guidance mode switch is detected. If the on state is on, it is determined that the user to be navigated has turned on the fun guidance mode.
[0061] Of course, the user waiting to navigate may not turn on the fun guidance mode when switching the operating state of the navigation software to the route navigation state. In order to facilitate the operation convenience of the user waiting to navigate, the fun guidance switch can be displayed on the route navigation interface. If the user turns on the fun guidance switch in the route navigation interface, it can still be determined that the user has turned on the fun guidance mode.
[0062] It is understandable that if the user to be navigated is in the route navigation state and the fun guidance mode is turned on, it means that the user to be navigated wants to use the map guidance card. Therefore, the steps of obtaining the route navigation data to be displayed and the guidance display template can be executed to generate a map guidance card and display it.
[0063] Step S20: determining turn prompt information, interesting turn images and estimated arrival information according to the route navigation data.
[0064] It should be noted that the turn prompt information may be text information used to prompt the user for the next turn action, for example: 50 meters remaining, turn left, enter XX Road, where the turn action may also be represented by a corresponding turn icon. The interesting turn image may be a dynamic image used to represent the next turn action. The estimated arrival information may be text information used to prompt the user of the remaining distance of the route, the remaining time of the route, and the estimated arrival time.
[0065] Step S30: Filling the guidance display template according to the turning prompt information, the interesting turning image and the estimated arrival information to obtain a map guidance card.
[0066] It should be noted that the guide display template may be divided into multiple display sub-areas, and each display sub-area may correspond to different data. Filling the guide display template according to the turn prompt information, the interesting turn image, and the estimated arrival information may be to obtain multiple display sub-areas in the guide display template, and then fill the turn prompt information, the interesting turn image, and the estimated arrival information into the corresponding display sub-areas, thereby obtaining a map guide card.
[0067] In actual use, as the vehicle position changes, the map data obtained by the map guidance card will change in real time, such as lane information, steering action type, remaining route distance and remaining time, remaining turning distance and target road name, and the map guidance card will be updated in real time according to the above information. For example: during navigation, the navigation engine will feed back the relevant route navigation data to the guidance card in real time (the frequency is generally 1 time / second, which is consistent with the GPS signal frequency), and the navigation guidance card can reflect and feedback this change in real time. Therefore, the map guidance card can read the route navigation data from the navigation engine of the navigation software every 1 second to update the map guidance card.
[0068] In a specific implementation, the map guide card can be displayed in the task bar or floating window of the terminal. If the user clicks on the map guide card, the corresponding navigation software can be woken up and the corresponding route navigation interface can be entered.
[0069] Furthermore, since different users may have different usage habits, if the user can only set the area division in the guide display template, it may not meet the actual needs of the user. In order to meet the actual needs of the user as much as possible, the user may also be allowed to set the display format of each area. Then, step S30 in this embodiment may include:
[0070] Obtaining the display sub-areas in the guide display template, and obtaining the data display format corresponding to each display sub-area;
[0071] Based on the data display format, the turn prompt information, the interesting turn image and the estimated arrival information are filled into the corresponding display sub-area to obtain a map guide card.
[0072] It should be noted that obtaining the display sub-area in the guide display template may be to read the area division information corresponding to the guide display template, and determine the display sub-area according to the area division information. Obtaining the data display format corresponding to each display sub-area may be to obtain the user identifier corresponding to the user to be navigated and the sub-area identifier corresponding to the display sub-area, and to search for the corresponding data display format in the preset display format library according to the user identifier and the sub-area identifier, wherein the preset display format library may include a mapping relationship between the user identifier, the sub-area identifier and the data display format, and the mapping relationship may be added when the user performs format setting.
[0073] It should be noted that the turning prompt information, interesting turning images and estimated arrival information are filled into the corresponding display sub-areas based on the data display format, and the map guide card can be obtained by adjusting the format of the turning prompt information, interesting turning images and estimated arrival information according to the data display format corresponding to each display sub-area and then filling them into the corresponding display sub-area, thereby obtaining the map guide card.
[0074] This embodiment obtains the route navigation data to be displayed and the guidance display template; determines the turn prompt information, the interesting turn image and the estimated arrival information according to the route navigation data; fills the guidance display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain the map guidance card. Since the interesting turn image is also generated according to the route navigation data when generating the map guidance card, the turn prompt information, the interesting turn image and the estimated arrival information are displayed together, so that the user can quickly obtain the navigation information by viewing the dynamic interesting turn image when the user needs to quickly obtain the information, so that the user can understand the road condition information more intuitively and quickly.
[0075] refer to Figure 3 , Figure 3 This is a flow chart of a second embodiment of a method for generating a map guide card according to the present invention.
[0076] Based on the above first embodiment, the step S20 of the map guide card generation method of this embodiment may include:
[0077] Step S201: Generate turning prompt information according to the turning action type, the remaining turning distance and the target road name.
[0078] It should be noted that the steering action types may include left turn, right turn, driving in the left front, driving in the right front, driving in the left rear, driving in the right rear, turning left and making a U-turn, going straight, arriving at a waypoint, arriving at a service area, arriving at a toll station, arriving at a destination, entering a tunnel, turning left around a roundabout, turning right around a roundabout, going straight around a roundabout, making a U-turn around a roundabout, etc. Generating steering prompt information according to the steering action type, the steering remaining distance, and the target road name may be combining the steering action type, the steering remaining distance, and the target road name in a preset order to obtain the steering prompt information.
[0079] In actual use, different display icons can also be set for different steering action types. Generating steering prompt information according to the steering action type, remaining steering distance and target road name can be to obtain the display icon corresponding to the steering action type, and then combine the display icon, remaining steering distance and target road name in a preset order to obtain the steering prompt information.
[0080] Step S202: generating an interesting turning image according to the lane information and the turning action type.
[0081] It should be noted that the interesting turning image may include a lane prompt icon, a background image, a car logo image and an interesting turning icon. Generating an interesting turning image according to lane information and the turning action type may include searching for a corresponding lane prompt icon according to the lane information, generating a corresponding interesting turning icon according to a display icon corresponding to the turning action type, obtaining a user ID of the user to be navigated, searching for a corresponding car logo image and background image according to the user ID of the user to be navigated, and then combining the lane prompt icon, the car logo image and the background image in a preset manner to generate an interesting turning image. Among them, the background image and the car logo image may be set by the user to be navigated, or may be set in advance by the administrator of the map guidance card generation device.
[0082] Further, in order to simplify the user setting operation and improve the user experience, step S202 in this embodiment may include:
[0083] Obtain the card display theme corresponding to the user to be navigated, and determine the background image and the car logo image according to the card display theme;
[0084] Constructing a lane prompt icon according to the lane information, and searching for an interesting turning icon corresponding to the turning action type in a preset interesting turning icon library;
[0085] An interesting turning image is generated according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon.
[0086] In actual use, if the background image and the car logo image need to be set manually by the user, the user operation may be very cumbersome, and the aesthetics after setting may not meet the user's expectations, which will make the user's actual use experience poor. In order to avoid this situation, multiple card display themes can be set in advance, and the user can select the card display theme for use. Of course, a card display theme can be selected from multiple card display themes as the default theme, and the default theme will be used when the user does not select a card display theme.
[0087] It should be noted that obtaining the card display theme corresponding to the user to be navigated may be obtaining the user ID corresponding to the user to be navigated, and searching for the corresponding card display theme according to the user ID. The card display theme may include a background image and a car logo image, and determining the background image and the car logo image according to the card display theme may be parsing the card display theme to obtain the background image and the car logo image. Constructing a lane prompt icon according to lane information may be determining the number of lanes and lane types according to lane information, determining the lane display icon corresponding to the lane according to the lane type corresponding to the lane, and then combining the lane display icons corresponding to each lane into a lane prompt icon. The preset fun steering icon library may include fun steering icons corresponding to each steering action type, and the preset fun steering icon library may be pre-set by the administrator of the map guidance card generation device.
[0088] In a specific implementation, the card display theme may include themes of different styles, such as ocean theme, river theme, forest theme, science fiction theme, etc. When the styles of the card display theme are different, the corresponding background image and car logo image may also be different. For example, if the card display theme is an ocean theme, the background image may be an underwater style, and the car logo image may be a small fish; if the card display theme is a river theme, the background image may be a river style, and the car logo image may be an animal image such as a tadpole, dragonfly or frog.
[0089] In a specific implementation, generating an interesting turning image based on lane warning icons, background images, vehicle logo images and interesting turning icons can be performed by combining lane warning icons, interesting turning icons, vehicle logo images and background images in a preset manner to generate an interesting turning image, wherein the preset manner can be pre-set by the administrator of the map guide card generating device.
[0090] In actual use, the remaining turning distance may be the distance to the position where the next turning action is to be performed. In order to allow users to more intuitively understand the remaining turning distance, the position of the car logo image in the fun turning image may be changed according to the remaining turning distance. For example, when a turn is required, as the remaining turning distance decreases, the relative distance between the car logo image and the curve in the fun turning icon also decreases.
[0091] Furthermore, in order to make the driving progress display in the generated interesting turning image more intuitive, before the step of generating the interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon described in this embodiment, the following may also be included:
[0092] Determining a route travel percentage based on the total length of the route and the remaining distance of the route;
[0093] Adjusting the vehicle logo image according to the route travel percentage to obtain a target vehicle logo image;
[0094] Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes:
[0095] An interesting turning image is generated according to the lane prompt icon, the background image, the target vehicle logo image and the turning icon.
[0096] It should be noted that determining the route travel percentage according to the total route length and the remaining route distance may be to subtract the remaining route distance from the total route length to obtain the traveled distance, and to divide the traveled distance by the total route length to obtain the route travel percentage. Adjusting the vehicle logo image according to the route travel percentage to obtain the target vehicle logo image may be to adjust the size of the vehicle logo image according to the route travel percentage, and use the adjusted vehicle logo image as the target vehicle logo image, for example: setting 6 different vehicle logo size specifications, the 6 vehicle logo size specifications correspond to the six percentage intervals of 0-20%, 20%-40%, 40%-60%, 60%-80%, 80%-100%, and 100% (reaching the destination), respectively. When the route travel percentage is obtained, the percentage interval corresponding to the route travel percentage is determined, and then the size of the vehicle logo image is adjusted to the vehicle logo size specification corresponding to the percentage interval.
[0097] Of course, the vehicle logo image is adjusted according to the route travel percentage, and the target vehicle logo image can also be obtained by adjusting the morphology of the vehicle logo image according to the route travel percentage, and using the morphologically adjusted vehicle logo image as the target vehicle logo image. For example, assuming that the vehicle logo image is a tadpole, six different growth forms are set for the vehicle logo image, including a small tadpole form, a large tadpole form, a hind leg growth form, a front leg growth form, a small frog form, and a large frog form. The six different growth forms correspond to the six percentage intervals of 0-20%, 20%-40%, 40%-60%, 60%-80%, 80%-100%, and 100% (reaching the destination). When the route travel percentage is obtained, the percentage interval corresponding to the route travel percentage is determined, and then the growth form corresponding to the percentage interval is obtained. The vehicle logo image is morphologically adjusted according to the growth form, thereby obtaining the target vehicle logo image.
[0098] It is understandable that when the size of the car logo image is set differently when the route is traveled, the user waiting for navigation only needs to confirm the size of the car logo image to determine the current route travel percentage, which allows the user to determine the current route travel percentage more simply and quickly.
[0099] Furthermore, in order to make the driving progress display in the generated interesting turning image more intuitive, before the step of generating the interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon described in this embodiment, the following may also be included:
[0100] Determining a route travel percentage based on the total length of the route and the remaining distance of the route;
[0101] Generating a route progress bar according to the route travel percentage;
[0102] Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes:
[0103] An interesting turning image is generated according to the lane prompt icon, the background image, the vehicle logo image, the interesting turning icon and the route progress bar.
[0104] It should be noted that determining the route travel percentage according to the total length of the route and the remaining distance of the route can be performed by subtracting the remaining distance of the route from the total length of the route to obtain the traveled distance, and dividing the traveled distance by the total length of the route to obtain the route travel percentage. Generating a route travel progress bar according to the route travel percentage can be performed by obtaining a progress bar, dividing the progress bar into multiple scales according to actual needs, determining the current scale according to the route travel percentage, and setting a schematic icon in the scale area to generate a route travel progress bar, wherein the schematic icon can be a thumbnail of the vehicle logo image, and different background colors can be set for different scale areas of the route travel progress bar, for example: the background color of the scale area that has been passed can be set to gray, and the background color of the scale area that has not been passed can be displayed according to the different road conditions of the corresponding remaining sections of the route, such as green for smooth traffic, yellow for slow traffic, red for congestion, etc.
[0105] It is understandable that a route progress bar is generated according to the route progress percentage, and the route progress bar is combined with the interesting turning image for display, so that the navigation user can quickly determine the current travel percentage according to the route progress bar.
[0106] Step S203: Generate estimated arrival information according to the remaining distance of the route, the remaining time of the route, and the estimated arrival time.
[0107] It should be noted that generating the estimated arrival information based on the remaining distance of the route, the remaining time of the route, and the estimated arrival time can be achieved by assembling the remaining distance of the route, the remaining time of the route, and the estimated arrival time in a preset format to generate the estimated arrival information, wherein the preset format can be set in advance by the administrator of the guide card generating device.
[0108] This embodiment generates turning prompt information according to the turning action type, the remaining turning distance and the target road name; generates an interesting turning image according to the lane information and the turning action type; and generates an estimated arrival information according to the remaining route distance, the remaining route time and the estimated arrival time. Since necessary data in the route navigation data is extracted for generation when generating the turning prompt information, the interesting turning image and the estimated arrival information, it is ensured that the user can obtain the necessary route navigation data according to the map guide card, and when generating the interesting turning image, the vehicle logo image is resized according to the route travel percentage or a route travel progress bar is generated according to the route travel percentage, so that the user can determine the current route travel percentage more concisely and quickly.
[0109] In addition, an embodiment of the present invention further provides a storage medium, on which a map guidance card generation program is stored. When the map guidance card generation program is executed by a processor, the steps of the map guidance card generation method described above are implemented.
[0110] Reference Figure 4 , Figure 4 This is a structural block diagram of the first embodiment of the map guide card generation device of the present invention.
[0111] like Figure 4 As shown, the map guide card generation device proposed in the embodiment of the present invention includes:
[0112] The data acquisition module 10 is used to acquire the route navigation data to be displayed and the guidance display template;
[0113] An information generation module 20, for determining turn prompt information, interesting turn images and estimated arrival information according to the route navigation data;
[0114] The card generation module 30 is used to fill the guidance display template according to the turning prompt information, the interesting turning image and the estimated arrival information to obtain a map guidance card.
[0115] This embodiment obtains the route navigation data to be displayed and the guidance display template; determines the turn prompt information, the interesting turn image and the estimated arrival information according to the route navigation data; fills the guidance display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain the map guidance card. Since the interesting turn image is also generated according to the route navigation data when generating the map guidance card, the turn prompt information, the interesting turn image and the estimated arrival information are displayed together, so that the user can quickly obtain the navigation information by viewing the dynamic interesting turn image when the user needs to quickly obtain the information, so that the user can understand the road condition information more intuitively and quickly.
[0116] Furthermore, the route navigation data includes lane information, steering action type, total route length, remaining route distance, remaining route time, estimated arrival time, remaining steering distance and target road name;
[0117] The information generation module 20 is also used to generate turning prompt information according to the turning action type, the remaining turning distance and the target road name; generate an interesting turning image according to the lane information and the turning action type; and generate estimated arrival information according to the remaining distance of the route, the remaining time of the route and the estimated arrival time.
[0118] Furthermore, the information generation module 20 is also used to obtain a card display theme corresponding to the user to be navigated, and determine a background image and a vehicle logo image based on the card display theme; construct a lane prompt icon based on the lane information, and search for a fun steering icon corresponding to the steering action type in a preset fun steering icon library; and generate a fun steering image based on the lane prompt icon, the background image, the vehicle logo image and the fun steering icon.
[0119] Furthermore, the information generating module 20 is further used to determine the route travel percentage according to the total length of the route and the remaining distance of the route; and to adjust the vehicle logo image according to the route travel percentage to obtain a target vehicle logo image;
[0120] The information generating module 20 is further used to generate an interesting turning image according to the lane prompt icon, the background image, the target vehicle logo image and the turning icon.
[0121] Furthermore, the information generating module 20 is further used to determine the route travel percentage according to the total length of the route and the remaining distance of the route; and to generate a route travel progress bar according to the route travel percentage;
[0122] The information generating module 20 is further used to generate an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image, the interesting turning icon and the route progress bar.
[0123] Furthermore, the card generation module 30 is also used to obtain the display sub-area in the guidance display template, and obtain the data display format corresponding to each display sub-area; based on the data display format, the turning prompt information, the interesting turning image and the estimated arrival information are filled into the corresponding display sub-area to obtain a map guidance card.
[0124] Furthermore, the data acquisition module 10 is also used to detect whether the user to be navigated has turned on the fun guidance mode when the user to be navigated is in the route navigation state; if the user to be navigated has turned on the fun guidance mode, the step of acquiring the route navigation data to be displayed and the guidance display template is executed.
[0125] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0126] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0127] In addition, for technical details not fully described in this embodiment, reference may be made to the map guide card generation method provided in any embodiment of the present invention, and will not be repeated here.
[0128] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0129] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0131] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for generating a map guide card, It is characterized in that The map guide card generation method comprises the following steps: Obtain route navigation data to be displayed and guide display template; Determining turn prompt information, interesting turn images and estimated arrival information according to the route navigation data; Filling the guide display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card, which is displayed in the task bar of the terminal or in the form of a floating window; The step of obtaining the route navigation data to be displayed and the guide display template includes: Obtaining route navigation data to be displayed and a user ID of a user to be navigated; Searching for corresponding template setting information in a preset template information library according to the user identifier; Constructing a guided display template according to the template setting information, wherein the guided display template includes area division information for dividing display sub-areas and sub-area identifiers corresponding to each display sub-area, wherein the sub-area identifier is used to search for a corresponding data display format in a preset display format library in combination with a user identifier; The route navigation data includes lane information, steering action type, total route length, remaining route distance, remaining route time, estimated arrival time, remaining steering distance and target road name; The determining of the turn prompt information, the interesting turn image and the estimated arrival information according to the route navigation data includes: generating turning prompt information according to the turning action type, the turning remaining distance and the target road name; Obtain the card display theme corresponding to the user to be navigated, and determine the background image and the car logo image according to the card display theme; Constructing a lane prompt icon according to the lane information, and searching for an interesting turning icon corresponding to the turning action type in a preset interesting turning icon library; Generate an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon; Generate estimated arrival information according to the remaining distance of the route, the remaining time of the route, and the estimated arrival time; Wherein, before generating the interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon, the method further includes: Determining a route travel percentage based on the total length of the route and the remaining distance of the route; Obtaining a percentage interval corresponding to the travel percentage of the route, where different percentage intervals correspond to different growth forms; Find the growth pattern corresponding to the percentage interval; Adjusting the shape of the vehicle logo image according to the growth shape to obtain a target vehicle logo image; Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes: An interesting turning image is generated according to the lane prompt icon, the background image, the target vehicle logo image and the turning icon.
2. The method for generating a map guide card according to claim 1, It is characterized in that Before the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon, the step further includes: Determining a route travel percentage based on the total length of the route and the remaining distance of the route; Generating a route progress bar according to the route travel percentage; Accordingly, the step of generating an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon includes: An interesting turning image is generated according to the lane prompt icon, the background image, the vehicle logo image, the interesting turning icon and the route progress bar.
3. The map guide card generation method according to claim 1, It is characterized in that The step of filling the guide display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card includes: Obtaining the display sub-areas in the guide display template, and obtaining the data display format corresponding to each display sub-area; Based on the data display format, the turn prompt information, the interesting turn image and the estimated arrival information are filled into the corresponding display sub-area to obtain a map guide card.
4. The method for generating a map guide card according to any one of claims 1 to 3, It is characterized in that Before the step of obtaining the route navigation data to be displayed and the guide display template, the method further includes: When the user to be navigated is in a route navigation state, detecting whether the user to be navigated turns on an interesting guidance mode; If the user to be navigated turns on the fun guidance mode, the step of obtaining the route navigation data to be displayed and the guidance display template is executed.
5. A map guide card generation device, It is characterized in that The map guide card generation device includes the following modules: A data acquisition module is used to acquire route navigation data to be displayed and guide display templates; An information generation module, used to determine turn prompt information, interesting turn images and estimated arrival information according to the route navigation data; A card generation module, used to fill the guide display template according to the turn prompt information, the interesting turn image and the estimated arrival information to obtain a map guide card, and the map guide card is displayed in the task bar of the terminal or in the form of a floating window; The data acquisition module is further used to acquire the route navigation data to be displayed and the user identification of the user to be navigated; and search for corresponding template setting information in the preset template information library according to the user identification; Constructing a guided display template according to the template setting information, wherein the guided display template includes area division information for dividing display sub-areas and sub-area identifiers corresponding to each display sub-area, wherein the sub-area identifier is used to search for a corresponding data display format in a preset display format library in combination with a user identifier; The route navigation data includes lane information, turn action type, total route length, remaining route distance, remaining route time, estimated arrival time, remaining turn distance and target road name. The information generation module is further used to generate turning prompt information according to the turning action type, the remaining turning distance and the target road name; obtain a card display theme corresponding to the user to be navigated, and determine a background image and a vehicle logo image according to the card display theme; construct a lane prompt icon according to the lane information, and search for an interesting turning icon corresponding to the turning action type in a preset interesting turning icon library; generate an interesting turning image according to the lane prompt icon, the background image, the vehicle logo image and the interesting turning icon; generate an estimated arrival information according to the remaining distance of the route, the remaining time of the route and the estimated arrival time; The information generation module is further used to determine the route travel percentage according to the total length of the route and the remaining distance of the route; obtain the percentage interval corresponding to the route travel percentage, different percentage intervals correspond to different growth forms; find the growth form corresponding to the percentage interval; adjust the form of the vehicle logo image according to the growth form to obtain the target vehicle logo image; generate an interesting turning image according to the lane prompt icon, the background image, the target vehicle logo image and the turning icon.
6. A map guide card generation device, It is characterized in that The map guidance card generation device comprises: a processor, a memory, and a map guidance card generation program stored in the memory and executable on the processor. When the map guidance card generation program is executed by the processor, the steps of the map guidance card generation method as described in any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a map guidance card generation program, and when the map guidance card generation program is executed, the steps of the map guidance card generation method according to any one of claims 1 to 4 are implemented.