[go: up one dir, main page]

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
pointing direction
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.)
Expired - Fee Related
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
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

本公开公开了一种显示方向的方法及装置,属于终端技术领域。方法包括:终端运行指南针应用程序确定终端的指向方向,并在显示页面显示终端的指向方向;监测预设的触发事件是否被触发;如果监测到预设的触发事件被触发,则获取当前时间终端所处位置对应的星空地图;在星空地图中选取与终端的指向方向相对应的待显示区域;在显示页面中显示待显示区域。本公开通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。

Figure 201410403548

The present disclosure discloses a method and a device for displaying direction, belonging to the technical field of terminals. The method includes: running a compass application on the terminal to determine the pointing direction of the terminal, and displaying the pointing direction of the terminal on a display page; monitoring whether a preset trigger event is triggered; if it is detected that the preset trigger event is triggered, obtaining the current time of the terminal The starry sky map corresponding to the location; select the to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map; display the to-be-displayed area on the display page. In the present disclosure, after the pointing direction of the terminal is determined, when a preset trigger event is triggered, a starry sky map of the current location of the terminal is acquired as an auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position, and improve the human-computer interaction.

Figure 201410403548

Description

显示方向的方法及装置Method and device for displaying direction

技术领域technical field

本公开涉及终端技术领域,特别涉及一种显示方向的方法及装置。The present disclosure relates to the technical field of terminals, and in particular, to a method and apparatus for displaying directions.

背景技术Background technique

随着终端技术的发展,终端内置有电子罗盘,用于检测方向以现指南针的功能。该电子罗盘中的地磁传感器会感知到地磁信息,并将地磁信息转换成为数字信号,再根据该数字信号计算出磁场的偏转角,最终根据磁场的偏转角确定终端当前的指向方向。With the development of terminal technology, the terminal has a built-in electronic compass, which is used to detect the direction and realize the function of the compass. The geomagnetic sensor in the electronic compass senses the geomagnetic information, converts the geomagnetic information into a digital signal, and then calculates the deflection angle of the magnetic field according to the digital signal, and finally determines the current pointing direction of the terminal according to the deflection angle of the magnetic field.

发明人发现相关技术至少存在以下问题:The inventor found that the related technology has at least the following problems:

目前终端中的指南针功能仅可以显示出指向方向,没有任何参照信息来辅助用户对位置进行判断,无法满足用户在户外的功能性需求,降低了人机交互性。At present, the compass function in the terminal can only display the pointing direction, and there is no reference information to assist the user in judging the position, which cannot meet the user's functional requirements outdoors, and reduces the human-computer interaction.

发明内容SUMMARY OF THE INVENTION

为了解决相关技术的问题,本公开实施例提供了一种显示方向的方法及装置。所述技术方案如下:In order to solve the problems in the related art, embodiments of the present disclosure provide a method and apparatus for displaying directions. The technical solution is as follows:

根据本公开实施例的第一方面,提供一种显示方向的方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for displaying directions, including:

终端运行指南针应用程序确定所述终端的指向方向,并在显示页面显示所述终端的指向方向;The terminal runs the compass application to determine the pointing direction of the terminal, and displays the pointing direction of the terminal on the display page;

监测预设的触发事件是否被触发;Monitor whether the preset trigger event is triggered;

如果监测到所述预设的触发事件被触发,则获取当前时间终端所处位置对应的星空地图;If it is detected that the preset trigger event is triggered, the star map corresponding to the location of the terminal at the current time is obtained;

在所述星空地图中选取与所述终端的指向方向相对应的待显示区域;Select an area to be displayed corresponding to the pointing direction of the terminal in the starry sky map;

在所述显示页面中显示所述待显示区域。The to-be-displayed area is displayed on the display page.

在第一方面的第一种可能的实现方式中,所述监测预设的触发事件是否被触发,包括:In a first possible implementation manner of the first aspect, the monitoring of whether a preset trigger event is triggered includes:

当监测到终端在预设方向进行运动,且运动停止后所述终端的姿态满足预设条件时,则确定触发预设的触发事件;When it is detected that the terminal moves in a preset direction, and the posture of the terminal satisfies the preset condition after the movement stops, it is determined to trigger the preset trigger event;

其中,所述预设条件为所述终端在三维坐标系中的指定坐标轴与水平面之间的夹角在预设角度范围。The preset condition is that the 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.

在第一方面的第二种可能的实现方式中,所述获取当前时间终端所处位置对应的星空地图,包括:In a second possible implementation manner of the first aspect, the obtaining a starry sky map corresponding to the location of the terminal at the current time includes:

获取当前的时间,以及获取所述终端所处的位置信息;Obtain the current time, and obtain the location information of the terminal;

