CN105446573B - Method and device for displaying direction - Google Patents

Method and device for displaying direction Download PDF

Info

Publication number
CN105446573B
CN105446573B CN201410403548.0A CN201410403548A CN105446573B CN 105446573 B CN105446573 B CN 105446573B CN 201410403548 A CN201410403548 A CN 201410403548A CN 105446573 B CN105446573 B CN 105446573B
Authority
CN
China
Prior art keywords
terminal
displayed
sky map
preset
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410403548.0A
Other languages
Chinese (zh)
Other versions
CN105446573A (en
Inventor
任恬
成悦
韩伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Xiaomi Inc
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc, Beijing Xiaomi Mobile Software Co Ltd filed Critical Xiaomi Inc
Priority to CN201410403548.0A priority Critical patent/CN105446573B/en
Publication of CN105446573A publication Critical patent/CN105446573A/en
Application granted granted Critical
Publication of CN105446573B publication Critical patent/CN105446573B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The disclosure discloses a method and a device for displaying directions, and belongs to the technical field of terminals. The method comprises the following steps: the terminal runs a compass application program to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page; monitoring whether a preset trigger event is triggered or not; if the preset trigger event is triggered, acquiring a star-sky map corresponding to the position of the current time terminal; selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the sky map; and displaying the area to be displayed in the display page. According to the method and the device, after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when the preset trigger event is triggered, and the star-sky map is used as auxiliary display content for displaying the pointing direction of the terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.

Description

Method and device for displaying direction
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for displaying a direction.
Background
With the development of terminal technology, an electronic compass is arranged in the terminal and used for detecting the direction and realizing the function of the compass. The geomagnetic sensor in the electronic compass senses geomagnetic information, converts the geomagnetic information into digital signals, calculates the deflection angle of a magnetic field according to the digital signals, and finally determines the current pointing direction of the terminal according to the deflection angle of the magnetic field.
The inventors found that the related art has at least the following problems:
the compass function in the existing terminal can only display the pointing direction, and no reference information is available to assist a user in judging the position, so that the functional requirement of the user outdoors cannot be met, and the man-machine interaction is reduced.
Disclosure of Invention
In order to solve the problems of the related art, the embodiments of the present disclosure provide a method and an apparatus for displaying a direction. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a method of displaying a direction, including:
the terminal runs a compass application program to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page;
monitoring whether a preset trigger event is triggered or not;
if the preset trigger event is monitored to be triggered, acquiring a star-sky map corresponding to the position of the current time terminal;
selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the star map;
and displaying the area to be displayed in the display page.
In a first possible implementation manner of the first aspect, the monitoring whether a preset trigger event is triggered includes:
when the situation that the terminal moves in a preset direction and the posture of the terminal meets a preset condition after the movement is stopped is monitored, determining to trigger a preset trigger event;
the preset condition is that an included angle between a designated coordinate axis of the terminal in the three-dimensional coordinate system and a horizontal plane is within a preset angle range.
In a second possible implementation manner of the first aspect, the obtaining of the star sky map corresponding to the location of the current time terminal includes:
acquiring current time and acquiring position information of the terminal;
and in the corresponding relation between the preset time and position information and the star-sky map, acquiring the star-sky map corresponding to the position of the terminal at the current time according to the current time and the position information of the terminal.
In a third possible implementation manner of the first aspect, the selecting, from the sky map, a to-be-displayed area corresponding to the pointing direction of the terminal includes:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the star map.
In a fourth possible implementation manner of the first aspect, the displaying the area to be displayed in the display page includes:
judging whether the current time of the position of the terminal is in a designated time period or not;
if the current time of the position of the terminal belongs to a specified time period, displaying the area to be displayed and weather and air information corresponding to the position of the terminal in the display page;
and if the current time of the position of the terminal does not belong to the specified time period, displaying the area to be displayed in the display page.
In a fifth possible implementation manner of the first aspect, the selecting, from the sky map, an area to be displayed corresponding to a pointing direction of the terminal includes:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and according to the direction pointed by the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying a direction, including:
the terminal comprises a determining module, a judging module and a display module, wherein the determining module is used for the terminal to run a compass application program to determine the pointing direction of the terminal;
the first display module is used for displaying the pointing direction of the terminal on a display page;
the monitoring module is used for monitoring whether a preset trigger event is triggered or not;
the acquisition module is used for acquiring a star-sky map corresponding to the position of the current time terminal when the preset trigger event is monitored to be triggered;
the selection module is used for selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map;
and the second display module is used for displaying the area to be displayed in the display page.
In a first possible implementation manner of the second aspect, the monitoring module is configured to:
when the situation that the terminal moves in a preset direction and the posture of the terminal meets a preset condition after the movement is stopped is monitored, determining to trigger a preset trigger event;
the preset condition is that an included angle between a designated coordinate axis of the terminal in the three-dimensional coordinate system and a horizontal plane is within a preset angle range.
In a second possible implementation manner of the second aspect, the obtaining module includes:
the first obtaining submodule is used for obtaining the current time and obtaining the position information of the terminal;
and the second obtaining submodule is used for obtaining the star-sky map corresponding to the position of the terminal at the current time according to the current time and the position information of the terminal in the corresponding relation of the position information and the star-sky map at the preset time.
In a third possible implementation manner of the second aspect, the selecting module is configured to:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the star map.
In a fourth possible implementation manner of the second aspect, the second display module includes:
the judging submodule is used for judging whether the current time of the position of the terminal is in a specified time period;
the first display sub-module is used for displaying the area to be displayed and weather and air information corresponding to the position of the terminal in the display page when the current time of the position of the terminal belongs to a specified time period;
and the second display submodule is used for displaying the area to be displayed in the display page when the current time of the position of the terminal does not belong to the designated time period.
In a fifth possible implementation manner of the second aspect, the selecting module is further configured to:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and according to the direction pointed by the terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying a direction, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the terminal runs a compass application program to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page;
monitoring whether a preset trigger event is triggered or not;
if the preset trigger event is monitored to be triggered, acquiring a star-sky map corresponding to the position of the current time terminal;
selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the star map;
and displaying the area to be displayed in the display page.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when a preset trigger event is triggered and used as auxiliary display content for displaying the pointing direction of the terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of displaying an orientation according to an exemplary embodiment;
FIG. 2 is a flow chart of a method of displaying orientation shown in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a terminal screen displaying a star field map in a method of displaying directions according to an exemplary embodiment of the present disclosure;
FIG. 4 is another schematic diagram illustrating a terminal screen displaying a star field map in a method of displaying directions according to an exemplary embodiment of the present disclosure;
FIG. 5 is an apparatus block diagram illustrating display orientation according to an exemplary embodiment;
FIG. 6 is an apparatus block diagram illustrating display orientation according to an exemplary embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Example one
The embodiment of the present disclosure provides a method for displaying a direction, where the embodiment of the method is applied in a terminal, and with reference to fig. 1, the method flow includes:
in step 101, the terminal runs a compass application to determine the pointing direction of the terminal, and displays the pointing direction of the terminal on a display page;
in step 102, monitoring whether a preset trigger event is triggered;
in step 103, if it is monitored that a preset trigger event is triggered, acquiring a star sky map corresponding to a position where a current time terminal is located;
in step 104, selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the sky map;
in step 105, the area to be displayed is displayed in the display page.
According to the method and the device, after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when the preset trigger event is triggered and used as the auxiliary display content of the pointing direction of the display terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.
Example two
The embodiment of the present disclosure provides a method for displaying a direction, where the embodiment of the method is applied in a terminal, and with reference to fig. 2, the method flow includes:
in step 201, the terminal runs a compass application to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page.
After the compass application is started, the compass application performs a direction determination process, and the pointing direction of the terminal is displayed on the display page of the terminal screen.
In step 202, it is monitored whether a preset trigger event is triggered.
In the embodiment of the present disclosure, the operation performed after the compass application is started is taken as an example for description. Correspondingly, whether a preset trigger event is triggered or not is monitored after the compass application is started, and the star-sky map is displayed while the pointing direction of the terminal is displayed in the compass application program.
In the embodiment of the present disclosure, the preset trigger event may be triggered by:
and when the situation that the terminal moves in the preset direction and the posture of the terminal meets the preset condition after the movement is stopped is monitored, determining to trigger a preset trigger event.
The preset condition is that the screen rotates to the posture that the screen faces the ground, and because the screen cannot face the ground in a horizontal posture accurately in the actual use process, a user may hold the terminal to face the face of the user at a certain angle, and at the moment, the screen of the terminal is not completely horizontal although facing downwards, a certain threshold range needs to be set to meet the preset condition, and the triggering condition needs to be set through an included angle between one coordinate axis in a three-dimensional coordinate system in the terminal and the horizontal plane.
Correspondingly, the preset condition is that the included angle between the designated coordinate axis of the terminal in the three-dimensional coordinate system and the horizontal plane is within a preset angle range.
Typically, the user uses the terminal by holding the terminal and placing the terminal in a position parallel to the chest, where a sensor in the terminal can detect that the terminal is stationary. After a user starts a compass application, the terminal is held over the top of the head and the screen of the terminal is rotated to a posture that the screen faces the ground, so that a trigger event that a star-sky map is displayed in a display page of the terminal, wherein the screen displays the pointing direction of the terminal, is triggered. After the user moves the terminal, the terminal is located above the top of the head of the user, and the user needs to look up the screen of the terminal at the moment, so that the process of observing the starry sky by the user can be simulated.
When the terminal is moved by the user, the following can be detected by the sensor in the terminal: the terminal moves in the designated direction, namely, the movement on the designated coordinate axis in the three-dimensional coordinate system of the terminal is detected, and the movement process is from low to high. When the terminal is held by a user longitudinally in the gesture of the terminal in the movement process, the designated coordinate axis can be a z axis; when the terminal is held by the user in a horizontal direction during the movement, the designated coordinate axis may be an x-axis.
Then detecting that the terminal stops moving in the designated direction and maintains a static state; and finally, detecting that the movement on the same appointed coordinate axis stops in the three-dimensional coordinate system of the terminal in the movement process, wherein the terminal is in a static state. When the terminal is held by a user longitudinally after the movement is finished, the designated coordinate axis can be a z axis; when the terminal is held by the user in a horizontal direction during the movement, the designated coordinate axis may be an x-axis.
And finally, detecting that the included angle between the designated coordinate axis of the terminal in the three-dimensional coordinate system and the horizontal plane is within a preset angle range, namely the current posture of the terminal is that the terminal screen faces the ground and the included angle between the terminal screen and the horizontal plane is within the preset angle range. After the movement is finished, when the terminal gesture is that a user vertically holds the terminal, the designated coordinate axis can be a y axis; when the terminal is held by the user in a horizontal direction during the movement, the designated coordinate axis may be an x-axis.
Optionally, for a preset trigger event triggering manner, the triggering may be performed manually by a user through a preset operation, for example: triggering through a preset operation gesture; the button or icon is pressed to trigger.
In step 203, if it is monitored that a preset trigger event is triggered, a star sky map corresponding to a position where the current time terminal is located is obtained.
In this step, a star field map which can be observed at the current time at the position of the terminal needs to be acquired, wherein the star field map is an arc-shaped picture.
The process in step 203 may be implemented by:
in step 2031, the current time is acquired, and the location information of the terminal is acquired.
The position information is generally latitude and longitude information, and can be acquired by calling a positioning module. The Positioning module may perform Positioning in a GPS (Global Positioning System) manner, may perform Positioning in a GPS-assisted manner by a base station, and may perform Positioning in a base station Positioning manner.
In step 2032, in the corresponding relationship between the preset time and position information and the sky map, the sky map corresponding to the position of the terminal at the current time is obtained according to the current time and the position information of the terminal.
The corresponding relation between the preset time and the position information and the starry sky map can be stored in the terminal in advance; in addition, because the data volume in the corresponding relation between the position information and the star-sky map is huge at the preset time, the data volume can be stored by the server, and the two parameters are sent to the server after the terminal acquires the current time and the position information, so that the server can inquire according to the two parameters and return the inquired star-sky map to the terminal.
In step 204, a to-be-displayed area corresponding to the pointing direction of the terminal is selected from the sky map.
The area corresponding to each direction is divided in the star field map in advance, so that after the terminal determines the pointing direction of the terminal, the area of the pointing direction of the terminal corresponding to the star field map is displayed on a screen of the terminal. At this time, the posture of the terminal is not limited, and the terminal may be held by a user in a horizontal direction or a vertical direction, and the pointing direction of the corresponding terminal may belong to any one of four directions in the terminal, which is not limited again. In the disclosed embodiment, the pointing direction of the terminal is acquired by a compass application.
Step 204 may be implemented by:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the starry sky map.
Optionally, when the user holds the terminal by hand and looks up the starry sky map displayed on the screen of the terminal, direction conversion can be performed, at this time, the terminal detects that the pointing direction of the terminal is changed, and the corresponding starry sky map displayed on the screen of the terminal is updated along with the change of the pointing direction of the terminal. Thus, step 203 may also be implemented by:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and the direction pointed by the terminal.
Wherein the preset time interval can be set according to the requirement, if the set time interval period is very short, and
as shown in fig. 3, the diagram shows a schematic diagram of displaying a star field map in a terminal screen, which is the star field map displayed in the terminal screen when a user faces east; as shown in fig. 4, another schematic diagram of displaying the star-sky map in the terminal screen is shown, when the user turns to the northeast direction, the star-sky map displayed in the terminal screen reselects the area to be displayed corresponding to the northeast direction in the star-sky map for displaying.
Further, the area corresponding to each direction in the star map which has been divided in advance may be eight directions: east, south, west, north, southeast, northeast, southwest and northwest, wherein each direction corresponds to an area in the sky map; the center of the starry sky map can be used as an origin, and each angle corresponds to one direction, namely 360 directions, so that a direction angle is obtained in compass application, the direction angle is directly used for determining the corresponding direction in the starry sky map, and further the region corresponding to the direction in the starry sky map is obtained, and the corresponding region to be displayed in the starry sky map is selected without further determining the direction pointed by the terminal through the direction angle.
The contents displayed in different areas can include overlapped parts, so that a user can more accurately make the starry sky map displayed in the screen be continuously changed when the user rotates the terminal or turns.
In step 205, the area to be displayed is displayed in the display page.
Step 205 may be implemented by the following steps 2051 to 2053:
in step 2051, it is determined whether the current time of the location of the terminal is within a specified time period.
Wherein, the designated time period may be 6: 00-18: 00, i.e. the daytime phase of the location of the terminal.
In step 2052, if the current time of the position of the terminal belongs to the specified time period, displaying the area to be displayed and the weather and air information corresponding to the position of the terminal on the display page;
during the day period of the terminal, the weather and air information of the terminal can be displayed at the same time as the compass application displays the star sky map, such as: weather forecast, air quality, etc.
In step 2053, if the current time of the position of the terminal does not belong to the specified time period, the area to be displayed is displayed in the display page.
According to the method and the device, after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when the preset trigger event is triggered and used as the auxiliary display content of the pointing direction of the display terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.
EXAMPLE III
An embodiment of the present disclosure provides an apparatus for displaying a direction, referring to fig. 5, the apparatus including:
a determining module 501, configured to determine a pointing direction of a terminal by running a compass application on the terminal;
a first display module 502, configured to display a pointing direction of a terminal on a display page;
a monitoring module 503, configured to monitor whether a preset trigger event is triggered;
an obtaining module 504, configured to obtain a star field map corresponding to a location where a current time terminal is located when a preset trigger event is monitored to be triggered;
a selecting module 505, configured to select, in a sky map, a to-be-displayed area corresponding to a pointing direction of a terminal;
and a second display module 506, configured to display the area to be displayed in the display page.
Wherein, the monitoring module 503 is configured to:
when the situation that the terminal moves in the preset direction and the posture of the terminal meets the preset condition after the movement stops is monitored, determining to trigger a preset trigger event;
the preset condition is that an included angle between a designated coordinate axis of the terminal in the three-dimensional coordinate system and a horizontal plane is within a preset angle range.
The obtaining module 504 includes:
the first obtaining submodule is used for obtaining the current time and obtaining the position information of the terminal;
and the second obtaining submodule is used for obtaining the star-sky map corresponding to the position of the terminal at the current time according to the current time and the position information of the terminal in the corresponding relation of the position information and the star-sky map at the preset time.
Wherein, the selecting module 505 is configured to:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the starry sky map.
The second display module 506 includes:
the judging submodule is used for judging whether the current time of the position of the terminal is in a specified time period;
the first display sub-module is used for displaying an area to be displayed and weather and air information corresponding to the position of the terminal in a display page when the current time of the position of the terminal belongs to a specified time period;
and the second display submodule is used for displaying the area to be displayed in the display page when the current time of the position of the terminal does not belong to the designated time period.
Wherein, the selecting module 505 is further configured to:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and the direction pointed by the terminal.
According to the method and the device, after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when the preset trigger event is triggered and used as the auxiliary display content of the pointing direction of the display terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.
Example four
Fig. 6 is a block diagram illustrating an apparatus 600 for displaying a direction according to an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of the components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WI-FI, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
According to the method and the device, after the pointing direction of the terminal is determined, the star-sky map of the position where the terminal is located at the moment is obtained when the preset trigger event is triggered and used as the auxiliary display content of the pointing direction of the display terminal, so that a user is assisted in observing the direction and the position, and the man-machine interaction is improved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (9)

1. A method of displaying a direction, the method comprising:
the terminal runs a compass application program to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page;
when the situation that the terminal moves from low to high in a preset direction and the posture of the terminal meets a preset condition after the movement stops is monitored, determining to trigger a preset trigger event;
the preset condition is that an included angle between a designated coordinate axis of the terminal in a three-dimensional coordinate system and a horizontal plane is within a preset angle range, a screen of the terminal rotates to a posture that the screen faces the ground, the low-to-high state means that the distance between the terminal and the ground is from low to high, and the terminal is higher than the top of the head of a user after the terminal stops moving;
if the preset trigger event is monitored to be triggered, acquiring a starry sky map corresponding to the position of the current time terminal, wherein the starry sky map is an arc-shaped picture, areas to be displayed corresponding to all directions are pre-divided in the starry sky map, each direction corresponds to one area to be displayed in the starry sky map, and each direction comprises eight directions of east, south, west, north, south-east, north-east, south-west and north-west, and/or the direction corresponding to each direction angle with the center of the starry sky map as an origin, and the contents displayed in different areas to be displayed comprise a heavy part;
selecting a to-be-displayed area corresponding to the pointing direction of the terminal from the star-sky map, and when the fact that the pointing direction of the terminal is changed is detected, selecting the to-be-displayed area which follows the change of the pointing direction of the terminal from the star-sky map displayed in a screen;
judging whether the current time of the position of the terminal is in a designated time period or not;
if the current time of the position of the terminal belongs to a specified time period, displaying the area to be displayed and weather and air information corresponding to the position of the terminal in the display page;
and if the current time of the position of the terminal does not belong to the specified time period, displaying the area to be displayed in the display page.
2. The method according to claim 1, wherein the obtaining of the star sky map corresponding to the position of the current time terminal includes:
acquiring current time and acquiring position information of the terminal;
and in the corresponding relation between the preset time and position information and the star-sky map, acquiring the star-sky map corresponding to the position of the terminal at the current time according to the current time and the position information of the terminal.
3. The method according to claim 1, wherein the selecting a region to be displayed in the sky map corresponding to the pointing direction of the terminal comprises:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the star map.
4. The method according to claim 1, wherein the selecting a region to be displayed in the sky map corresponding to the pointing direction of the terminal comprises:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and according to the direction pointed by the terminal.
5. An apparatus for displaying a direction, the apparatus comprising:
the terminal comprises a determining module, a judging module and a display module, wherein the determining module is used for the terminal to run a compass application program to determine the pointing direction of the terminal;
the first display module is used for displaying the pointing direction of the terminal on a display page;
the monitoring module is used for determining to trigger a preset trigger event when the terminal is monitored to move from low to high in a preset direction and the posture of the terminal meets a preset condition after the movement stops; the preset condition is that an included angle between a designated coordinate axis of the terminal in a three-dimensional coordinate system and a horizontal plane is within a preset angle range, a screen of the terminal rotates to a posture that the screen faces the ground, the low-to-high state means that the distance between the terminal and the ground is from low to high, and the terminal is higher than the top of the head of a user after the terminal stops moving;
the acquisition module is used for acquiring a starry sky map corresponding to the position of the current time terminal when the preset trigger event is monitored to be triggered, wherein the starry sky map is an arc-shaped picture, areas to be displayed corresponding to all directions are pre-divided in the starry sky map, each direction corresponds to one area to be displayed in the starry sky map, and each direction comprises eight directions of east, south, west, north, south, east, north, south, west and north, and/or the direction corresponding to each direction angle with the center of the starry sky map as the origin, and the contents displayed in different areas to be displayed comprise a heavy part;
the selection module is used for selecting a to-be-displayed area corresponding to the pointing direction of the terminal from the sky map, and when the change of the pointing direction of the terminal is detected, selecting the to-be-displayed area following the change of the pointing direction of the terminal from the sky map displayed in a screen;
the second display module comprises a judgment submodule, a first display submodule and a second display submodule;
the judging submodule is used for judging whether the current time of the position of the terminal is in a specified time period;
the first display sub-module is used for displaying the area to be displayed and weather and air information corresponding to the position of the terminal in the display page when the current time of the position of the terminal belongs to a specified time period;
and the second display submodule is used for displaying the area to be displayed in the display page when the current time of the position of the terminal does not belong to the designated time period.
6. The apparatus of claim 5, wherein the obtaining module comprises:
the first obtaining submodule is used for obtaining the current time and obtaining the position information of the terminal;
and the second obtaining submodule is used for obtaining the star-sky map corresponding to the position of the terminal at the current time according to the current time and the position information of the terminal in the corresponding relation of the position information and the star-sky map at the preset time.
7. The apparatus of claim 5, wherein the selection module is configured to:
and selecting an area with the same pointing direction as the terminal as an area to be displayed corresponding to the pointing direction of the terminal from areas corresponding to all preset directions in the star map.
8. The apparatus of claim 5, wherein the selecting module is further configured to:
and periodically executing a step of selecting an area to be displayed in the sky map according to a preset time interval and according to the direction pointed by the terminal.
9. An apparatus for displaying a direction, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the terminal runs a compass application program to determine the pointing direction of the terminal and displays the pointing direction of the terminal on a display page;
when the situation that the terminal moves from low to high in a preset direction and the posture of the terminal meets a preset condition after the movement stops is monitored, determining to trigger a preset trigger event;
the preset condition is that an included angle between a designated coordinate axis of the terminal in a three-dimensional coordinate system and a horizontal plane is within a preset angle range, a screen of the terminal rotates to a posture that the screen faces the ground, the low-to-high state means that the distance between the terminal and the ground is from low to high, and the terminal is higher than the top of the head of a user after the terminal stops moving;
if the preset trigger event is monitored to be triggered, acquiring a starry sky map corresponding to the position of the current time terminal, wherein the starry sky map is an arc-shaped picture, areas to be displayed corresponding to all directions are pre-divided in the starry sky map, each direction corresponds to one area to be displayed in the starry sky map, and each direction comprises eight directions of east, south, west, north, south-east, north-east, south-west and north-west, and/or the direction corresponding to each direction angle with the center of the starry sky map as an origin, and the contents displayed in different areas to be displayed comprise a heavy part;
selecting a to-be-displayed area corresponding to the pointing direction of the terminal from the star-sky map, and when the fact that the pointing direction of the terminal is changed is detected, selecting the to-be-displayed area which follows the change of the pointing direction of the terminal from the star-sky map displayed in a screen;
judging whether the current time of the position of the terminal is in a designated time period or not;
if the current time of the position of the terminal belongs to a specified time period, displaying the area to be displayed and weather and air information corresponding to the position of the terminal in the display page;
and if the current time of the position of the terminal does not belong to the specified time period, displaying the area to be displayed in the display page.
CN201410403548.0A 2014-08-15 2014-08-15 Method and device for displaying direction Active CN105446573B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410403548.0A CN105446573B (en) 2014-08-15 2014-08-15 Method and device for displaying direction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410403548.0A CN105446573B (en) 2014-08-15 2014-08-15 Method and device for displaying direction

Publications (2)

Publication Number Publication Date
CN105446573A CN105446573A (en) 2016-03-30
CN105446573B true CN105446573B (en) 2020-10-30

Family

ID=55556849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410403548.0A Active CN105446573B (en) 2014-08-15 2014-08-15 Method and device for displaying direction

Country Status (1)

Country Link
CN (1) CN105446573B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107607097B (en) * 2017-09-14 2020-09-25 Oppo广东移动通信有限公司 Compass display method and device and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393027A (en) * 2008-11-18 2009-03-25 苏州信达光电科技有限公司 Hand-held starry sky display equipment and starry sky display method
CN102236978A (en) * 2010-05-07 2011-11-09 希姆通信息技术(上海)有限公司 Method for auxiliary constellation recognition and handheld device using same
CN102970404A (en) * 2012-11-26 2013-03-13 上海量明科技发展有限公司 Sky contact target realization method, client and system
CN103679799A (en) * 2012-09-25 2014-03-26 中国航天科工集团第二研究院二〇七所 A method for fast generating an optical starry sky background

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2559726C (en) * 2004-03-24 2015-10-20 A9.Com, Inc. System and method for displaying images in an online directory
US9201582B2 (en) * 2008-11-11 2015-12-01 Canon Kabushiki Kaisha Display control apparatus and display control method
US20130093738A1 (en) * 2010-06-28 2013-04-18 Johannes Manus Generating images for at least two displays in image-guided surgery
CN103577051B (en) * 2013-10-12 2017-03-08 优视科技有限公司 The method and device of control menu

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101393027A (en) * 2008-11-18 2009-03-25 苏州信达光电科技有限公司 Hand-held starry sky display equipment and starry sky display method
CN102236978A (en) * 2010-05-07 2011-11-09 希姆通信息技术(上海)有限公司 Method for auxiliary constellation recognition and handheld device using same
CN103679799A (en) * 2012-09-25 2014-03-26 中国航天科工集团第二研究院二〇七所 A method for fast generating an optical starry sky background
CN102970404A (en) * 2012-11-26 2013-03-13 上海量明科技发展有限公司 Sky contact target realization method, client and system

Also Published As

Publication number Publication date
CN105446573A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
EP3150964B1 (en) Navigation method and device
US9667774B2 (en) Methods and devices for sending virtual information card
EP3182716A1 (en) Method and device for video display
EP3316105A1 (en) Instant message processing method and device
EP2927787B1 (en) Method and device for displaying picture
EP3156767A2 (en) Method and device for navigating and method and device for generating a navigation video
US20170064577A1 (en) Information Display Method and Apparatus, and Storage Medium
CN107656666B (en) Mobile terminal and scrolling speed determination method
EP3016048B1 (en) Method and device for displaying a reminder based on geographic criteria
US20170366741A1 (en) Method and apparatus for setting image capturing parameters
EP3299946B1 (en) Method and device for switching environment picture
EP3232156A1 (en) Obstacle locating method, apparatus and system, computer program and recording medium
KR101705047B1 (en) Mobile terminal and method for sharing real-time road view
US20180342029A1 (en) Method, apparatus terminal device, and computer readable storage medium for invoking a virtual public transport card
EP3147802A1 (en) Method and apparatus for processing information
US9818196B2 (en) Method and device for positioning and navigating
CN107202574B (en) Motion trail information correction method and device
CN106485660B (en) Electronic map zooming method and device
EP3173925B1 (en) Interface display method and apparatus, computer program and recording medium
US11570745B2 (en) Positioning method and apparatus
US20220391446A1 (en) Method and device for data sharing
KR20160086684A (en) Mobile terminal and method for controlling the same
CN112950712B (en) Positioning method and device, electronic equipment and storage medium
EP3667453A1 (en) Drone control method and device, drone and core network device
CN105446573B (en) Method and device for displaying direction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200927

Address after: No.018, floor 8, building 6, yard 33, middle Xierqi Road, Haidian District, Beijing 100085

Applicant after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Applicant after: Xiaomi Technology Co.,Ltd.

Address before: 100085, Haidian District, Beijing Qinghe Street No. 68, Huarun colorful city shopping center two, 13 layers

Applicant before: Xiaomi Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant