This application is based on and claims priority to Chinese Patent Application Serial No. 201810175026.8, filed on Mar. 2, 2018, the entire contents of which are incorporated herein by reference.
The present disclosure relates to a field of navigation, and more particularly to a method for displaying an emblem in navigation, an apparatus for displaying an emblem in navigation and a device for displaying an emblem in navigation and a medium.
At present, performing route navigation by using a navigation terminal becomes more and more important in car owners' travel. The navigation terminal may give a plurality of driving state information during navigation such that a user knows about a current driving state of a vehicle conveniently.
As illustrated in
The present disclosure provides a method for displaying an emblem in navigation, a device for displaying an emblem in navigation and a medium.
In the first aspect, embodiments of the present disclosure provide a method for displaying an emblem in navigation, which includes: obtaining current information of a navigation terminal, in which the current information at least includes a state of a location system, a driving speed and a driving location; and drawing an emblem with the driving speed drawn thereon when the state of the location system indicates an enabled state, and displaying the emblem at the driving location.
In the second aspect, embodiments of the present disclosure further provide a device for displaying an emblem in navigation, which includes: one or more processors and a storage device.
The storage device is configured to store one or more programs.
When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for displaying the emblem in navigation according to any of embodiments.
In the third aspect, embodiments of the present disclosure further provide a computer readable storage medium having stored computer programs thereon. The computer programs are configured to be executed by a processor to implement the method for displaying the emblem in navigation according to any of embodiments.
Description will be made in detail below to the accompanying drawings and embodiments. It should be understood that, detailed embodiments described herein are only intended to explain the present disclosure and do not be understood a limitation of the present disclosure. In addition, it should be further noted that, for the convenience of description, only some but not all of the structures related to the present disclosure are shown in the drawings.
In block S110, current information of a navigation terminal is obtained, in which the current information at least includes a state of a location system, a driving speed and a driving location.
The state of the location system indicates whether the location system of the navigation terminal is enabled, which may be an enabled state or a disabled state. Alternatively, the location system may be the Global Positioning System, and may be the Beidou Positioning System.
The driving speed indicates a current driving speed of a vehicle where the navigation terminal is installed, and specifically may be 50 kilometers per hour.
The driving speed may be determined according to a ratio of a driving distance to a time difference between different time points. Typically, a first position of the navigation terminal at a first time point and a second position of the navigation terminal at a second time point are obtained; the driving distance is determined based on coordinates of the two positions, or a length of route between the first position and the second position in the navigation route is determined as the driving distance; the time difference between the first time point and the second time point is determined; and the driving speed is determined based on the ratio of the driving distance to the time difference.
The driving location indicates a current location of the vehicle where the navigation terminal is installed, and specifically may be determined according to the location determined by the location system for the navigation terminal.
In block S120, an emblem with the driving speed drawn thereon is drawn when the state of the location system indicates an enabled state, and the emblem is displayed at the driving location.
The emblem is a label indicating the driving location of the vehicle.
Alternatively, the driving speed may be drawn at any position of the emblem, to clearly display the driving speed while occupying the display area as little as possible.
Typically, the procedure of drawing the emblem with the driving speed drawn thereon may be as follows. A basic model of the emblem is preset. A position, a driving direction and a driving speed of the vehicle having the navigation terminal installed are obtained. As illustrated in
It should be noted that, the time sequence of the steps of editing the basic model according to the position, the driving direction and the driving speed of the vehicle is not limited herein. Alternatively, the driving speed may be edited into the basic model first, then the driving direction may be edited into the basic model, finally the position of the vehicle is edited into the basic model. In another example, the position of the vehicle may be edited into the basic model firstly, then the driving direction is edited into the basic model, finally the driving speed is edited into the basic model. There are other execution orders, which are not elaborated herein.
With the technical solution of the present disclosure, by drawing the driving speed on the emblem, the driving speed and the emblem can be displayed together, such that the driving speed and the emblem occupy only one display area, thereby avoiding occupation of the display area of the driving speed, and simultaneously solving the problem that the map elements may be overlaid with the display area of the driving speed.
In order to display information in the disabled state of the location system without occupying the display area, so as to remind the user, after obtaining the current information of the navigation terminal, which includes at least the state of the location system, the driving speed and the driving location, the method further includes: determining a display format of the emblem as a no location system format when the state of the location system is a disabled state; and drawing the emblem according to the no location system format, and displaying the emblem at the driving location.
The no location system format may be defined based on actual needs.
Typically, as illustrated in
In order to display information of the driving speed of the vehicle without occupying the display area, so as to remind the user, when the location system indicates the enabled state, drawing the emblem with the driving speed drawn thereon and displaying the emblem at the driving location includes: determining a display format of the emblem according to the driving speed; and drawing the emblem with the driving speed drawn thereon according to the display format, and displaying the emblem at the driving location.
Alternatively, the driving speed can be divided into a plurality of ranges, and each range corresponds to a display format. Detailed display formats of the emblem may be determined based on the actual needs.
Current information of a navigation terminal is obtained, in which, the current information at least includes a state of a location system, a driving speed and a driving location.
A display format of the emblem is determined as an over-speeding driving format when the state of the location system indicates an enabled state and the driving speed is greater than a preset speed threshold. An emblem with the driving speed drawn thereon is drawn according to the over-speeding driving format, and the emblem is displayed at the driving location in a preset animation way, as illustrated in
The display format of the emblem is determined as a navigation format when the state of the location system indicates the enabled state and the driving speed is lower than or equal to the preset speed threshold. The emblem with the driving speed drawn thereon is drawn according to the navigation format, and the emblem is displayed at the driving location, as illustrated in
The display format of the emblem is determined as a no location system format when the state of the location system indicates a disabled state. The emblem is drawn according to the no location system format, and the emblem is displayed at the driving location.
All the speed threshold, the navigation format, the over-speeding driving format and the preset animation may be set based on the actual needs.
Alternatively, different display formats may be distinguished by setting the emblems with different shapes different colors.
Typically, the preset animation above may be a breathing animation. In the navigation format, blue color is chosen, and in the over-speeding driving format, red color is chosen.
With the technical solution provided in embodiments of the present disclosure, by drawing the emblem in the over-speeding driving format when the driving speed is greater than the preset speed threshold, and displaying the emblem in the navigation format when the driving speed is lower than or equal to the preset speed threshold, the user may know about whether the vehicle is over-speeding according to different display formats of the emblem. In addition, by displaying the emblem in the over-speeding driving format with the animation effect, the user may be reminded intuitively, such that the indicating effect is enhanced.
It should be noted that, those skilled in the related art will have motivation to combine implementations described in the foregoing embodiments with the technical guidance of the embodiment, to implement the displaying of the emblem with the driving speed drawn thereon.
The obtaining module 10 is configured to obtain current information of a navigation terminal, in which, the current information at least includes a state of a location system, a driving speed and a driving location.
The display module 20 is configured to draw an emblem with the driving speed drawn thereon when the state of the location system indicates an enabled state, and display the emblem at the driving location.
With the technical solution of the present disclosure, by drawing the driving speed on the emblem, the driving speed and the emblem are displayed together, such that the driving speed and the emblem occupy only one display area, thereby avoiding occupation of the display area of the driving speed, and simultaneously solving the problem that the display area of the driving speed overlays the map elements below it.
Further, the display module 20 includes: a display determining unit and a display unit.
The display determining unit is configured to determine a display format of the emblem according to the driving speed.
The display unit is configured to draw the emblem with the driving speed drawn thereon according to the display format, and display the emblem at the driving location.
Further, the display determining unit is specifically configured to: determine the display format of the emblem as an over-speeding driving format when the driving speed is greater than a preset speed threshold; and determine the display format of the emblem as a navigation format when the driving speed is lower than or equal to the preset speed threshold.
Further, the display unit is specifically configured to: draw the emblem with the driving speed drawn thereon according to the over-speeding driving format when the display format is the over-speeding driving format; and display the emblem at the driving location in a preset animation way.
Further, the device for displaying the emblem in navigation further includes: a no location system determining module and a no location system display module.
The no location system determining module is configured to determine the display format of the emblem as a no location system format when the state of the location system indicates a disabled state after the current information of the navigation terminal is obtained, in which, the current information at least includes the state of the location system, the driving speed and the driving location.
The no location system display module is configured to draw the emblem according to the no location system format, and display the emblem at the driving location.
As illustrated in
The bus 18 represents one or more of several bus structures, including a storage bus or a storage controller, a peripheral bus, a graphic accelerating port and a processor or a local bus with any bus structure in various bus structures. For example, these architectures include but are not limited an ISA (Industry Standard Architecture), a bus, a MAC (Micro Channel Architecture) bus, an enhanced ISA bus, a VESA (Video Electronics Standards Association) local bus and a PCI (Peripheral Component Interconnection) bus.
The terminal 12 typically includes various computer system readable mediums. These mediums may be any usable medium that may be accessed by the terminal 12, including volatile mediums and non-volatile mediums, removable and non-removable mediums.
The system memory 28 may include computer system readable mediums in the form of the volatile mediums, such as a RAM (Random Access Memory) 30 and/or a cache memory 32. The terminal 12 may further include other removable/non-removable, volatile/non-volatile computer system storage mediums. Only as an example, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic mediums (not illustrated in
A program/utility 40, having a set (at least one) of program modules 42, may be stored in the system memory 28. The program modules 42 include but are not limited to an operating system, one or more application programs, other program modules, and program data. Each of examples may include an implementation of a networking environment. The program module 42 usually executes functions and/or methods described in embodiments of the present disclosure.
The terminal 12 may communicate with one or more external apparatuses 14 (such as a keyboard, a pointing device, a display 24), further may communicate with one or more devices enabling user interaction with the terminal 12, and/or may communicate with one or more other computer devices (such as a network card, modem). Such communication may occur via an Input/Output (I/O) interface 22. And, the terminal 12 further may communicate with one or more networks (such as LAN (Local Area Network), WAN (Wide Area Network) and/or public network, such as Internet) via a network adapter 20. As illustrated in
The processing unit 16, by running programs stored in the system medium 28, executes various function applications and data processing, for example implementing a method for displaying an emblem in navigation as described in the above embodiments.
Embodiments of the present disclosure further provide a computer readable storage medium, having stored computer programs thereon, the computer programs are executed by a processor to implement the method for displaying the emblem in navigation according any of embodiments of the present disclosure. The method includes: obtaining current information of a navigation terminal, in which, the current information at least includes a state of a location system, a driving speed and a driving location; and drawing an emblem with the driving speed drawn thereon when the state of the location system indicates an enabled state, and displaying the emblem at the driving location.
The computer readable storage medium provided in embodiments of the present disclosure may employ any combination of one or more computer readable mediums. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (an non-exhaustive list) of the computer-readable storage media include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The computer readable signal medium may further be any tangible medium including or storing programs, which may be used by or in combination with an instruction executing system, an apparatus or a device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such the propagated data signal may take any of a variety of forms, including but not limited to an electro-magnetic signal, an optical signal, or any suitable combination thereof. The computer readable signal medium may be any computer readable medium other than a computer readable storage medium. The computer readable medium can communicate, propagate, or transmit a program for use by or in connection with an instruction processing system, apparatus, or device.
The program codes included computer readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wired, cable, RF, etc., or any suitable combination of the foregoing.
The software and program codes for implementing the present disclosure may be programmed using one program language or the combination of a plurality of program languages, including object-oriented languages like Java, Smalltalk, C++, etc., and the traditional procedural languages like C language or other similar languages. The computer readable program code may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or connected to an external computer (for example, through the Internet using an Internet Service Provider).
It should be noted that, the above descriptions are only some embodiments of the present disclosure and the techniques principles applied. The skilled in the related art should be understood that, the present disclosure is not limited to specific embodiments herein, and various changes and adjustments and substitutions may be performed by the skilled in the related art without departing from scope of the present disclosure. Therefore, although illustration is made in detail to the present disclosure according to the foregoing embodiments, the present disclosure is not only the foregoing embodiments, and may further include more other equivalent embodiments without departing from spirit of the present disclosure. The scope of the present disclosure is decided by the accompanying claims.
Number | Date | Country | Kind |
---|---|---|---|
201810175026.8 | Mar 2018 | CN | national |