在预设的时间、位置信息与星空地图的对应关系中,根据所述当前的时间和所述终端所处的位置信息获取当前时间终端所处位置对应的星空地图。In the preset correspondence between time, location information and the starry sky map, the starry sky map corresponding to the location of the terminal at the current time is obtained according to the current time and the location information of the terminal.

在第一方面的第三种可能的实现方式中,所述在所述星空地图中选取与所述终端的指向方向对应的待显示区域,包括:In a third possible implementation manner of the first aspect, selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map includes:

在所述星空地图中预设的各方向对应的区域中,选取与所述终端的指向方向相同的区域作为与所述终端的指向方向对应的待显示区域。From the regions corresponding to the preset directions in the starry sky map, the same region as the pointing direction of the terminal is selected as the to-be-displayed region corresponding to the pointing direction of the terminal.

在第一方面的第四种可能的实现方式中,所述在所述显示页面中显示所述待显示区域,包括:In a fourth possible implementation manner of the first aspect, the displaying the to-be-displayed area on the display page includes:

判断所述终端所处位置当前时间是否为指定时段;Judging whether the current time at the location of the terminal is a specified time period;

如果所述终端所处位置当前时间属于指定时段,则在所述显示页面中显示所述待显示区域以及所述终端所处位置对应的天气和空气信息;If the current time at the location of the terminal belongs to a specified time period, displaying the area to be displayed and the weather and air information corresponding to the location of the terminal on the display page;

如果所述终端所处位置当前时间未属于指定时段,则在所述显示页面中显示所述待显示区域。If the current time at the location of the terminal does not belong to the specified time period, the to-be-displayed area is displayed on the display page.

在第一方面的第五种可能的实现方式中,所述在所述星空地图中选取与所述终端的指向方向相对应的待显示区域,包括:In a fifth possible implementation manner of the first aspect, the selecting a to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map includes:

根据预设时间间隔周期性的执行根据所述终端指向的方向,在所述星空地图中选取待显示区域的步骤。The step of selecting an area to be displayed in the starry sky map according to the direction pointed by the terminal is periodically performed according to a preset time interval.

根据本公开实施例的第二方面,提供一种显示方向的装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying directions, including:

确定模块,用于终端运行指南针应用程序确定所述终端的指向方向;a determining module, used for the terminal to run a compass application to determine the pointing direction of the terminal;

第一显示模块,用于在显示页面显示所述终端的指向方向;a first display module, configured to display the pointing direction of the terminal on a display page;

监测模块,用于监测预设的触发事件是否被触发;A monitoring module for monitoring whether a preset trigger event is triggered;

获取模块,用于在监测到所述预设的触发事件被触发时,获取当前时间终端所处位置对应的星空地图;an acquisition module, configured to acquire a starry sky map corresponding to the location of the terminal at the current time when monitoring that the preset trigger event is triggered;

选取模块,用于在所述星空地图中选取与所述终端的指向方向相对应的待显示区域;A selection module, used for selecting the to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map;

第二显示模块,用于在所述显示页面中显示所述待显示区域。A second display module, configured to display the to-be-displayed area on the display page.

在第二方面的第一种可能的实现方式中,所述监测模块用于:In a first possible implementation manner of the second aspect, the monitoring module is configured to:

当监测到终端在预设方向进行运动,且运动停止后所述终端的姿态满足预设条件时,则确定触发预设的触发事件;When it is detected that the terminal moves in a preset direction, and the posture of the terminal satisfies the preset condition after the movement stops, it is determined to trigger the preset trigger event;

其中,所述预设条件为所述终端在三维坐标系中的指定坐标轴与水平面之间的夹角在预设角度范围。The preset condition is that the 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.

在第二方面的第二种可能的实现方式中,所述获取模块,包括:In a second possible implementation manner of the second aspect, the obtaining module includes:

第一获取子模块,用于获取当前的时间,以及获取所述终端所处的位置信息;The first acquisition submodule is used to acquire the current time and the location information of the terminal;

第二获取子模块,用于在预设的时间,位置信息与星空地图的对应关系中,根据所述当前的时间和所述终端所处的位置信息获取当前时间终端所处位置对应的星空地图。The second obtaining sub-module is configured to obtain the starry sky map corresponding to the location of the terminal at the current time according to the current time and the location information of the terminal in the preset time, the corresponding relationship between the location information and the starry sky map .

在第二方面的第三种可能的实现方式中,所述选取模块用于:In a third possible implementation manner of the second aspect, the selection module is used for:

在所述星空地图中预设的各方向对应的区域中,选取与所述终端的指向方向相同的区域作为与所述终端的指向方向对应的待显示区域。From the regions corresponding to the preset directions in the starry sky map, the same region as the pointing direction of the terminal is selected as the to-be-displayed region corresponding to the pointing direction of the terminal.

在第二方面的第四种可能的实现方式中,所述第二显示模块,包括:In a fourth possible implementation manner of the second aspect, the second display module includes:

判断子模块,用于判断所述终端所处位置当前时间是否为指定时段;A judging submodule for judging whether the current time at the location of the terminal is a specified time period;

第一显示子模块,用于在所述终端所处位置当前时间属于指定时段时,在所述显示页面中显示所述待显示区域以及所述终端所处位置对应的天气和空气信息;a first display sub-module, configured to display the area to be displayed and the weather and air information corresponding to the location of the terminal on the display page when the current time at the location of the terminal belongs to a specified time period;

第二显示子模块,用于在所述终端所处位置当前时间未属于指定时段时,在所述显示页面中显示所述待显示区域。The second display sub-module is configured to display the to-be-displayed area on the display page when the current time at the location of the terminal does not belong to a specified time period.

在第二方面的第五种可能的实现方式中,所述选取模块还用于:In a fifth possible implementation manner of the second aspect, the selection module is further configured to:

根据预设时间间隔周期性的执行根据所述终端指向的方向,在所述星空地图中选取待显示区域的步骤。The step of selecting an area to be displayed in the starry sky map according to the direction pointed by the terminal is periodically performed according to a preset time interval.

根据本公开实施例的第三方面,提供一种显示方向的装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for displaying directions, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:wherein the processor is configured to:

终端运行指南针应用程序确定所述终端的指向方向,并在显示页面显示所述终端的指向方向;The terminal runs the compass application to determine the pointing direction of the terminal, and displays the pointing direction of the terminal on the display page;

监测预设的触发事件是否被触发;Monitor whether the preset trigger event is triggered;

如果监测到所述预设的触发事件被触发,则获取当前时间终端所处位置对应的星空地图;If it is detected that the preset trigger event is triggered, the star map corresponding to the location of the terminal at the current time is obtained;

在所述星空地图中选取与所述终端的指向方向相对应的待显示区域;Select an area to be displayed corresponding to the pointing direction of the terminal in the starry sky map;

在所述显示页面中显示所述待显示区域。The to-be-displayed area is displayed on the display page.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。After determining the pointing direction of the terminal, when a preset trigger event is triggered, the starry sky map of the terminal's current location is obtained, as an auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position, and improve the performance of human beings. computer interactivity.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是本公开是根据一示例性实施例示出的显示方向的方法流程图;FIG. 1 is a flowchart of a method for displaying directions according to an exemplary embodiment of the present disclosure;

图2是本公开是根据一示例性实施例示出的显示方向的方法流程图;FIG. 2 is a flow chart of a method for displaying directions according to an exemplary embodiment of the present disclosure;

图3是本公开是根据一示例性实施例示出的显示方向的方法中终端屏幕显示星空地图的示意图;3 is a schematic diagram of a terminal screen displaying a starry sky map in a method for displaying directions according to an exemplary embodiment of the present disclosure;

图4是本公开是根据一示例性实施例示出的显示方向的方法中终端屏幕显示星空地图的另一示意图;FIG. 4 is another schematic diagram of a terminal screen displaying a starry sky map in a method for displaying directions according to an exemplary embodiment of the present disclosure;

图5是本公开是根据一示例性实施例示出的显示方向的装置框图;FIG. 5 is a block diagram of a device showing a display orientation according to an exemplary embodiment of the present disclosure;

图6是本公开是根据一示例性实施例示出的显示方向的装置框图。FIG. 6 is a block diagram of a device showing a display orientation according to an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开的目的、技术方案和优点更加清楚,下面将结合附图对本公开实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

实施例一Example 1

本公开实施例提供了一种显示方向的方法,本方法实施例应用于终端中,参见图1,方法流程包括:An embodiment of the present disclosure provides a method for displaying directions. The method embodiment is applied to a terminal. Referring to FIG. 1 , the method flow includes:

在步骤101中,终端运行指南针应用程序确定终端的指向方向,并在显示页面显示终端的指向方向;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 the display page;

在步骤102中,监测预设的触发事件是否被触发;In step 102, monitor whether a preset trigger event is triggered;

在步骤103中,如果监测到预设的触发事件被触发,则获取当前时间终端所处位置对应的星空地图;In step 103, if it is detected that the preset trigger event is triggered, the star map corresponding to the location of the terminal at the current time is obtained;

在步骤104中,在星空地图中选取与终端的指向方向相对应的待显示区域;In step 104, select the to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map;

在步骤105中,在显示页面中显示待显示区域。In step 105, the to-be-displayed area is displayed on the display page.

本公开实施例通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。In this embodiment of the present disclosure, after determining the pointing direction of the terminal, when a preset trigger event is triggered, a starry sky map of the current location of the terminal is acquired, as auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position , which improves the human-computer interaction.

实施例二Embodiment 2

本公开实施例提供了一种显示方向的方法,本方法实施例应用于终端中,参见图2,方法流程包括:An embodiment of the present disclosure provides a method for displaying directions. The method embodiment is applied to a terminal. Referring to FIG. 2 , the method flow includes:

在步骤201中,终端运行指南针应用程序确定终端的指向方向,并在显示页面显示终端的指向方向。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 the display page.

启动指南针应用程序后,指南针应用程序会进行确定方向的流程,此时在终端屏幕的显示页面中显示终端的指向方向。After the compass application is started, the compass application will perform the process of determining the direction, and at this time, the pointing direction of the terminal is displayed on the display page of the terminal screen.

在步骤202中,监测预设的触发事件是否被触发。In step 202, it is monitored whether a preset trigger event is triggered.

在本公开实施例中以指南针应用程序启动后执行该操作为例进行说明。相应的,在启动指南针应用后开始监测预设的触发事件是否被触发,并通过在指南针应用程序中实现在显示终端的指向方向的同时显示星空地图。In the embodiment of the present disclosure, the operation is performed after the compass application is started as an example for description. Correspondingly, after starting the compass application, it starts to monitor whether the preset trigger event is triggered, and displays the star map while displaying the pointing direction of the terminal in the compass application.

并在本公开实施例中,预设的触发事件可以通过以下方式被触发:And in this embodiment of the present disclosure, the preset trigger event can be triggered in the following ways:

当监测到终端在预设方向进行运动,且运动停止后终端的姿态满足预设条件时,则确定触发预设的触发事件。When it is detected that the terminal moves in a preset direction, and the posture of the terminal satisfies the preset condition after the movement stops, it is determined to trigger a preset trigger event.

其中,预设条件为屏幕旋转至屏幕面向地面的姿态,由于在实际使用过程中屏幕并不能准确的以水平姿态面朝地面,有可能是用户握持终端以一定角度面向用户的面部,此时终端的屏幕虽然朝向下但并未完全的处于水平,因此需要设置一定的阈值范围以满足上述预设条件,该过程需要通过终端中的三维坐标系中某一个坐标轴与水平面的夹角来设置触发的条件。Among them, the preset condition is that the screen is rotated to the posture of the screen facing the ground. Since the screen cannot accurately face the ground in a horizontal posture during actual use, it may be that the user holds the terminal and faces the user's face at a certain angle. Although the screen of the terminal is facing downward, it is not completely horizontal. Therefore, a certain threshold range needs to be set to meet the above preset conditions. This process needs to be set by the angle between a certain coordinate axis in the three-dimensional coordinate system in the terminal and the horizontal plane. trigger condition.

相应的,预设条件为终端在三维坐标系中的指定坐标轴与水平面之间的夹角在预设角度范围。Correspondingly, the preset condition is that the angle between the designated coordinate axis of the terminal in the three-dimensional coordinate system and the horizontal plane is within the preset angle range.

一般情况下,用户使用终端的方式为握持终端并将终端放置于与胸口平行的位置,此时终端中的传感器可以检测终端此时为静止状态。在用户启动指南针应用程序后,将终端举过头顶并将终端的屏幕旋转至屏幕面向地面的姿态,以触发在终端的屏幕显示终端的指向方向的显示页面中显示星空地图的触发事件。其中,用户通过对终端进行上述运动后,终端位于用户头顶的上方,此时用户需要抬头观看终端屏幕,这样的方式可以模拟用户抬头观测星空的过程。In general, a user uses the terminal by holding the terminal and placing the terminal in a position parallel to the chest. At this time, a sensor in the terminal can detect that the terminal is in a stationary state. After the user starts the compass application, he lifts the terminal above his head and rotates the screen of the terminal so that the screen faces the ground, so as to trigger a trigger event for displaying the starry sky map on the display page of the pointing direction of the terminal on the screen of the terminal. Wherein, after the user performs the above motion on the terminal, the terminal is located above the user's head, and the user needs to look up at the terminal screen at this time, which can simulate the process of the user looking up to observe the starry sky.

终端被用户进行上述运动时,终端中的传感器可以检测到以下内容:终端在指定方向上进行了运动,即检测到了终端的三维坐标系中指定坐标轴上发生了运动,该运动过程为由低处运动至高处。其中,在运动过程中终端的姿态为用户纵向握持终端时,指定坐标轴可以为z轴;在运动过程中终端的姿态为用户横向握持终端时,指定坐标轴可以为x轴。When the terminal is moved by the user, the sensor in the terminal can detect the following: the terminal moves in the specified direction, that is, it detects that the movement occurs on the specified coordinate axis in the three-dimensional coordinate system of the terminal, and the movement process is from low to low. Move to high places. Wherein, when the posture of the terminal during the movement is that the user holds the terminal vertically, the specified coordinate axis can be the z-axis; when the posture of the terminal during the movement is that the user holds the terminal horizontally, the specified coordinate axis can be the x-axis.

之后检测到终端停止了在指定方向上的运动并维持了静止状态;最后检测到终端的三维坐标系中经过上述运动过程中同一指定坐标轴上的运动停止,该终端处于静止状态。其中,在运动结束后终端的姿态为用户纵向握持终端时,指定坐标轴可以为z轴;在运动过程中终端的姿态为用户横向握持终端时,指定坐标轴可以为x轴。After that, it is detected that the terminal stops moving in the specified direction and maintains a static state; finally, it is detected that the movement on the same designated coordinate axis in the three-dimensional coordinate system of the terminal stops during the above motion process, and the terminal is in a static state. Wherein, when the posture of the terminal after the exercise is that the user holds the terminal vertically, the specified coordinate axis can be the z-axis; when the posture of the terminal during the exercise is that the user holds the terminal horizontally, the specified coordinate axis can be the x-axis.

最后检测到终端在三维坐标系中指定坐标轴与水平面的夹角在预设角度范围,即终端当前的姿态为终端屏幕面朝地面并且与水平面之间的夹角为预设角度范围。其中,运动结束后终端姿态为用户纵向握持终端时,指定坐标轴可以为y轴;在运动过程中终端的姿态为用户横向握持终端时,指定坐标轴可以为x轴。Finally, it is detected that the angle between the specified coordinate axis and the horizontal plane of the terminal in the three-dimensional coordinate system is within the preset angle range, that is, the current posture of the terminal is that the terminal screen faces the ground and the angle between the terminal and the horizontal plane is the preset angle range. The designated coordinate axis can be the y-axis when the terminal posture after the movement is that the user holds the terminal vertically; during the movement, when the terminal posture is the user holding the terminal horizontally, the designated coordinate axis can be the x-axis.

可选的,对于预设的触发事件触发方式,还可以为用户手动通过预设的操作进行触发,例如:通过预设的操作手势来触发;通过预设的按钮或图标被按下后触发。Optionally, for the preset trigger event triggering method, the user can also manually trigger through a preset operation, for example: triggering through a preset operation gesture; triggering through a preset button or icon being pressed.

在步骤203中,如果监测到预设的触发事件被触发,则获取当前时间终端所处位置对应的星空地图。In step 203, if it is detected that a preset trigger event is triggered, a starry sky map corresponding to the location of the terminal at the current time is acquired.

在本步骤中需要获取终端所处位置在当前时间可以观测到的星空地图,其中,该星空地图为弧形的图片。In this step, a starry sky map that can be observed at the current time at the location of the terminal needs to be obtained, wherein the starry sky map is an arc-shaped picture.

步骤203中的过程可以通过以下步骤进行实现:The process in step 203 can be implemented by the following steps:

在步骤2031中,获取当前的时间,以及获取终端所处的位置信息。In step 2031, the current time is obtained, and the location information of the terminal is obtained.

其中,位置信息一般为经纬度信息,可以通过调用定位模块进行获取。定位模块可以为GPS(Global Positioning System,全球定位系统)的方式进行定位,也可以为基站辅助GPS的方式进行定位,还可以为基站定位的方式进行定位。The location information is generally longitude and latitude information, which can be obtained by calling the positioning module. The positioning module may perform positioning in the manner of GPS (Global Positioning System, global positioning system), may also perform positioning in the manner of GPS-assisted base station, or may perform positioning in the manner of base station positioning.

在步骤2032中,在预设的时间、位置信息与星空地图的对应关系中,根据当前的时间和终端所处的位置信息获取当前时间终端所处位置对应的星空地图。In step 2032, in the preset corresponding relationship between the time, the location information and the starry sky map, the starry sky map corresponding to the location of the terminal at the current time is obtained according to the current time and the location information of the terminal.

其中,预设的时间,位置信息与星空地图的对应关系可以在终端中预先存储;另外,由于预设的时间,位置信息与星空地图的对应关系中的数据量较为庞大,因此可以由服务器进行存储,并在终端获取到当前的时间以及位置信息后,将这两个参数发送给服务器,以使服务器根据这两个参数进行查询,并将查询到的星空地图返回给终端。Among them, the preset time, the corresponding relationship between the location information and the starry sky map can be pre-stored in the terminal; in addition, due to the preset time, the corresponding relationship between the location information and the starry sky map has a relatively large amount of data, so it can be performed by the server. After the terminal obtains the current time and location information, it sends these two parameters to the server, so that the server can query according to these two parameters and return the queried star map to the terminal.

在步骤204中,在星空地图中选取与终端的指向方向相对应的待显示区域。In step 204, a to-be-displayed area corresponding to the pointing direction of the terminal is selected in the starry sky map.

其中,在星空地图中预先已经划分了各个方向对应的区域,以便终端确定了终端的指向方向后,在终端的屏幕中显示终端的指向方向对应在星空地图中的区域。其中,由于此时终端的姿态并不进行限定,可以是被用户横向握持也可以是纵向握持,相应的终端的指向方向可以属于终端中四个方向中的任何一个方向,再此并不进行限定。在本公开实施例中,终端的指向方向由指南针应用获取到。The area corresponding to each direction is pre-divided in the starry sky map, so that after the terminal determines the pointing direction of the terminal, the screen of the terminal displays the area in the starry sky map corresponding to the pointing direction of the terminal. Among them, since the posture of the terminal is not limited at this time, it can be held horizontally or vertically by the user, and the corresponding pointing direction of the terminal can belong to any one of the four directions in the terminal. be limited. In this embodiment of the present disclosure, the pointing direction of the terminal is acquired by a compass application.

步骤204可以通过以下方式进行实现:Step 204 can be implemented in the following ways:

在星空地图中预设的各方向对应的区域中,选取与终端的指向方向相同的区域作为与终端的指向方向对应的待显示区域。Among the regions corresponding to the preset directions in the starry sky map, the same region as the pointing direction of the terminal is selected as the to-be-displayed region corresponding to the pointing direction of the terminal.

可选的,用户手持终端并抬头观看终端屏幕显示的星空地图时,还可以进行方向的转换,此时终端会检测到终端的指向方向发生变换,相应的终端屏幕中显示的星空地图也会跟随终端的指向方向的变化而更新。因此,步骤203还可以通过以下方式进行实现:Optionally, when the user holds the terminal and looks up at the starry sky map displayed on the screen of the terminal, the direction can also be converted. At this time, the terminal will detect that the pointing direction of the terminal has changed, and the corresponding starry sky map displayed on the screen of the terminal will also follow. Updates when the pointing direction of the terminal changes. Therefore, step 203 can also be implemented in the following ways:

根据预设时间间隔周期性的执行根据终端指向的方向,在星空地图中选取待显示区域的步骤。The step of selecting the area to be displayed in the starry sky map according to the direction pointed by the terminal is periodically performed according to the preset time interval.

其中,预设时间间隔可以根据需要进行设定,如果设定的时间间隔周期很短,并且Among them, the preset time interval can be set as needed, if the set time interval period is very short, and

如图3所示,该图中示出了终端屏幕中显示星空地图的示意图,为用户面向东时终端屏幕中显示的星空地图;如图4所示,该图中示出了终端屏幕中显示星空地图的另一示意图,在用户转向至面向东北时终端屏幕中显示的星空地图,此时,终端屏幕中显示的星空地图会重新选取星空地图中东北方向对应的待显示区域进行显示。As shown in Figure 3, the figure shows a schematic diagram of the starry sky map displayed on the terminal screen, which is the starry sky map displayed on the terminal screen when the user faces east; as shown in Figure 4, the figure shows the display on the terminal screen Another schematic diagram of the starry sky map, when the user turns to the starry sky map displayed on the terminal screen facing northeast, at this time, the starry sky map displayed on the terminal screen will re-select the to-be-displayed area corresponding to the northeast direction in the starry sky map for display.

进一步的,星空地图中预先已经划分了各个方向对应的区域可以为八个方向:东、南、西、北、东南、东北、西南、西北,每一个方向在星空地图中对应一个区域;还可以在星空地图中心为原点,每一个角度都对应一个方向即360个方向,因此在指南针应用中获取到方向角,直接用该方向角在星空地图中确定对应的方向,进而获取到星空地图中该方向对应的区域,而无需通过方向角进一步确定终端所指向方向后再选取星空地图中对应的待显示区域。Further, the regions corresponding to each direction have been divided in advance in the starry sky map, which can be eight directions: east, south, west, north, southeast, northeast, southwest, and northwest, each direction corresponds to an area in the starry sky map; The center of the star map is the origin, and each angle corresponds to one direction, that is, 360 directions. Therefore, the direction angle is obtained in the compass application, and the direction angle is directly used to determine the corresponding direction in the star map, and then the corresponding direction in the star map is obtained. The area corresponding to the direction does not need to be further determined by the direction angle, and then select the corresponding area to be displayed in the starry sky map.

其中,不同区域中显示的内容可以包括有重合的部分,以便于用户在旋转终端或转身时更加精确的使得屏幕中显示的星空地图连贯的发生变换。Wherein, the content displayed in different areas may include overlapping parts, so that the user can more accurately change the starry sky map displayed on the screen in a coherent manner when rotating the terminal or turning around.

在步骤205中,在显示页面中显示待显示区域。In step 205, the area to be displayed is displayed on the display page.

其中,步骤205可以通过以下步骤2051-步骤2053进行实现:Wherein, step 205 can be implemented through the following steps 2051-2053:

在步骤2051中,判断终端所处位置当前时间是否为指定时段。In step 2051, it is determined whether the current time at the location of the terminal is a specified time period.

其中,指定时段可以为6:00-18:00,即终端所处位置的白天阶段。Wherein, the specified time period may be 6:00-18:00, that is, the daytime period in which the terminal is located.

在步骤2052中,如果终端所处位置当前时间属于指定时段,则在显示页面中显示待显示区域以及终端所处位置对应的天气和空气信息;In step 2052, if the current time at the location of the terminal belongs to the specified time period, the area to be displayed and the weather and air information corresponding to the location of the terminal are displayed on the display page;

在终端所处位置的白天阶段,可以在指南针应用程序显示星空地图的同时,显示终端所处位置的天气和空气信息,例如:天气预报,空气质量等。During the day when the terminal is located, the compass application can display the sky map, and at the same time display the weather and air information of the terminal's location, such as weather forecast, air quality, etc.

在步骤2053中,如果终端所处位置当前时间未属于指定时段,则在显示页面中显示待显示区域。In step 2053, if the current time at the location of the terminal does not belong to the specified time period, the area to be displayed is displayed on the display page.

本公开实施例通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。In this embodiment of the present disclosure, after determining the pointing direction of the terminal, when a preset trigger event is triggered, a starry sky map of the current location of the terminal is acquired, as auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position , which improves the human-computer interaction.

实施例三Embodiment 3

本公开实施例提供了一种显示方向的装置,参见图5,该装置包括:An embodiment of the present disclosure provides an apparatus for displaying directions. Referring to FIG. 5 , the apparatus includes:

确定模块501,用于终端运行指南针应用程序确定终端的指向方向;A determination module 501, used for the terminal to run a compass application to determine the pointing direction of the terminal;

第一显示模块502,用于在显示页面显示终端的指向方向;The first display module 502 is used for displaying the pointing direction of the terminal on the display page;

监测模块503,用于监测预设的触发事件是否被触发;a monitoring module 503 for monitoring whether a preset trigger event is triggered;

获取模块504,用于在监测到预设的触发事件被触发时,获取当前时间终端所处位置对应的星空地图;The acquiring module 504 is configured to acquire a starry sky map corresponding to the location of the terminal at the current time when a preset trigger event is detected to be triggered;

选取模块505,用于在星空地图中选取与终端的指向方向相对应的待显示区域;The selection module 505 is used to select the to-be-displayed area corresponding to the pointing direction of the terminal in the starry sky map;

第二显示模块506,用于在显示页面中显示待显示区域。The second display module 506 is configured to display the area to be displayed on the display page.

其中,监测模块503用于:Wherein, the monitoring module 503 is used for:

当监测到终端在预设方向进行运动,且运动停止后终端的姿态满足预设条件时,则确定触发预设的触发事件;When it is detected that the terminal moves in the preset direction, and the posture of the terminal meets the preset condition after the movement stops, it is determined to trigger the preset trigger event;

其中,预设条件为终端在三维坐标系中的指定坐标轴与水平面之间的夹角在预设角度范围。The preset condition is that the angle between the designated coordinate axis of the terminal in the three-dimensional coordinate system and the horizontal plane is within the preset angle range.

其中,获取模块504,包括:Wherein, the obtaining module 504 includes:

第一获取子模块,用于获取当前的时间,以及获取终端所处的位置信息;The first acquisition sub-module is used to acquire the current time and the location information of the terminal;

第二获取子模块,用于在预设的时间,位置信息与星空地图的对应关系中,根据当前的时间和终端所处的位置信息获取当前时间终端所处位置对应的星空地图。The second obtaining submodule is used for obtaining the starry 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 preset time, the corresponding relationship between the position information and the starry sky map.

其中,选取模块505用于:Wherein, the selection module 505 is used for:

在星空地图中预设的各方向对应的区域中,选取与终端的指向方向相同的区域作为与终端的指向方向对应的待显示区域。Among the regions corresponding to the preset directions in the starry sky map, the same region as the pointing direction of the terminal is selected as the to-be-displayed region corresponding to the pointing direction of the terminal.

其中,第二显示模块506,包括:Wherein, the second display module 506 includes:

判断子模块,用于判断终端所处位置当前时间是否为指定时段;A judging submodule for judging whether the current time at the location of the terminal is a specified time period;

第一显示子模块,用于在终端所处位置当前时间属于指定时段时,在显示页面中显示待显示区域以及终端所处位置对应的天气和空气信息;a first display submodule, configured to display the area to be displayed and the weather and air information corresponding to the location of the terminal on the display page when the current time at the location of the terminal belongs to a specified time period;

第二显示子模块,用于在终端所处位置当前时间未属于指定时段时,在显示页面中显示待显示区域。The second display sub-module is configured to display the area to be displayed on the display page when the current time at the location of the terminal does not belong to the specified time period.

其中,选取模块505还用于:Wherein, the selection module 505 is also used for:

根据预设时间间隔周期性的执行根据终端指向的方向,在星空地图中选取待显示区域的步骤。The step of selecting the area to be displayed in the starry sky map according to the direction pointed by the terminal is periodically performed according to the preset time interval.

本公开实施例通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。In this embodiment of the present disclosure, after determining the pointing direction of the terminal, when a preset trigger event is triggered, a starry sky map of the current location of the terminal is acquired, as auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position , which improves the human-computer interaction.

实施例四Embodiment 4

图6是根据一示例性实施例示出的一种用于显示方向的装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of an apparatus 600 for displaying directions according to an exemplary embodiment. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.

参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电力组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。6, the 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 input/output (I/O) interface 612, a sensor component 614, and communication component 616 .

处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone 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 some of the steps of the methods described above. Additionally, processing component 602 may include one or more modules that facilitate interaction between processing component 602 and other components. For example, processing component 602 may include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.

存储器604被配置为存储各种类型的数据以支持在设备600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 604 is configured to store various types of data to support operation at 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 the like. Memory 604 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, 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 Disk.

电力组件606为装置600的各种组件提供电力。电力组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。Power component 606 provides power to 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 to device 600 .

多媒体组件608包括在装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 608 includes screens that provide an output interface between 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 input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. A touch sensor can sense not only the boundaries of a touch or swipe action, but also the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 608 includes a front-facing camera and/or a rear-facing camera. When the device 600 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。Audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when device 600 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 604 or transmitted via communication component 616 . In some embodiments, audio component 610 also includes a speaker for outputting audio signals.

I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.

传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of device 600 . For example, the sensor assembly 614 can detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 can also detect a change in the position of the device 600 or a component of the device 600, the user The presence or absence of contact with the device 600, the orientation or acceleration/deceleration of the device 600 and the temperature change of the device 600. Sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. 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.

通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WI-FI,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件616还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 616 is configured to facilitate wired or wireless communication between apparatus 600 and other devices. The device 600 may access a wireless network based on a communication standard, such as WI-FI, 2G or 3G, or a combination thereof. In one 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 also includes a near field communication (NFC) module to facilitate short-range communication. 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.

在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, 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 A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 604 including instructions, executable by the processor 620 of the apparatus 600 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本公开实施例通过确定终端的指向方向以后,在预设的触发事件被触发时获取终端此时所处位置的星空地图,作为显示终端的指向方向的辅助显示内容,以辅助用户观察方向和位置,提高了人机交互性。In this embodiment of the present disclosure, after determining the pointing direction of the terminal, when a preset trigger event is triggered, a starry sky map of the current location of the terminal is acquired, as auxiliary display content for displaying the pointing direction of the terminal, so as to assist the user to observe the direction and position , which improves the human-computer interaction.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon 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 that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present 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 Expired - Fee Related 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 Expired - Fee Related 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广东移动通信有限公司 A compass display method, 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 苏州信达光电科技有限公司 Handheld 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
EP3264256B1 (en) * 2010-06-28 2019-09-25 Brainlab AG 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 苏州信达光电科技有限公司 Handheld 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
US11315336B2 (en) Method and device for editing virtual scene, and non-transitory computer-readable storage medium
KR101657234B1 (en) Method, device, program and storage medium for displaying picture
EP3182716A1 (en) Method and device for video display
US10292004B2 (en) Method, device and medium for acquiring location information
CN105450736B (en) Method and device for connecting with virtual reality
US10331231B2 (en) Mobile terminal and method for determining scrolling speed
EP3016048B1 (en) Method and device for displaying a reminder based on geographic criteria
CN107202574B (en) Motion trail information correction method and device
CN111368114B (en) Information display method, device, equipment and storage medium
EP3173925B1 (en) Interface display method and apparatus, computer program and recording medium
CN106791064A (en) Method of locating terminal and device
US20220391446A1 (en) Method and device for data sharing
EP2950242A1 (en) Method and apparatus for determining position
CN106502522A (en) The method of controlling operation thereof and device of mobile terminal
CN112187995A (en) Illumination compensation method, illumination compensation device, and storage medium
CN105446573B (en) Method and device for displaying direction
US9619016B2 (en) Method and device for displaying wallpaper image on screen
CN107124517B (en) A kind of method and device of information alert
CN106547355A (en) A kind of display packing and device of entering method keyboard
CN115950415A (en) Method and device for determining navigation direction and storage medium
EP2950183B1 (en) Method and apparatus for measuring direction and terminal
CN105791582B (en) Terminal starting method and device
CN113687902B (en) Resource display method, device, computer equipment and storage medium
CN113132531B (en) Photo display method, device and storage medium
CN110633335B (en) Method, terminal and readable storage medium for acquiring POI data

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201030

CF01 Termination of patent right due to non-payment of annual fee