Movatterモバイル変換


[0]ホーム

URL:


CN114136308B - Navigation method, electronic device and storage medium - Google Patents

Navigation method, electronic device and storage medium
Download PDF

Info

Publication number
CN114136308B
CN114136308BCN202210097693.5ACN202210097693ACN114136308BCN 114136308 BCN114136308 BCN 114136308BCN 202210097693 ACN202210097693 ACN 202210097693ACN 114136308 BCN114136308 BCN 114136308B
Authority
CN
China
Prior art keywords
location
user
vibration
prompted
navigation
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
CN202210097693.5A
Other languages
Chinese (zh)
Other versions
CN114136308A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co LtdfiledCriticalHonor Device Co Ltd
Priority to CN202210097693.5ApriorityCriticalpatent/CN114136308B/en
Publication of CN114136308ApublicationCriticalpatent/CN114136308A/en
Application grantedgrantedCritical
Publication of CN114136308BpublicationCriticalpatent/CN114136308B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The present application relates to the field of navigation technologies, and in particular, to a navigation method, an electronic device, and a storage medium. The method comprises the following steps: receiving a first operation of a user, determining a first navigation track, receiving a second operation of the user, and determining the type of a place to be prompted; determining the position information of the place to be prompted according to the type of the place to be prompted and the first navigation track, wherein the position information of the place to be prompted comprises the position information of at least one first place; acquiring second position information used for representing the current position of the electronic equipment; and if the distance between the second position information and the position represented by the position information of the at least one first place is smaller than or equal to a first threshold value, prompting the user that the at least one first place is located nearby. According to the method and the device, in the process of navigating the user by the electronic equipment such as the mobile phone, the user can find the to-be-prompted place needing to be reminded nearby without frequently watching the mobile phone, and the safety of the user in the navigation process is improved.

Description

Translated fromChinese
导航方法、电子设备及存储介质Navigation method, electronic device and storage medium

技术领域technical field

本发明涉及导航技术领域,具体涉及一种导航方法、电子设备及存储介质。The present invention relates to the technical field of navigation, in particular to a navigation method, an electronic device and a storage medium.

背景技术Background technique

随着导航技术以及智能终端技术的发展,通过手机上安装的地图应用搜索目的地、生成导航轨迹并进行导航,已经成为人们比较依赖的方式。参考图1所示的场景10,用户按照地图规划的路径前往目的地,例如是医院,该地图应用可以规划出用户所在位置到目的地的导航轨迹101,用户仅需要按照该导航轨迹101引导的方向行进,即可到达目的地。With the development of navigation technology and intelligent terminal technology, it has become a way that people rely on to search for destinations, generate navigation tracks and navigate through map applications installed on mobile phones. Referring to the scenario 10 shown in FIG. 1 , the user goes to the destination, such as a hospital, according to the path planned by the map. The map application can plan thenavigation track 101 from the user's location to the destination, and the user only needs to follow thenavigation track 101 to guide. Proceed in the direction to reach the destination.

通常,手机100等电子设备上安装的地图应用还具有语音播报功能来辅助导航,可以语音提醒用户在哪个路口转弯、以及距离转弯路口或者目的地的距离等。但是,如果用户在沿着导航轨迹行进的过程中,想要查看周围是否有公共厕所(Water Closet,WC)、商场等类型的待提示地点时,则需要不停地查看手机100屏幕所显示的地图上是否有公共厕所、商场等类型的待提示地点的建筑标记。如此,则会增加用户的行进风险,如果用户行进途中路口较多,人流量也大,则用户频繁的低头看手机会大大增加安全隐患。而且,当用户需要穿越一些路况复杂的地段时,传统的地图界面或语音导航信息量比较多,也容易分散用户的视觉、听觉等方面的注意力,导致用户无法对周围环境做出快速反应。Usually, a map application installed on an electronic device such as themobile phone 100 also has a voice broadcast function to assist navigation, and can voice remind the user at which intersection to turn and the distance to the turning intersection or destination. However, if the user wants to check whether there are public toilets (WC), shopping malls and other types of places to be prompted during the process of traveling along the navigation track, he needs to keep checking the information displayed on the screen of themobile phone 100. Whether there are building markers for places to be prompted, such as public toilets, shopping malls, etc. on the map. In this way, the user's travel risk will be increased. If the user travels at many intersections and the flow of people is also large, the user frequently looks down at the mobile phone, which will greatly increase security risks. Moreover, when the user needs to pass through some areas with complex road conditions, the traditional map interface or voice navigation has a large amount of information, and it is easy to distract the user's attention in terms of vision, hearing, etc., resulting in the user's inability to respond quickly to the surrounding environment.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种导航方法、电子设备及存储介质,能够在通过电子设备进行导航的过程中,对用户设置的需要提醒的一类地点进行识别,并能够在识别到用户所在位置附近存在该类地点时,可以通过例如振动等方式向用户提醒附近有这类地点,如此,用户可以在导航过程中将需要提醒或注意的一类地点交由电子设备进行识别并提醒,无需用户频繁看手机来查看附近有没有诸如公共厕所、商场等类型的待提示地点,有利于提高用户利用手机导航行进过程中的安全性,利于提高用户体验。The embodiments of the present application provide a navigation method, an electronic device, and a storage medium, which can identify a class of places set by a user that need to be reminded during the process of navigating through the electronic device, and can identify a location near the user's location. When there is such a place, the user can be reminded that there is such a place nearby by means of vibration, for example, so that the user can hand over the kind of place that needs to be reminded or paid attention to during the navigation process to be identified and reminded by the electronic device, without the need for the user to frequently Looking at the mobile phone to check whether there are nearby places to be reminded, such as public toilets, shopping malls, etc., is conducive to improving the safety of the user during the navigation process of using the mobile phone, and is conducive to improving the user experience.

第一方面,本申请实施例提供了一种导航方法,该方法包括:接收用户的第一操作,确定第一导航轨迹,并且接收用户的第二操作,确定待提示地点的类型;根据待提示地点的类型和第一导航轨迹,确定待提示地点的位置信息,其中,待提示地点的位置信息包括至少一个第一地点的位置信息,第一地点属于待提示地点的类型;获取第二位置信息,第二位置信息用于表示电子设备的当前位置;若第二位置信息与至少一个第一地点的位置信息所表示的位置的距离小于或等于第一阈值,则向用户提示至少一个第一地点位于附近。In a first aspect, an embodiment of the present application provides a navigation method, the method includes: receiving a user's first operation, determining a first navigation track, and receiving a user's second operation, determining the type of the location to be prompted; the type of the location and the first navigation track, and determine the location information of the location to be prompted, wherein the location information of the location to be prompted includes the location information of at least one first location, and the first location belongs to the type of the location to be prompted; obtain the second location information , the second location information is used to represent the current location of the electronic device; if the distance between the second location information and the location represented by the location information of at least one first location is less than or equal to the first threshold, the user will be prompted at least one first location Located nearby.

即电子设备可以在为用户导航的过程中,识别当前位置一定距离范围内的属于用于预设的待提示地点的类型的一个或多个第一地点,该一定距离范围例如可以设定为上述第一阈值。上述用户的第一操作,例如可以是下文实施例中描述的用户操作手机打开地图应用、设置目的地及导航模式进行导航的操作,第一导航轨迹例如是下文实施例中描述的手机基于用户设置的目的地以及导航模式等规划并显示的导航轨迹,该导航模式例如可以是步行导航模式或骑行导航模式等。上述用户的第二操作,例如可以是下文实施例中描述的用户在手机所显示的地图界面上通过待提示地点输入框输入需要提醒的待提示地点的类型的操作。可以理解,上述用户的第一操作可以在用户的第二操作之前进行,也可以在用户的第二操作之后执行,或者与用户的第二操作同时执行,在此不做限制。That is, in the process of navigating for the user, the electronic device can identify one or more first locations within a certain distance from the current position that belong to the type used for the preset location to be prompted. For example, the certain distance can be set to the above-mentioned first threshold. The first operation of the above-mentioned user, for example, can be the operation of the user operating the mobile phone to open the map application, setting the destination and the navigation mode described in the following embodiments, and the first navigation track is, for example, the mobile phone described in the following embodiments. The destination and the navigation track planned and displayed in the navigation mode, for example, the navigation mode can be a walking navigation mode or a cycling navigation mode. The above-mentioned second operation of the user may be, for example, an operation of the user inputting the type of the location to be prompted that needs to be reminded through the input box of the location to be prompted on the map interface displayed on the mobile phone as described in the following embodiments. It can be understood that the above-mentioned first operation of the user may be performed before the second operation of the user, or may be performed after the second operation of the user, or performed simultaneously with the second operation of the user, which is not limited herein.

上述待提示地点的类型,例如可以是下文实施例中描述的公共厕所、商场、银行网点等地点类型,在此不做限制。上述第一阈值,例如可以是下文实施例中步骤405中示例的预设距离范围,例如500米等。上述第一地点例如可以是步骤405中示例的手机当前位置方圆500米范围内的属于用户预设的待提示地点类型的地点,具体可以参考下文实施例中详细描述,在此不做赘述。The type of the above-mentioned location to be prompted may be, for example, the types of locations such as public toilets, shopping malls, and bank outlets described in the following embodiments, which are not limited here. The above-mentioned first threshold may be, for example, a preset distance range exemplified instep 405 in the following embodiments, for example, 500 meters. The above-mentioned first location may be, for example, a location within a radius of 500 meters from the current location of the mobile phone instep 405, which belongs to the type of location to be prompted preset by the user.

在上述第一方面的一种可能的实现中,根据待提示地点的类型和第一导航轨迹,确定待提示地点的位置信息,包括:确定位于第一导航轨迹上的多个预设采集点;根据预设采集点的位置信息,从导航地图中选出待提示地点的位置信息,其中,待提示地点属于待提示地点的类型,并且待提示地点与至少一个预设采集点之间的距离小于或等于第二阈值,其中第二阈值大于或等于第一阈值。In a possible implementation of the above-mentioned first aspect, determining the location information of the location to be prompted according to the type of the location to be prompted and the first navigation track includes: determining a plurality of preset collection points located on the first navigation track; According to the location information of the preset collection point, the location information of the location to be prompted is selected from the navigation map, wherein the location to be prompted belongs to the type of the location to be prompted, and the distance between the location to be prompted and at least one preset collection point is less than or equal to the second threshold, wherein the second threshold is greater than or equal to the first threshold.

即根据用户输入的待提示地点的类型,可以确定位于第一导航轨迹附近的各个待提示地点的位置信息,具体为:可以在第一导航轨迹上确定多个预设采集点,以预设采集点为中心采集附近一定距离范围内的属于待提示地点的类型的地点,即待提示地点,该一定距离范围例如可以设定为上述第二阈值。上述第二阈值例如可以是下文实施例中图12所示步骤1206中描述的对应于预设采集点设定的距离范围,例如1000米等。上述导航地图即手机所运行的地图应用的界面上显示的地图,也可以理解为显示上述第一导航轨迹的地图,具体可以参考下文实施例中的相关描述。That is, according to the type of the place to be prompted input by the user, the position information of each place to be prompted near the first navigation track can be determined. Specifically, a plurality of preset collection points can be determined on the first navigation track, and the preset collection The point is the center to collect the points belonging to the type of the point to be prompted within a certain distance range nearby, that is, the point to be prompted, and the certain distance range can be set as the above-mentioned second threshold, for example. The above-mentioned second threshold may be, for example, the distance range set corresponding to the preset collection point described in step 1206 shown in FIG. 12 in the following embodiments, for example, 1000 meters. The above-mentioned navigation map is a map displayed on the interface of the map application running on the mobile phone, and can also be understood as a map displaying the above-mentioned first navigation track. For details, please refer to the relevant description in the following embodiments.

上述第二阈值大于或等于上述第一阈值,可以确保用户持手机行进在第一导航轨迹引导的路线上时,手机在导航过程中识别第一地点时仅受到第一阈值对应的距离约束,识别范围能够在满足第一阈值的情况下足够大,识别到第一地点的概率也会较高,利于本申请实施例所提供的导航方法的实施。可以理解,如果第二阈值小于第一阈值,则手机可能会识别不到位于第一阈值对应的距离范围内的第一地点。The above-mentioned second threshold is greater than or equal to the above-mentioned first threshold, which can ensure that when the user holds the mobile phone and travels on the route guided by the first navigation track, the mobile phone is only constrained by the distance corresponding to the first threshold when identifying the first location during the navigation process. The range can be sufficiently large under the condition that the first threshold is satisfied, and the probability of identifying the first location is also high, which is beneficial to the implementation of the navigation method provided by the embodiment of the present application. It can be understood that if the second threshold is smaller than the first threshold, the mobile phone may fail to identify the first location within the distance range corresponding to the first threshold.

在上述第一方面的一种可能的实现中,待提示地点的位置信息包括多个第一地点的位置信息,并且第二位置信息与多个第一地点的位置信息所表示的位置的距离小于或等于第一阈值;并且若第二位置信息与至少一个第一地点的位置信息所表示的位置的距离小于或等于第一阈值,则向用户提示至少一个第一地点位于附近,包括:根据预设选择策略,从多个第一地点中选择出第一类第一地点以第一方式进行提示,选择出第二类第一地点以第二方式进行提示。In a possible implementation of the above-mentioned first aspect, the location information of the location to be prompted includes location information of multiple first locations, and the distance between the second location information and the location indicated by the location information of the multiple first locations is less than or equal to the first threshold; and if the distance between the second location information and the location represented by the location information of at least one first location is less than or equal to the first threshold, prompting the user that at least one first location is nearby, including: Assuming a selection strategy, a first type of first location is selected from a plurality of first locations for prompting in a first manner, and a second type of first location is selected for prompting in a second manner.

在上述第一方面的一种可能的实现中,第一方式包括振动或语音提示中的一种,第二方式包括将第二类第一地点的位置显示在导航界面上。In a possible implementation of the above-mentioned first aspect, the first manner includes one of vibration or a voice prompt, and the second manner includes displaying the location of the first location of the second type on the navigation interface.

即当电子设备识别到当前位置的预设距离范围内存在多个属于待提示地点的类型的第一地点时,可以从所识别到的多个第一地点中选择出一个第一地点(即第一类第一地点)通过语音或振动提示用户,所识别到的其他的第一地点则可以通过界面显示给用户看。上述第一类第一地点例如可以是下文实施例的步骤405中,从识别到的多个待提示地点中筛选出来的、以预设的振动模式向用户提醒的待提示地点,第二类第一地点则可以是其他仅在导航地图上显示而不进行振动或语音提醒的待提示地点,具体可以参考下文相关描述,在此不做赘述。That is, when the electronic device recognizes that there are multiple first locations belonging to the type of the location to be prompted within the preset distance range from the current location, one first location (that is, the first location) can be selected from the identified multiple first locations. A type of first location) prompts the user through voice or vibration, and other identified first locations can be displayed to the user through the interface. The first location of the first type may be, for example, instep 405 of the following embodiment, the location to be prompted selected from the identified multiple locations to be prompted and reminded to the user in a preset vibration mode, the location to be prompted of the second type A place may be another place to be prompted that is only displayed on the navigation map without vibrating or voice prompting. For details, please refer to the related description below, which will not be repeated here.

如此,电子设备可以对识别到的多个属于用于预设的待提示地点类型的地点,经筛选后再向用户提醒,这一提醒的过程实际上也是为用户选择较优的待提示地点的过程,省去了用户自己从多个附近的待提示地点中进行选择的过程,利于提高用户体验。In this way, the electronic device can remind the user of a plurality of identified locations belonging to the preset type of locations to be prompted after screening, and this reminding process actually selects a better place to be prompted for the user. The process saves the user's own selection process from multiple nearby places to be prompted, which is beneficial to improve user experience.

在上述第一方面的一种可能的实现中,预设选择策略包括:确定第二位置信息与多个第一地点的位置信息所表示的位置的距离中的最小值,并将距离的最小值对应的第一地点确定为向用户提示的第一类第一地点;或者,获取用户对各第一地点的历史评分数据,并将历史评分数据中的评分最高值对应的第一地点确定为向用户提示的第一类第一地点,其中历史评分数据用于描述用户对各个第一地点的推荐程度。In a possible implementation of the above-mentioned first aspect, the preset selection strategy includes: determining the minimum value among the distances between the second position information and the positions indicated by the position information of the plurality of first locations, and assigning the minimum value of the distance The corresponding first location is determined to be the first location of the first category that is prompted to the user; or, the user's historical rating data for each first location is obtained, and the first location corresponding to the highest rating value in the historical rating data is determined as the first location to the user. The first type of first place prompted by the user, wherein the historical rating data is used to describe the user's recommendation degree for each first place.

即电子设备可以从识别到的多个待提示地点(即上述第一地点)中,选择距离用户较近的待提示地点向用户提示,也可以选择评价较高的待提示地点向用户提示,例如电子设备可以从识别到的多个公共厕所中选择较近的一个向用户提示,或者用户可以从识别到的多个商场中选择用户评分较高的商场向用户提示。如此,利于用户快速、准确的确定能够满足其需求的待提示地点,利于提高用户体验。That is, the electronic device may select a location to be prompted that is closer to the user from among the identified multiple locations to be prompted (ie, the first location above) to prompt the user, or may select a location to be prompted with a higher evaluation to prompt the user, for example The electronic device may select a closer one from the identified multiple public toilets to prompt the user, or the user may select a mall with a higher user rating from the multiple identified malls to prompt the user. In this way, it is helpful for the user to quickly and accurately determine the location to be prompted that can meet the needs of the user, and it is beneficial to improve the user experience.

在上述第一方面的一种可能的实现中,向用户提示第一地点位于附近,包括:以振动的方式,向用户提示第一地点位于附近。In a possible implementation of the above-mentioned first aspect, prompting the user that the first place is nearby includes: prompting the user that the first place is nearby by means of vibration.

在上述第一方面的一种可能的实现中,用户的第二操作包括:输入待提示地点的类型和对应不同的待提示地点的类型的不同振动模式,其中,振动模式的不同包括:振动频率、振动时长、以及振动幅度中的至少一项的不同。In a possible implementation of the above-mentioned first aspect, the second operation of the user includes: inputting the type of the place to be prompted and different vibration modes corresponding to different types of the place to be prompted, wherein the difference in the vibration modes includes: a vibration frequency , vibration duration, and at least one of vibration amplitude.

即用户可以操作手机等电子设备设置多种待提示地点类型,相应地用户可以操作手机等电子设备为不同类型的待提示地点设置不同的振动模式,该振动模式例如可以是下文实施例的步骤406中图9所示例的“模式1”等,在此不做限制。对应于不同类型的待提示地点设置不同的振动模式,具体可以参考下文相关描述,在此不做赘述。That is, the user can operate an electronic device such as a mobile phone to set a variety of types of locations to be prompted. Accordingly, the user can operate an electronic device such as a mobile phone to set different vibration modes for different types of locations to be prompted. The vibration mode can be, for example,step 406 in the following embodiment. "Mode 1" and the like illustrated in FIG. 9 are not limited here. Different vibration modes are set corresponding to different types of places to be prompted. For details, please refer to the relevant description below, which will not be repeated here.

在上述第一方面的一种可能的实现中,上述方法还包括:在第一预设时间内检测到用户修改导航目的地为第一地点的第三操作;响应于用户的第三操作,将导航目的地由第二地点切换为第一地点,其中第二地点为第一导航轨迹的导航目的地。In a possible implementation of the above-mentioned first aspect, the above-mentioned method further includes: detecting a third operation of the user modifying the navigation destination to be the first place within the first preset time; The navigation destination is switched from the second location to the first location, where the second location is the navigation destination of the first navigation track.

在上述第一方面的一种可能的实现中,上述方法还包括:检测到电子设备已到达第一地点,将导航目的地从第一地点改回第二地点。In a possible implementation of the above-mentioned first aspect, the above-mentioned method further includes: detecting that the electronic device has reached the first location, and changing the navigation destination from the first location to the second location.

手机等电子设备识别到预设距离范围内存在属于用户预设的待提示地点的类型的待提示地点(即第一地点)并向用户提示该待提示地点后,用户可以对手机等电子设备执行预设的目的地切换操作(即上述第三操作)来切换目的地。即将所识别到的待提示地点(即第一地点)作为临时目的地先进行导航,待确定已到达该待提示地点后,可以再将导航目的地切回初始设置的目的地(即第二地点)。上述第三操作,例如可以是下文实施例的步骤407或步骤1221中示例的摇晃手机的操作等,具体可以参考下文中相关描述,在此不做赘述。After an electronic device such as a mobile phone recognizes that there is a location to be prompted (ie, the first location) belonging to the type of the location to be prompted preset by the user within the preset distance range and prompts the user of the location to be prompted, the user can execute the operation on the electronic device such as the mobile phone. A preset destination switching operation (ie, the above-mentioned third operation) is used to switch the destination. The identified location to be prompted (that is, the first location) is used as a temporary destination for navigation first, and after it is determined that the location to be prompted has been reached, the navigation destination can be switched back to the initially set destination (that is, the second location). ). The above-mentioned third operation may be, for example, the operation of shaking the mobile phone as exemplified instep 407 or step 1221 of the following embodiments. For details, reference may be made to the relevant description below, which will not be repeated here.

在上述第一方面的一种可能的实现中,电子设备包括应用程序层、应用程序框架层以及硬件抽象层,其中应用程序层包括第一应用,应用程序框架层包括位置服务模块和振动服务模块;上述方法包括:第一应用运行时响应于用户的第一操作,确定第一导航轨迹,并且响应于用户的第二操作,确定待提示地点的类型;第一应用根据待提示地点的类型和第一导航轨迹,确定待提示地点的位置信息;第一应用向位置服务模块请求第二位置信息;第一应用基于位置服务模块返回的第二位置信息和待提示地点中的至少一个第一地点的位置信息,确定电子设备的当前位置与至少一个第一地点之间的距离小于或等于第一阈值,并生成向振动服务模块发送的第一控制指令;振动服务模块响应于第一控制指令,调用电子设备的硬件抽象层的振动能力产生振动,以向用户提示至少一个第一地点位于附近。In a possible implementation of the first aspect, the electronic device includes an application layer, an application framework layer, and a hardware abstraction layer, wherein the application layer includes the first application, and the application framework layer includes a location service module and a vibration service module The above method includes: when the first application is running, in response to the first operation of the user, determining the first navigation track, and in response to the second operation of the user, determining the type of the place to be prompted; the first application is based on the type of the place to be prompted and the The first navigation track determines the location information of the location to be prompted; the first application requests the second location information from the location service module; the first application is based on at least one of the second location information returned by the location service module and the location to be prompted. the position information, determine that the distance between the current position of the electronic device and at least one first location is less than or equal to the first threshold, and generate the first control command sent to the vibration service module; the vibration service module responds to the first control command, The vibration capability of the hardware abstraction layer of the electronic device is invoked to generate vibration to alert the user that at least one first location is nearby.

在上述第一方面的一种可能的实现中,电子设备包括马达,硬件抽象层的振动能力由马达提供;并且,振动服务模块响应于第一控制指令,调用硬件抽象层的振动能力产生振动,包括:振动服务模块响应于第一控制指令,生成向硬件抽象层发送的第二控制指令,第二控制指令用于指示硬件抽象层控制马达产生振动;硬件抽象层响应于第二控制指令,通过电子设备的内核驱动层驱动马达振动。In a possible implementation of the above-mentioned first aspect, the electronic device includes a motor, and the vibration capability of the hardware abstraction layer is provided by the motor; and the vibration service module, in response to the first control instruction, invokes the vibration capability of the hardware abstraction layer to generate vibration, Including: the vibration service module, in response to the first control instruction, generates a second control instruction sent to the hardware abstraction layer, where the second control instruction is used to instruct the hardware abstraction layer to control the motor to generate vibration; the hardware abstraction layer responds to the second control instruction, by The inner driver layer of an electronic device drives the motor to vibrate.

在上述第一方面的一种可能的实现中,用户的第二操作包括:输入待提示地点的类型和对应不同的待提示地点的类型的不同振动模式,其中振动模式的不同包括:振动频率、振动时长、以及振动幅度中的至少一项的不同,并且,硬件抽象层响应于第二控制指令,通过电子设备的内核驱动层驱动马达产生振动,包括:硬件抽象层响应于第二控制指令,向电子设备的内核驱动层发送驱动指令和为待提示地点的类型预设的振动模式对应的振动参数,振动参数包括振动频率、振动时长、以及振动幅度中的至少一项;内核驱动层基于振动参数,响应于驱动指令,驱动马达振动。In a possible implementation of the above-mentioned first aspect, the second operation of the user includes: inputting the type of the place to be prompted and different vibration modes corresponding to different types of the place to be prompted, wherein the differences in the vibration modes include: vibration frequency, at least one of the vibration duration and the vibration amplitude is different, and the hardware abstraction layer drives the motor to generate vibration through the kernel driver layer of the electronic device in response to the second control instruction, including: the hardware abstraction layer responds to the second control instruction, Send a drive instruction and a vibration parameter corresponding to a vibration mode preset for the type of the location to be prompted to the kernel driver layer of the electronic device, where the vibration parameter includes at least one of vibration frequency, vibration duration, and vibration amplitude; the kernel driver layer is based on vibration The parameter, in response to the drive command, drives the motor to vibrate.

即实施本申请实施例所提供的导航方法的电子设备所搭载的操作系统例如可以是安卓系统,则该电子设备可以通过应用程序层、应用程序框架层以及硬件抽象层等之间的交互来实现本申请实施例所提供的导航方法,上述第一应用例如可以是下文实施例中描述的地图应用,具体可以参考下文实施例中图12所示的交互流程及相关描述,在此不做赘述。That is, the operating system carried by the electronic device that implements the navigation method provided by the embodiment of the present application may be, for example, the Android system, and the electronic device may be implemented through the interaction between the application layer, the application framework layer, and the hardware abstraction layer. For the navigation method provided by the embodiment of the present application, the above-mentioned first application may be, for example, the map application described in the following embodiments. For details, reference may be made to the interaction flow and related description shown in FIG. 12 in the following embodiments, which will not be repeated here.

第二方面,本申请实施例提供了一种电子设备,该电子设备包括:一个或多个处理器;一个或多个存储器;一个或多个存储器存储有一个或多个程序,当一个或者多个程序被一个或多个处理器执行时,使得电子设备执行上述导航方法。In a second aspect, an embodiment of the present application provides an electronic device, the electronic device includes: one or more processors; one or more memories; one or more memories are stored with one or more programs, when one or more When each program is executed by one or more processors, the electronic device executes the above-mentioned navigation method.

第三方面,本申请实施例提供了一种计算机可读存储介质,该存储介质上存储有指令,指令在计算机上执行时使计算机执行上述导航方法。In a third aspect, embodiments of the present application provide a computer-readable storage medium, where instructions are stored on the storage medium, and when the instructions are executed on a computer, the computer executes the above-mentioned navigation method.

第四方面,本申请实施例提供了一种计算机程序产品,包括计算机程序/指令,计算机程序/指令被处理器执行时实现上述导航方法。In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program/instruction, where the computer program/instruction is executed by a processor to implement the above-mentioned navigation method.

附图说明Description of drawings

图1所示为本申请实施例提供的一种场景示意图。FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present application.

图2所示为本申请实施例提供的一种手机100的硬件结构示意图。FIG. 2 is a schematic diagram of a hardware structure of amobile phone 100 according to an embodiment of the present application.

图3所示为本申请实施例提供的一种地图应用的界面示意图。FIG. 3 is a schematic interface diagram of a map application provided by an embodiment of the present application.

图4所示为本申请实施例提供的一种导航方法的实施流程示意图。FIG. 4 is a schematic diagram illustrating an implementation flow of a navigation method provided by an embodiment of the present application.

图5所示为本申请实施例提供的一种导航界面示意图。FIG. 5 is a schematic diagram of a navigation interface provided by an embodiment of the present application.

图6所示为本申请实施例提供的一种通知界面示意图。FIG. 6 is a schematic diagram of a notification interface provided by an embodiment of the present application.

图7所示为本申请实施例提供的一种偏离角度示意图。FIG. 7 is a schematic diagram of a deviation angle according to an embodiment of the present application.

图8所示为本申请实施例提供的一种振动强度β随偏离角度的归一化参数α的变化曲线示意图。FIG. 8 is a schematic diagram showing a variation curve of the normalized parameter α of the vibration intensity β with the deviation angle according to the embodiment of the present application.

图9所示为本申请实施例提供的手机100上预设的不同振动模式的设置界面示意图。FIG. 9 is a schematic diagram of a setting interface of different vibration modes preset on themobile phone 100 according to an embodiment of the present application.

图10所示为本申请实施例提供的一种时序流程示意图。FIG. 10 is a schematic diagram of a sequence flow according to an embodiment of the present application.

图11所示为本申请实施例提供的一种导航方法实施所涉及的系统软件结构示意图。FIG. 11 is a schematic structural diagram of a system software involved in the implementation of a navigation method according to an embodiment of the present application.

图12所示为本申请实施例提供的一种交互流程示意图。FIG. 12 is a schematic diagram of an interaction flow provided by an embodiment of the present application.

图13所示为本申请实施例提供的一种手机100的系统软件架构示意框图。FIG. 13 shows a schematic block diagram of a system software architecture of amobile phone 100 according to an embodiment of the present application.

具体实施方式Detailed ways

为了便于清楚理解本申请实施例所提供的技术方案,下面先就本申请实施例涉及的技术概念进行解释。In order to facilitate a clear understanding of the technical solutions provided by the embodiments of the present application, the following first explains the technical concepts involved in the embodiments of the present application.

振动强度,又称机械指数,是振动加速度幅值与重力加速度之比。振动强度通常用速度的有效值表示。振动三要素包括振幅、频率、相位,其中振幅和频率的大小与振动强度的大小相对应。在振幅不变的情况下,振动频率越高,振动强度越大;在振动频率不变的情况下,振幅越大,振动强度也越大。在本申请实施例中,振动强度的大小等效值,可以采用下文实给出的公式(2)计算确定,具体参考下文描述,在此不做赘述。Vibration intensity, also known as mechanical index, is the ratio of vibration acceleration amplitude to gravitational acceleration. Vibration intensity is usually expressed in rms value of velocity. The three elements of vibration include amplitude, frequency and phase, wherein the magnitude of amplitude and frequency corresponds to the magnitude of vibration intensity. When the amplitude is constant, the higher the vibration frequency, the greater the vibration intensity; when the vibration frequency is constant, the greater the amplitude, the greater the vibration intensity. In the embodiment of the present application, the magnitude equivalent value of the vibration intensity can be calculated and determined by using the formula (2) given in the following fact, and the specific reference is made to the following description, which will not be repeated here.

为了解决导航到目的地的过程中,在一些较为复杂的地形或路口等地,用户频繁看手机查看当前位置附近是否有公共厕所等地点时存在较大安全隐患、使用语音播报又不方便用户接听电话等问题,本申请实施例提供了一种导航方法。In order to solve the problem in the process of navigating to the destination, in some more complex terrains or intersections and other places, users frequently check their mobile phones to check whether there are public toilets and other places near the current location. For problems such as telephone calls, an embodiment of the present application provides a navigation method.

具体地,该方法通过检测用户设置的待提示地点的类型,并根据该待提示地点的类型确定导航到目的地的导航轨迹附近的、属于该类型的各个待提示地点的位置信息,进而在导航到目的地的过程中,识别用户当前位置预设距离范围内存在的属于该类型的待提示地点并提示用户。如此,用户在根据导航提示行进的过程中,无需频繁看手机也可以通过手机等电子设备来识别当前位置附近是否有诸如公共厕所、商场等类型的待提示地点,用户可以将注意力集中在当前行进的道路或遇到的路口处,有利于提高用户利用手机等电子设备导航到目的地的过程中的安全性。例如用户在行进过程中如果临时想要去公共厕所等类型的地点,则可以设置该类地点作为待提示地点的类型,当手机识别到该类待提示地点进行提示时,用户再根据提示驻足查看手机所识别到的待提示地点前往。Specifically, the method detects the type of the location to be prompted set by the user, and determines, according to the type of the location to be prompted, the location information of each location to be prompted that belongs to the type near the navigation track to the destination, and then performs navigation in the navigation system. During the process of arriving at the destination, identify the places to be prompted of this type that exist within the preset distance range from the current location of the user, and prompt the user. In this way, in the process of traveling according to the navigation prompt, the user can use the mobile phone and other electronic devices to identify whether there are places to be prompted such as public toilets, shopping malls, etc. near the current location without frequently looking at the mobile phone, and the user can focus on the current location. The road to travel or the intersection encountered is beneficial to improve the safety of the user in the process of navigating to the destination by using electronic devices such as mobile phones. For example, if the user temporarily wants to go to a public toilet or other type of place during the journey, he can set this type of place as the type of the place to be prompted. When the mobile phone recognizes this type of place to be prompted for prompting, the user will stop and check according to the prompt. Go to the location to be reminded that the phone recognizes.

本申请实施例所提供的导航方法,还可以在识别到用户当前位置附近存在多个待提示地点时,根据预设选择策略从所识别到的多个待提示地点中选择距离较近或者历史评分数据较高的待提示地点,向用户提示或者说是推荐,如此,也有利于提高用户体验。可以理解,本申请实施例所提供的导航方法可以通过手机等电子设备的振动能力或语音功能向用户提示识别到的待提示地点。另外可以理解,预设选择策略所基于的历史评分数据例如可以是手机等电子设备安装的地图应用等应用程序,向用户搜集的对于这些地点的评价打分或者推荐程度等统计确定的。In the navigation method provided by the embodiment of the present application, when it is recognized that there are multiple places to be prompted near the user's current position, according to a preset selection strategy, a closer distance or a historical score can be selected from the identified multiple places to be prompted. The location to be prompted with higher data is prompted or recommended to the user, which is also conducive to improving the user experience. It can be understood that the navigation method provided by the embodiment of the present application can prompt the user with the identified location to be prompted by using the vibration capability or voice function of an electronic device such as a mobile phone. In addition, it can be understood that the historical scoring data on which the preset selection strategy is based can be, for example, an application program such as a map application installed on an electronic device such as a mobile phone, and is determined by statistics such as evaluation scores or recommendation degrees collected from users for these places.

另外,本申请实施例所提供的导航方法,还可以通过检测用户的实际行进方向相对于导航轨迹引导方向是否有偏离,当有偏离时,例如可以通过振动的方式提醒用户当前行进方向已偏离导航轨迹引导方向。其中振动的方式对应的振动强度可以基于用户实际行进方向相对于导航轨迹引导方向偏离角度的大小来确定。如此,用户无需频繁看手机也能确保行进方向正确,并且不影响用户接听电话等,另外,本申请实施例所提供的导航方法,还可以在一些导航场景中,在接近用户设定的目的地、或者接近用户设定中途要前往的途经地等地点时,通过切换振动强度进行适当引导和提醒,以便于用户准确到达目的地或者要前往的途经地等。In addition, the navigation method provided by the embodiment of the present application can also detect whether the actual travel direction of the user deviates from the guidance direction of the navigation track. Track guide direction. The vibration intensity corresponding to the vibration mode may be determined based on the deviation angle of the user's actual travel direction relative to the guide direction of the navigation track. In this way, the user can ensure the correct travel direction without frequently looking at the mobile phone, and does not affect the user's answering calls. In addition, the navigation method provided by the embodiment of the present application can also be used in some navigation scenarios when approaching the destination set by the user. , or when approaching places such as the waypoints set by the user to go halfway, appropriate guidance and reminders are provided by switching the vibration intensity, so that the user can accurately arrive at the destination or the waypoints to be traveled.

本申请所适用的导航场景,例如可以是盲人导航场景或者步行导航或骑行导航等行进速度较低的导航场景等。通过本申请实施例所提供的导航方法,用户可以设置目的地、中途需前往的途经地以及待提示地点的类型等,该目的地或途经地例如可以是收藏地点或者用户搜索的某个地点,也可以是应用根据用户反馈的评分推荐的评分高于预设值的地点等,例如某个银行支行或者某个景点等;该待提示地点的类型例如可以是用户经常设置的地点类型、或者用户添加收藏或者标记为关注的地点类型等,例如公共厕所类、商场类、银行网点类等,在此不做限制。The navigation scenario to which the present application is applicable may be, for example, a blind navigation scenario or a navigation scenario with a low travel speed, such as walking navigation or cycling navigation. Through the navigation method provided by the embodiment of the present application, the user can set the destination, the route to be traveled to, the type of the location to be prompted, etc. The destination or route can be, for example, a favorite place or a certain place searched by the user, It can also be a place with a score higher than a preset value recommended by the application based on the score feedback from the user, such as a bank branch or a scenic spot; Add favorites or mark as concerned location types, such as public toilets, shopping malls, bank outlets, etc., which are not limited here.

可以理解,待提示地点的类型,可以是根据各个地点的用途进行分类所确定的分类信息等,也可以是基于其他合理的分类规则确定的分类信息,在此不做限制。待提示地点的类型例如可以与手机等电子设备上的安装的地图应用从相应服务器侧获取的地图资源中对各个地点的分类相对应,手机等电子设备运行所安装的地图应用时显示的界面上,可以根据用户输入的文字显示相近的分类关键词等,在此不做限制。It can be understood that the type of the location to be prompted may be classified information determined according to the usage of each location, etc., or classified information determined based on other reasonable classification rules, which is not limited here. For example, the type of the location to be prompted may correspond to the classification of each location in the map resource obtained from the corresponding server by the installed map application on the mobile phone and other electronic devices. , similar classification keywords, etc. can be displayed according to the text input by the user, which is not limited here.

可以理解,用户的实际行进方向例如可以是手机等电子设备的前端所指示的方向(以下简称前端方向)。手机所产生的对应强度的振动,可以通过位于手机不同位置上的马达产生,从而利用不同位置上的马达振感,向用户示意当前偏离的方向,进而引导用户转回至导航轨迹引导方向上行进。如此,用户可以基于手机不同位置处的振感,来确定回到导航轨迹引导向上需要转动的方向,而无需频繁地看手机来确定是否偏离导航方向,有利于提高导航过程中的安全性。It can be understood that the actual travel direction of the user may be, for example, the direction indicated by the front end of an electronic device such as a mobile phone (hereinafter referred to as the front end direction). The vibration of the corresponding intensity generated by the mobile phone can be generated by the motors located in different positions of the mobile phone, so as to use the vibration sense of the motors in different positions to indicate the current deviation direction to the user, and then guide the user to turn back to the navigation track to guide the direction. . In this way, the user can determine the direction that needs to be turned to return to the navigation track to guide upward based on the vibration at different positions of the mobile phone, without frequently looking at the mobile phone to determine whether to deviate from the navigation direction, which is beneficial to improve the safety during the navigation process.

可以理解,对于用户设置的目的地、或者待提示地点的类型等,手机如果识别到这些地点,还可以在一定的距离范围内变换振动模式进行提醒,例如越接近用户设置的目的地或途经地时,振动频率越大。It can be understood that for the destination set by the user or the type of the place to be prompted, if the mobile phone recognizes these places, it can also change the vibration mode within a certain distance range to remind, for example, the closer to the destination set by the user or the passing place. , the higher the vibration frequency is.

可以理解,用户也可以在设置目的地时,设置中途需要到达的某个途经地,该途经地例如可以是地图上的收藏地点或搜索到的某个地点。此种情形下,手机所确定的导航轨迹中,则可以将用于预设的途经地作为另一目的地,所确定的导航轨迹可以先导航到用户预设的途经地、再从该途经地导航到用户预设的目的地。It can be understood that, when setting a destination, the user can also set a certain route to be reached in the middle, and the route can be, for example, a favorite place on a map or a searched place. In this case, in the navigation track determined by the mobile phone, the preset route can be used as another destination, and the determined navigation track can be navigated to the user preset route first, and then from the route. Navigate to a user preset destination.

用户设置的待提示地点的类型则是一类地点,例如是公共厕所类时,则当手机识别到导航途中的任意公共厕所时产生振动提醒用户,用户感知到手机的振动提醒后还可以通过预设的切换目的地的操作,例如摇晃手机或者按压手机按键等操作,将初始设置的目的地临时切换至手机识别到的公共厕所进行导航,待用户到达该公共厕所后,手机再将目的地切回至用户初始设置的目的地。如此,方便用户在使用地图导航的过程中,临时前往识别到的当前位置附近的待提示地点(例如公共厕所)处理紧急情况等。The type of the location to be reminded set by the user is a type of location. For example, when it is a public toilet, when the mobile phone recognizes any public toilet on the way of navigation, it will vibrate to remind the user. The preset destination switching operation, such as shaking the phone or pressing the phone button, temporarily switches the initially set destination to the public toilet recognized by the mobile phone for navigation. After the user arrives at the public toilet, the mobile phone switches the destination. Returns to the destination initially set by the user. In this way, it is convenient for the user to temporarily go to a place to be prompted (for example, a public toilet) near the identified current position to deal with emergency situations during the process of using the map to navigate.

可以理解,本申请实施例所提供的导航方法所适用的电子设备,可以包括但不限于手机、平板电脑、桌面型、膝上型、手持计算机、上网本、增强现实(augmentedreality,AR)\虚拟现实(virtual reality,VR)设备、智能电视、智能手表等、以及其中嵌入或耦接有一个或多个处理器的电视机、或能够访问网络的其他电子设备,在此不做限制。下面继续以手机100为例,介绍手机100实施本申请实施例提供的导航方法的具体实施过程。其中,手机100上安装的用于实现本申请实施例所提供的导航方法的应用程序可以是上述地图应用,在另一些实施例中,也可以是其他具有地图导航功能的其他应用,在此不做限制。It can be understood that the electronic devices to which the navigation methods provided in the embodiments of the present application are applicable may include but are not limited to mobile phones, tablet computers, desktops, laptops, handheld computers, netbooks, augmented reality (AR)\virtual reality (virtual reality, VR) devices, smart TVs, smart watches, etc., as well as TVs with one or more processors embedded or coupled therein, or other electronic devices capable of accessing a network, are not limited herein. The following continues to take themobile phone 100 as an example to introduce the specific implementation process of themobile phone 100 implementing the navigation method provided by the embodiment of the present application. Wherein, the application program installed on themobile phone 100 for implementing the navigation method provided by the embodiments of the present application may be the above-mentioned map application, and in other embodiments, it may also be other application with a map navigation function, which is not described here. make restrictions.

图2根据本申请实施例示出了一种手机100的硬件结构示意图。FIG. 2 shows a schematic diagram of the hardware structure of amobile phone 100 according to an embodiment of the present application.

手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,加速度传感器180C,触摸传感器180E等。Themobile phone 100 may include aprocessor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, anantenna 1, an antenna 2,Mobile communication module 150,wireless communication module 160,audio module 170,speaker 170A,receiver 170B,microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user A subscriber identification module (SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an acceleration sensor 180C, a touch sensor 180E, and the like.

可以理解的是,本发明实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on themobile phone 100 . In other embodiments of the present application, themobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,GPU主要用于处理图形运算,通常所说“显卡”的核心部件就是GPU。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Theprocessor 110 may include one or more processing units, for example, theprocessor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Among them, the GPU is mainly used to process graphics operations, and the core component of the so-called "graphics card" is usually the GPU. The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.

可以理解,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。It can be understood that different processing units may be independent devices or may be integrated in one or more processors.

在本申请实施例中,手机100的处理器110可以通过控制器来控制执行实施本申请实施例提供的导航方法的指令,供用户操作手机100设置目的地、途经地以及待提示地点的类型等,并在导航过程中识别属于用户预设的待提示地点的类型的待提示地点并通过振动等方式提醒用户、或者在用户偏离导航轨迹引导方向时通过振动等方式提醒用户,也可以在确定到达目的地附近时通过振动等方式提醒用户,具体将在下文详细描述,在此不做赘述。In the embodiment of the present application, theprocessor 110 of themobile phone 100 can control the execution of the instructions for implementing the navigation method provided by the embodiment of the present application through the controller, so that the user can operate themobile phone 100 to set the destination, the route, and the type of the place to be prompted, etc. , and identify the location to be prompted that belongs to the type of location to be prompted preset by the user during the navigation process and remind the user through vibration or other means, or remind the user through vibration when the user deviates from the guidance direction of the navigation track. When the destination is near, the user is reminded by means of vibration, etc., which will be described in detail below, and will not be repeated here.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从上述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in theprocessor 110 for storing instructions and data. In some embodiments, the memory inprocessor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by theprocessor 110 . If theprocessor 110 needs to use the instruction or data again, it can be called directly from the above-mentioned memory. Repeated accesses are avoided and the latency of theprocessor 110 is reduced, thereby increasing the efficiency of the system.

在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, theprocessor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) interface /transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and/or Universal serial bus (universal serial bus, USB) interface, etc.

I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过I2C接口耦合触摸传感器180E,使处理器110与触摸传感器180E通过I2C总线接口通信,实现手机100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, theprocessor 110 may contain multiple sets of I2C buses. Theprocessor 110 can couple the touch sensor 180E through the I2C interface, so that theprocessor 110 and the touch sensor 180E communicate through the I2C bus interface, so as to realize the touch function of themobile phone 100 .

MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(displayserial interface,DSI)等。在一些实施例中,处理器110和显示屏194通过DSI接口通信,实现手机100的显示功能。The MIPI interface can be used to connect theprocessor 110 with peripheral devices such as the display screen 194 and the camera 193 . The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (displayserial interface, DSI), and the like. In some embodiments, theprocessor 110 and the display screen 194 communicate through a DSI interface to implement the display function of themobile phone 100 .

USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。The USB interface 130 can be used to connect a charger to charge themobile phone 100, and can also be used to transmit data between themobile phone 100 and peripheral devices.

可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that, the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of themobile phone 100 . In other embodiments of the present application, themobile phone 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.

充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used for connecting the battery 142 , the charging management module 140 and theprocessor 110 . The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to theprocessor 110, the internal memory 121, the display screen 194, the camera 193, and thewireless communication module 160.

手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of themobile phone 100 may be implemented by theantenna 1, the antenna 2, themobile communication module 150, thewireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna inhandset 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, theantenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。Themobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on themobile phone 100 .

无线通信模块160可以提供应用在手机100上的包括无线局域网,蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。Thewireless communication module 160 can provide applications on themobile phone 100 including wireless local area network, bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) ), infrared technology (infrared, IR) and other wireless communication solutions.

在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。上述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(globalnavigation satellite system,GLONASS),北斗卫星导航系统(beidou navigationsatellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, theantenna 1 of themobile phone 100 is coupled with themobile communication module 150, and the antenna 2 is coupled with thewireless communication module 160, so that themobile phone 100 can communicate with the network and other devices through wireless communication technology. The above-mentioned GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi-zenith satellite) system, QZSS) and/or satellite based augmentation systems (SBAS).

在本申请实施例中,手机100可以通过GNSS获取手机100所在位置(即当前位置)的定位信息,手机100可以通过所运行的地图应用向服务器请求所在城市的地图资源包,基于该地图资源包可以确定用户设定的目的地、途经地以及某一类型的待提示地点的位置信息等。手机100当前位置的定位信息,可以是由手机100上的定位芯片根据卫星数据计算得到的位置数据,该定位芯片例如可以是GPS芯片。手机100再基于所获取的当前位置定位信息、目的地、途经地以及某一类型的待提示地点的位置信息等,确定从当前位置到目的地或途经地的导航轨迹、以及当前位置与预设的目的地、途经地或识别到的待提示地点之间的距离,从而根据预设的提醒规则,在行进方向偏离导航方向时、以及在距离目的地或途经地一定距离范围内时、或者在识别到当前位置一定距离范围内存在待提示地点时,产生相应的振动提醒等对用户进行提示,从而实现本申请实施例所提供的导航方法。In the embodiment of the present application, themobile phone 100 can obtain the positioning information of the location (ie the current location) of themobile phone 100 through GNSS, and themobile phone 100 can request the server for the map resource package of the city where it is located through the running map application, based on the map resource package The destination set by the user, the passing place, and the location information of a certain type of place to be prompted can be determined. The positioning information of the current position of themobile phone 100 may be position data calculated by a positioning chip on themobile phone 100 according to satellite data, and the positioning chip may be, for example, a GPS chip. Themobile phone 100 then determines the navigation track from the current position to the destination or the passing place, as well as the current position and the preset position based on the acquired current position positioning information, the destination, the passing place, and the position information of a certain type of place to be prompted. Therefore, according to the preset reminder rules, when the travel direction deviates from the navigation direction, when it is within a certain distance from the destination or the passing place, or when When it is recognized that there is a point to be prompted within a certain distance from the current position, a corresponding vibration reminder is generated to prompt the user, thereby realizing the navigation method provided by the embodiment of the present application.

手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。在本申请实施例中,手机100可以在实施本申请实施例所提供的导航方法的过程中,处理器110中的中央处理器(Central Processing Unit,CPU)或GPU实时处理手机100所采集的地图数据并显示用户所在位置处的地图界面、或者用户输入的目的地位置处的地图界面等。Themobile phone 100 realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. In the embodiment of the present application, themobile phone 100 may process the map collected by themobile phone 100 in real time by the central processing unit (Central Processing Unit, CPU) or GPU in theprocessor 110 in the process of implementing the navigation method provided in the embodiment of the present application. Data and display the map interface at the user's location, or the map interface at the destination location input by the user, and so on.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. In some embodiments,cell phone 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.

手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。Themobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.

ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。The ISP is used to process the data fed back by the camera 193 . Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. In some embodiments, themobile phone 100 may include one or N cameras 193 , where N is a positive integer greater than one.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of themobile phone 100 .

内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行手机100的各种功能应用以及数据处理。在本申请实施例中,实施界面显示方法的指令可以存储在内部存储器121中,供处理器110调用执行,以实施本申请实施例所提供的导航方法。Internal memory 121 may be used to store computer executable program code, which includes instructions. Theprocessor 110 executes various functional applications and data processing of themobile phone 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor. In this embodiment of the present application, the instructions for implementing the interface display method may be stored in the internal memory 121 for theprocessor 110 to call and execute, so as to implement the navigation method provided by the embodiment of the present application.

手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。Themobile phone 100 can implement audio functions through anaudio module 170, aspeaker 170A, areceiver 170B, amicrophone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。手机100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,手机100根据压力传感器180A检测该触摸操作的强度。手机100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. Thecell phone 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, themobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A. Themobile phone 100 can also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions.

陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。The gyroscope sensor 180B can be used to determine the motion attitude of themobile phone 100 . In some embodiments, the angular velocity ofcell phone 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B.

加速度传感器180C可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180C can detect the magnitude of the acceleration of themobile phone 100 in various directions (generally three axes). When themobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.

在本申请实施例中,手机100可以通过陀螺仪传感器180B、和加速度传感器180C采集手机100的前端方向以及手机100随用户转动的角度等数据,以确定手机100的前端方向相对于导航轨迹引导方向的偏离角度是否超过预设角度范围,如果超过,则手机100可以发出对应于相应偏离角度的振动强度,来提醒用户回到导航轨迹引导方向上行进。In this embodiment of the present application, themobile phone 100 may collect data such as the front-end direction of themobile phone 100 and the angle at which themobile phone 100 rotates with the user through the gyro sensor 180B and the acceleration sensor 180C, so as to determine the front-end direction of themobile phone 100 relative to the guidance direction of the navigation track Whether the deviation angle exceeds the preset angle range, if it exceeds, themobile phone 100 can send out a vibration intensity corresponding to the corresponding deviation angle to remind the user to go back to the navigation track guidance direction.

触摸传感器180E,也称“触控器件”。触摸传感器180E可以设置于显示屏194,由触摸传感器180E与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180E用于检测作用于其上或附近的触摸操作。触摸传感器180E可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。The touch sensor 180E is also called "touch device". The touch sensor 180E may be disposed on the display screen 194 , and the touch sensor 180E and the display screen 194 form a touch screen, also referred to as a "touch screen". The touch sensor 180E is used to detect a touch operation on or near it. The touch sensor 180E may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through display screen 194 .

按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. Touch buttons are also possible. Themobile phone 100 can receive key input and generate key signal input related to user settings and function control of themobile phone 100 .

马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。在本申请实施例中,马达191可以用于在导航过程中以预设的振动模式产生振动,或者以处理器110运算确定的振动强度产生振动,以在导航过程中提醒用户偏离方向、或者接近目的地等。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. In this embodiment of the present application, the motor 191 may be used to generate vibration in a preset vibration mode during the navigation process, or generate vibration with the vibration intensity determined by the calculation of theprocessor 110, so as to remind the user to deviate from the direction or approach during the navigation process destination etc.

指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate a charging state, a change in power, and can also be used to indicate a message, a missed call, a notification, and the like.

SIM卡接口195用于连接SIM卡。The SIM card interface 195 is used to connect a SIM card.

基于上述图2所示的手机100的结构,下面结合具体流程图、以及其他相关附图,详细介绍本申请实施例所提供的导航方法的具体实施过程。Based on the structure of themobile phone 100 shown in FIG. 2, the specific implementation process of the navigation method provided by the embodiment of the present application is described in detail below with reference to the specific flowchart and other related drawings.

图3根据本申请实施例示出了手机100所显示的地图应用的界面示意图。FIG. 3 shows a schematic interface diagram of a map application displayed on themobile phone 100 according to an embodiment of the present application.

如图3所示,用户操作手机100打开地图应用后,手机100显示地图界面310。地图界面310上包括目的地输入框311、待提示地点输入框312、以及振动模式设置按钮313。As shown in FIG. 3 , after the user operates themobile phone 100 to open the map application, themobile phone 100 displays themap interface 310 . Themap interface 310 includes adestination input box 311 , a location to be promptedinput box 312 , and a vibrationmode setting button 313 .

用户可以点击地图界面310上的目的地输入框311,输入本次导航的目的地。可以理解,在另一些实施例中,目的地输入框311处还可以用于输入需要添加的某个途经地作为另一目的地,以使用户在导航到最终目的地的途中,可以先导航至设置的途经地,即另一个目的地。在此不做限制。The user can click thedestination input box 311 on themap interface 310 to input the destination of the current navigation. It can be understood that, in other embodiments, thedestination input box 311 can also be used to input a certain way to be added as another destination, so that the user can first navigate to the final destination when navigating to the final destination. The set waypoint, that is, another destination. There are no restrictions here.

用户还可以点击地图界面310上的待提示地点输入框312设置待提示地点的类型。例如用户可以设置公共厕所、或者路口等这类待提示地点,以在导航过程中提醒自己附近有公共厕所或者路口等,用户可以前往识别到的公共厕所、或者在识别到的路口处提高警惕注意安全等。在预设待提示地点的类型之后,用户可以点击振动模式设置按钮313为该类型的待提示地点设置相应的振动模式。如此,当手机100识别到当前位置附近存在属于预设的待提示地点类型的待提示地点时,手机100则以相应设置的振动模式进行振动,以提醒用户附近有属于预设的待提示地点类型的待提示地点。The user can also click theinput box 312 of the place to be prompted on themap interface 310 to set the type of the place to be prompted. For example, the user can set up a public toilet, or wait at the intersection to be reminded that there are public toilets or intersections nearby during the navigation process. The user can go to the identified public toilet, or be alert at the identified intersection. safety etc. After presetting the type of the location to be prompted, the user can click the vibrationmode setting button 313 to set a corresponding vibration mode for the location to be prompted of that type. In this way, when themobile phone 100 recognizes that there is a preset location to be reminded near the current position, themobile phone 100 vibrates in a correspondingly set vibration mode to remind the user that there is a preset nearby location to be reminded place to be reminded.

如图3所示,待提示地点输入框312下方可以显示一些常用的待提示地点类型选项314,例如厕所、商场、路口等,用户选择这些类型的待提示地点之后,待提示地点输入框312中可以同步显示用户所选择的待提示地点类型。图3所示的振动模式设置按钮313下方还可以显示一些操作提示框315,该操作提示框315中显示的内容例如可以是图3所示的“为它设置一个振动模式提醒您吧”。可以理解,用户可以通过待提示地点输入框312设定一个或多个待提示地点的类型,用户也可以通过待提示地点输入框312设定导航轨迹附近的一个或多个地点作为待提示地点,在此不做限制。相应地,当用户预设多个待提示地点的类型时,可以为各个待提示地点的类型对应设置不同的振动模式,以通过不同的振感来提醒用户。可以理解,不同的振动模式所对应的振动参数不同,具体可以包括振动频率、振动时长、以及振动幅度中的至少一项的不同,在此不做赘述。As shown in FIG. 3 , some commonly usedlocation type options 314 to be prompted, such as toilets, shopping malls, intersections, etc., can be displayed below the location to be promptedinput box 312 , after the user selects these types of locations to be prompted, the location to be promptedinput box 312 The type of location to be prompted selected by the user can be displayed synchronously. Some operationprompt boxes 315 may also be displayed below the vibrationmode setting button 313 shown in FIG. 3 , and the content displayed in the operationprompt box 315 may be, for example, “set a vibration mode for it to remind you” shown in FIG. 3 . It can be understood that the user can set the type of one or more locations to be prompted through the location to be promptedinput box 312, and the user can also set one or more locations near the navigation track as the location to be prompted through the location to be promptedinput box 312, There are no restrictions here. Correspondingly, when the user presets a plurality of types of places to be prompted, different vibration modes can be correspondingly set for each type of places to be prompted, so as to remind the user through different vibration sensations. It can be understood that the vibration parameters corresponding to different vibration modes are different, and may specifically include differences in at least one of the vibration frequency, the vibration duration, and the vibration amplitude, which will not be repeated here.

可以理解,在另一些实施例中,手机100运行地图应用所显示的地图界面也可以是不同于图3所示地图界面310的其他形式,在此不做限制。It can be understood that, in other embodiments, the map interface displayed by themobile phone 100 running the map application may also be in other forms different from themap interface 310 shown in FIG. 3 , which is not limited herein.

用户在图3所示的地图界面310上完成目的地的设置、途经地的预设以及相应途经地对应的振动模式设置等之后,可以选择导航模式。该导航模式例如可以是步行导航模式、骑行导航模式(包括自行车骑行、电动车骑行等)、公交地铁导航模式以及驾车导航模式等。例如用户可以点击图3所示的步行选项316,选择步行导航模式,手机100则可以规划步行的导航轨迹并开始导航。可以理解,在另一些实施例中,用户也可以选择其他导航模式,例如选择骑行、公交地铁或者驾车等选项进行导航,其中步行导航、骑行导航等低速行进的导航模式,可以通过本申请实施例所提供的导航方法,向用户提醒是否偏离导航轨迹引导方向、以及是否接近目的地等,在此不做限制。The user can select a navigation mode after completing the setting of the destination, the preset of the passing place, and the setting of the vibration mode corresponding to the corresponding passing place on themap interface 310 shown in FIG. 3 . The navigation mode may be, for example, a walking navigation mode, a cycling navigation mode (including bicycle riding, electric vehicle riding, etc.), a bus and subway navigation mode, a driving navigation mode, and the like. For example, the user can click thewalking option 316 shown in FIG. 3 to select the walking navigation mode, and themobile phone 100 can plan the walking navigation track and start the navigation. It can be understood that in other embodiments, the user can also select other navigation modes, such as selecting options such as cycling, public transportation, subway, or driving for navigation. Among them, low-speed navigation modes such as walking navigation and cycling navigation can be used by this application. The navigation method provided by the embodiment reminds the user whether to deviate from the guidance direction of the navigation track, and whether to approach the destination, etc., which is not limited herein.

可以理解,在另一些实施例中,用户也可以在完成目的地的设置以及选择导航模式之后,先查看手机100规划的多条导航轨迹,并选择其中一条导航轨迹进行导航。用户也可以在导航过程中点击手机100所显示界面上的相应输入框设置需要到达的某个目的地、或者待提示地点的类型等,在此不做限制。It can be understood that, in other embodiments, after completing the setting of the destination and selecting the navigation mode, the user may first view multiple navigation tracks planned by themobile phone 100, and select one of the navigation tracks for navigation. The user may also click the corresponding input box on the interface displayed on themobile phone 100 during the navigation process to set a certain destination to be reached, or the type of the location to be prompted, etc., which is not limited here.

图4根据本申请实施例示出了一种导航方法的实施流程示意图。可以理解,在本申请实施例中,图4所示流程中各步骤的实施主体可以均为手机100,或者说是手机100的处理器110。为了避免重复描述,下面在介绍图4所示流程各步骤时,不再描述各步骤的实施主体。FIG. 4 shows a schematic diagram of an implementation flow of a navigation method according to an embodiment of the present application. It can be understood that, in the embodiment of the present application, the implementation subject of each step in the process shown in FIG. 4 may be themobile phone 100 , or theprocessor 110 of themobile phone 100 . In order to avoid repeated descriptions, when the steps of the flow shown in FIG. 4 are introduced below, the implementation subjects of the steps are not described again.

如图4所示,该流程包括以下步骤:As shown in Figure 4, the process includes the following steps:

401:响应于用户操作,基于用户设置的目的地确定导航轨迹开始导航。401: In response to a user operation, determine a navigation track based on a destination set by the user to start navigation.

示例性地,用户可以操作手机100,点击手机100桌面上的地图应用,手机100则显示地图应用的界面,该界面例如可以参考上述图3所示的地图界面310。用户在手机100所显示的地图界面上可以输入目的地、选择步行等导航模式之后,就点击规划路径或者开始导航的按钮,使手机100进入相应的导航模式。手机100接收到用户输入的目的地或者待提示地点的类型后,可以基于无线通信模块等向相应的服务器获取该目的地或该类待提示地点的位置信息。手机100响应于用户操作生成导航轨迹前或者开始导航前,可以识别用户所选择的导航模式。Exemplarily, the user may operate themobile phone 100 and click on the map application on the desktop of themobile phone 100, and themobile phone 100 will display the interface of the map application, for example, refer to themap interface 310 shown in FIG. After the user can input a destination and select a navigation mode such as walking on the map interface displayed by themobile phone 100, the user clicks a button to plan a route or start navigation to make themobile phone 100 enter the corresponding navigation mode. After receiving the destination input by the user or the type of the location to be prompted, themobile phone 100 can obtain the location information of the destination or the location to be prompted from the corresponding server based on the wireless communication module or the like. Themobile phone 100 may recognize the navigation mode selected by the user before generating the navigation track or starting the navigation in response to the user's operation.

可选地,用户还可以预设需要提醒的待提示地点的类型,还可以对预设的不同类型的待提示地点设置相对应的振动模式进行区别提醒等。其中,用户设置待提示地点的类型后,手机100所运行的地图应用可以基于从相应的服务器获取到的地图资源包,确定该类待提示地点的位置信息,该位置信息例如可以是地图应用的开发商基于采集到的卫星定位数据(例如经纬度数据)所确定的用于表示待提示地点的位置的信息等。Optionally, the user can also preset the types of the places to be reminded that need to be reminded, and can also set corresponding vibration modes for different preset places to be reminded to perform differentiated reminders, and the like. Wherein, after the user sets the type of the location to be prompted, the map application running on themobile phone 100 may determine the location information of the location to be prompted based on the map resource package obtained from the corresponding server, and the location information may be, for example, the location information of the map application. Based on the collected satellite positioning data (such as latitude and longitude data), the developer determines the information indicating the location of the location to be prompted, and the like.

可以理解,用户可以在完成目的地、途经地、以及待提示地点的类型的设置后,可以选择导航模式并确认开始导航,手机100则响应于用户操作进入相应的导航模式;用户也可以仅输入目的地、选择导航模式之后,即确认开始导航,在手机100进入相应的导航模式后,用户可以在根据手机100显示的导航轨迹行进的过程中,再设置待提示地点的类型以及对应于该类待提示地点设置的振动模式。在此不做限制。It can be understood that the user can select the navigation mode and confirm to start the navigation after completing the settings of the destination, the passing place, and the type of the place to be prompted, and themobile phone 100 enters the corresponding navigation mode in response to the user operation; the user can also simply input After selecting the destination and the navigation mode, it is confirmed to start the navigation. After themobile phone 100 enters the corresponding navigation mode, the user can set the type of the location to be prompted and the type corresponding to the type of the location to be prompted during the process of traveling according to the navigation track displayed by themobile phone 100. The vibration mode set by the location to be prompted. There is no restriction here.

作为示例,图5根据本申请实施例示出了一种导航界面示意图。As an example, FIG. 5 shows a schematic diagram of a navigation interface according to an embodiment of the present application.

如图5所示,手机100检测到用户所选的导航模式,显示该导航模式对应的导航界面510。包括在所显示的地图上规划的导航轨迹511,还包括在地图下方显示的待提示地点输入框512以及振动模式设置按钮513。其中,导航轨迹511上还可以显示引导行进方向的箭头。例如,手机100检测到用户选择步行导航模式,则所显示的导航界面510则显示的是步行路径,引导用户步行前往目的地。As shown in FIG. 5 , themobile phone 100 detects the navigation mode selected by the user, and displays thenavigation interface 510 corresponding to the navigation mode. It includes anavigation track 511 planned on the displayed map, and also includes aninput box 512 of a place to be prompted and a vibrationmode setting button 513 displayed below the map. Wherein, an arrow guiding the traveling direction may also be displayed on thenavigation track 511 . For example, when themobile phone 100 detects that the user selects the walking navigation mode, the displayednavigation interface 510 displays the walking route, and guides the user to the destination on foot.

参考图5所示,作为示例,如果用户在待提示地点输入框512内已经输入需要提醒的一类待提示地点,例如公共厕所这类待提示地点,则待提示地点输入框512中可以显示该待提示地点的类型“公共厕所”,相应地,振动模式设置按钮513中可以显示用户为该类待提示地点设置的振动模式,例如是图5所示的模式1。如果用户在导航过程中想要预设待提示地点的类型、或者用户想要更换想要提醒的待提示地点类型,也可以通过点击图5所示的待提示地点输入框512进行输入、或从已有待提示地点的类型选项中选择。相应地,对各类型的待提示地点设置振动模式,可以通过点击图5所示的振动模式设置按钮513进行设置。在此不做限制。Referring to FIG. 5 , as an example, if the user has input a type of place to be reminded that needs to be reminded in the place to be remindedinput box 512 , such as a place to be reminded such as a public toilet, the place to be remindedinput box 512 can display the place to be reminded. Correspondingly, the vibrationmode setting button 513 can display the vibration mode set by the user for this type of place to be prompted, for example,mode 1 shown in FIG. 5 . If the user wants to preset the type of the location to be prompted during the navigation process, or the user wants to change the type of the location to be prompted to be reminded, he can also click the location to be promptedinput box 512 shown in FIG. Select from the options for the type of place to prompt. Correspondingly, setting the vibration mode for each type of place to be prompted can be done by clicking the vibrationmode setting button 513 shown in FIG. 5 . There are no restrictions here.

402:实时检测前端方向与导航轨迹引导方向的偏离角度。402: Detect the deviation angle between the front end direction and the guidance direction of the navigation track in real time.

示例性地,用户沿着手机100规划的导航轨迹行进的过程中,可以手持手机100前往目的地,此时手机100的前端方向通常与用户的行进方向保持一致。因此,手机100可以通过检测前端方向与导航轨迹引导方向的偏离角度,来确定用户行进方向与导航轨迹引导方向之间的偏离程度。检测到手机100的前端方向与导航轨迹方向的偏离角度。手机100的前端方向可以基于上述陀螺仪传感器180B和/或加速度传感器180C等实时采集的感知数据来确定,手机100的处理器100则可以基于所确定的前端方向与所规划的导航轨迹引导方向确定两个方向之间的夹角大小,该夹角即为手机100前端方向的偏离角度。Exemplarily, when the user travels along the navigation track planned by themobile phone 100, the user can hold themobile phone 100 to go to the destination. At this time, the front end direction of themobile phone 100 is generally consistent with the travel direction of the user. Therefore, themobile phone 100 can determine the degree of deviation between the user's traveling direction and the navigation track guiding direction by detecting the deviation angle between the front end direction and the navigation track guiding direction. The deviation angle between the front end direction of themobile phone 100 and the direction of the navigation track is detected. The front-end direction of themobile phone 100 may be determined based on the sensing data collected in real time by the above-mentioned gyro sensor 180B and/or the acceleration sensor 180C, etc., and theprocessor 100 of themobile phone 100 may be determined based on the determined front-end direction and the planned navigation trajectory guidance direction. The size of the included angle between the two directions is the deviation angle of the front end direction of themobile phone 100 .

可选地,手机100也可以在检测到进入预设的目的地或途经地的一定距离范围内,例如方圆500米内,才开始检测前端方向相对于导航轨迹引导方向的偏离角度,通过对应于该偏离角度的振动强度产生振动,提醒用户不要偏航。如此,可以适应用户在导航过程中不按导航轨迹行进、或者不想拿手机时将手机100装在口袋里等场景下,避免频繁的振动对用户造成打扰。可以理解,手机100也可以在识别进入口袋模式后,自动切换到振动免打扰模式,直至接近目的地或途经地一定距离范围内时,才检测上述偏离角度以及产生相应的振动提醒。在此不做限制。Optionally, themobile phone 100 may also start to detect the deviation angle of the front-end direction relative to the guidance direction of the navigation track within a certain distance range, such as within a radius of 500 meters, after detecting that it enters a preset destination or passing place. The vibration intensity of the off-angle produces a vibration that alerts the user not to yaw. In this way, it can be adapted to scenarios where the user does not follow the navigation track during the navigation process, or puts themobile phone 100 in his pocket when he does not want to take the mobile phone, so as to avoid frequent vibrations from disturbing the user. It can be understood that themobile phone 100 can also automatically switch to the vibration do not disturb mode after recognizing entering the pocket mode, and will not detect the above deviation angle and generate a corresponding vibration reminder until approaching the destination or within a certain distance range. There are no restrictions here.

可选地,手机100也可以在检测到进入目的地或途经地的一定距离范围内,例如方圆500米内,在手机100所显示的导航界面上弹出提示消息或通知,询问是否开启振动提醒。Optionally, themobile phone 100 can also pop up a prompt message or notification on the navigation interface displayed on themobile phone 100 within a certain distance range, for example, within a radius of 500 meters, to ask whether to enable the vibration reminder.

图6根据本申请实施例示出了一种界面示意图,如图6所示,通知界面610为手机100所显示的导航界面上弹出提示消息或确认通知时的界面。通知界面610上显示有通知弹框611,该通知弹框611中所显示的通知内容,例如可以是图6所示的“距离目的地还有500米,请问是否开启振动提醒”。在另一些实施例中,手机100所显示的通知界面以及通知内容也可以是其他,在此不做限制。FIG. 6 shows a schematic diagram of an interface according to an embodiment of the present application. As shown in FIG. 6 , thenotification interface 610 is an interface when a prompt message pops up or a notification is confirmed on the navigation interface displayed by themobile phone 100 . A notification pop-upbox 611 is displayed on thenotification interface 610 , and the notification content displayed in the notification pop-upbox 611 may be, for example, "500 meters to the destination, please turn on the vibration reminder" as shown in FIG. 6 . In other embodiments, the notification interface and notification content displayed by themobile phone 100 may also be other, which are not limited herein.

如图6所示,通知界面610上还显示有开启振动提醒按钮612以及关闭通知按钮613。用户可以通过点击开启振动提醒按钮612,开启手机100的振动提醒,使手机100开始检测偏离角度、并产生对应于相应偏离角度的振动强度的振动提醒用户。As shown in FIG. 6 , thenotification interface 610 also displays abutton 612 for enabling vibration reminder and abutton 613 for closing notification. The user can turn on the vibration reminder of themobile phone 100 by clicking the enablevibration reminder button 612, so that themobile phone 100 starts to detect the deviation angle, and generates a vibration reminder corresponding to the vibration intensity of the corresponding deviation angle to remind the user.

可以理解,当用户的实际行进方向偏离导航轨迹引导方向时,手机100还可以通过不同位置上的马达振动,来提醒用户当前偏离的方向。It can be understood that when the actual travel direction of the user deviates from the direction guided by the navigation track, themobile phone 100 can also remind the user of the current deviated direction through motor vibrations at different positions.

图7根据本申请实施例示出了一种手机100前端方向与导航轨迹引导方向之间的偏离角度示意图。FIG. 7 shows a schematic diagram of the deviation angle between the front end direction of themobile phone 100 and the guidance direction of the navigation track according to an embodiment of the present application.

如图7所示,例如手机100的前端方向为箭头710所指示的方向B,导航轨迹引导方向为箭头720所指示的方向A,则偏离角度即为方向A与方向B之间的夹角,可以记为γ。图7所示表明,手机100的前端方向此时向导航轨迹引导方向的左侧偏离了γ角度。可以理解,在用户使用手机100导航行进的过程中,手机100的前端方向可能会向导航轨迹引导方向的左侧偏离γ角度、也可能会向右侧偏离γ角度,γ角度的大小可以是[0°,180°]的范围内的任意值,在此不做限制。As shown in FIG. 7 , for example, the direction of the front end of themobile phone 100 is the direction B indicated by thearrow 710 , and the guidance direction of the navigation track is the direction A indicated by thearrow 720 , the deviation angle is the angle between the direction A and the direction B, can be denoted as γ. As shown in FIG. 7 , the front end direction of themobile phone 100 deviates from the left side of the guidance direction of the navigation track by an angle of γ at this time. It can be understood that during the navigation process of the user using themobile phone 100, the front-end direction of themobile phone 100 may deviate from the left side of the navigation track guidance direction by γ angle, or may deviate from the right side by γ angle, and the size of the γ angle can be [ Any value within the range of 0°, 180°], which is not limited here.

继续参考图7所示,如果手机100的前端方向为箭头710所指示的方向B,导航轨迹引导方向为箭头720所指示的方向A,表明用户实际行进方向向左偏离,则手机100可以控制右侧(即方向A所指示的一侧)的马达产生振动提醒;如果手机100的前端方向为箭头710所指示的方向B,导航轨迹引导方向为箭头730所指示的方向C,表明用户实际行进方向向右偏离,则手机100可以控制左侧(即方向B所指示的一侧)的马达产生振动提醒。Continuing to refer to FIG. 7 , if the direction of the front end of themobile phone 100 is the direction B indicated by thearrow 710, and the guiding direction of the navigation track is the direction A indicated by thearrow 720, indicating that the actual travel direction of the user deviates to the left, themobile phone 100 can control the right direction The motor on the side (that is, the side indicated by direction A) generates a vibration reminder; if the direction of the front end of themobile phone 100 is the direction B indicated by thearrow 710, and the guidance direction of the navigation track is the direction C indicated by thearrow 730, indicating the actual travel direction of the user If it deviates to the right, themobile phone 100 can control the motor on the left side (ie, the side indicated by the direction B) to generate a vibration reminder.

可以理解,为了使手机100能够区别前端方向向左偏离还是向右偏离,手机100上可以预设偏离角度的正反方向,例如预设手机100的前端方向向左偏离为正、向右偏离为负,则如果手机100的前端方向向左偏离,则检测到的偏离角度γ为正值;如果手机100的前端方向向右偏离,则检测到的偏离角度γ为负值,因此γ角度的值域可以是[-180°,180°]。在另一些实施例中,也可以预设手机100的前端方向向左偏离为负、向右偏离为正,在此不做限制。It can be understood that, in order to enable themobile phone 100 to distinguish whether the front end direction deviates to the left or the right direction, the positive and negative directions of the deviation angle can be preset on themobile phone 100. Negative, if the front end of themobile phone 100 deviates to the left, the detected deviation angle γ is a positive value; if the front end of themobile phone 100 deviates to the right, the detected deviation angle γ is a negative value, so the value of the γ angle The domain can be [-180°,180°]. In other embodiments, the deviation of the front end direction of themobile phone 100 to the left is negative and the deviation to the right is positive, which is not limited herein.

403:判断偏离角度是否超过预设角度范围。如果判断结果为是,则可以表明手机100的前端方向此时偏离了导航轨迹所引导的方向,需执行下述步骤404,确定与相应偏离角度对应的振动强度提醒用户;如果判断结果为否,则可以表明手机100的前端方向未有明显偏离,用户仍按导航轨迹引导方向行进,无需提醒,此时可以返回执行上述步骤402,继续检测前端方向与导航轨迹引导方向的偏离角度。403: Determine whether the deviation angle exceeds a preset angle range. If the judgment result is yes, it can indicate that the front end direction of themobile phone 100 deviates from the direction guided by the navigation track at this time, and the followingstep 404 needs to be performed to determine the vibration intensity corresponding to the corresponding deviation angle to remind the user; if the judgment result is no, It can be shown that the front end direction of themobile phone 100 does not deviate significantly, and the user still travels in the guidance direction of the navigation track without reminding, and can return to theabove step 402 to continue to detect the deviation angle between the front end direction and the guidance direction of the navigation track.

示例性地,用户手持手机100行进的过程中,用户身体的小幅度摆动会带动手机100在一定角度范围内转动,为避免手机100频繁提醒用户偏离了导航轨迹引导方向,手机100上可以预设用户在行进过程中的正常转动角度范围,手机100的前端方向偏离角度在这个预设角度范围内时,手机100不做振动提醒。手机100上的预设角度范围例如可以是[-10°,10°]、或者[-15°,15°]、或者[-20°,20°]等合理的角度范围,具体可以基于实验数据测定,在此不做限制。Exemplarily, when the user holds themobile phone 100 and moves, a small swing of the user's body will drive themobile phone 100 to rotate within a certain angle range. Themobile phone 100 does not vibrate when the deviation angle of the front end direction of themobile phone 100 is within the predetermined angle range within the normal rotation angle range of the user during traveling. The preset angle range on themobile phone 100 may be, for example, a reasonable angle range such as [-10°, 10°], or [-15°, 15°], or [-20°, 20°], which may be based on experimental data. The measurement is not limited here.

404:对偏离角度进行归一化处理,并基于预设关系式确定与该偏离角度相对应的振动强度,进行振动提醒。404: Perform normalization processing on the deviation angle, and determine a vibration intensity corresponding to the deviation angle based on a preset relational expression, and perform a vibration reminder.

示例性地,手机100可以对上述步骤403所检测的偏离角度,进行归一化处理。该归一化处理过程例如是将[-180°,180°]范围内的偏离角度γ,转换为[-1,1]范围内的数值α的过程。考虑到上述步骤403中描述的预设角度范围,偏离角度γ与归一化数值α之间的转换关系式例如可以是:Exemplarily, themobile phone 100 may perform normalization processing on the deviation angle detected in theabove step 403 . This normalization process is, for example, a process of converting the deviation angle γ in the range of [-180°, 180°] into a numerical value α in the range of [-1, 1]. Considering the preset angle range described in theabove step 403, the conversion relationship between the deviation angle γ and the normalized value α can be, for example:

α=(偏离角度γ-预设最大角度)/(180°-预设最大角度) (1)α=(deviation angle γ-preset maximum angle)/(180°-preset maximum angle) (1)

其中,预设最大角度为预设角度范围的正负最大值,如果偏离角度γ为正值,则预设最大角度也相应使用正值计算,如果偏离角度γ为负值,则预设最大角度相应使用负值计算。在另一些实施例中,偏离角度γ与归一化数值α之间的转换关系也可以采用其他合理的关系式,在此不做限制。Among them, the preset maximum angle is the positive and negative maximum values of the preset angle range. If the deviation angle γ is a positive value, the preset maximum angle is also calculated using a positive value accordingly. If the deviation angle γ is a negative value, the preset maximum angle Negative values are used accordingly. In other embodiments, the conversion relationship between the deviation angle γ and the normalized value α may also adopt other reasonable relationship, which is not limited here.

作为示例,例如手机100上预设前端方向向左偏离为正、向右偏离为负,则相应的偏离角度γ归一化处理后得到归一化参数α也相应的为正值或负值。手机100可以基于转换得到的归一化参数α,可以确定相应的振动强度,来提醒用户当前行进方向可能已偏离导航轨迹引导方向。其中,手机100上可以预设基于归一化参数α确定振动强度β的计算公式,该计算公式例如可以是:As an example, for example, themobile phone 100 presets that the leftward deviation of the front end direction is positive and the rightward deviation is negative, then the normalization parameter α obtained after the corresponding deviation angle γ is normalized is also correspondingly positive or negative. Themobile phone 100 can determine the corresponding vibration intensity based on the normalized parameter α obtained by conversion, to remind the user that the current traveling direction may deviate from the guidance direction of the navigation track. The calculation formula for determining the vibration intensity β based on the normalization parameter α may be preset on themobile phone 100, and the calculation formula may be, for example:

Figure 416836DEST_PATH_IMAGE001
(2)
Figure 416836DEST_PATH_IMAGE001
(2)

其中,α为偏离角度γ转换得到的归一化参数,α可以通过上述关系式(1)转换得到;β表示振动强度。Among them, α is the normalized parameter obtained by the conversion of the deviation angle γ, and α can be obtained by conversion from the above relational formula (1); β represents the vibration intensity.

可以理解,上述公式(2)所确定的振动强度可以不是实际的振动强度值,而是相对于手机100可以达到的最大振动强度或者额定振动强度值的系数。例如,β=0时,手机100不振动;β=0.5时,手机100以最大振动强度的0.5倍进行振动;β=1时,手机100以最大振动强度保持振动。It can be understood that the vibration intensity determined by the above formula (2) may not be an actual vibration intensity value, but a coefficient relative to the maximum vibration intensity or rated vibration intensity value that can be achieved by themobile phone 100 . For example, when β=0, themobile phone 100 does not vibrate; when β=0.5, themobile phone 100 vibrates at 0.5 times the maximum vibration intensity; when β=1, themobile phone 100 keeps vibrating at the maximum vibration intensity.

参考上述图7所示,手机100所发出的β强度的振动提醒,可以通过左侧马达发出振动、也可以通过右侧马达发出振动。手机100可以设置如果偏离角度为正值,则手机100的右侧马达振动;如果偏离角度为负值,则手机100的左侧马达振动。Referring to the above shown in FIG. 7 , the vibration reminder of β intensity issued by themobile phone 100 can be vibrated by the left motor or by the right motor. Themobile phone 100 can be configured that if the deviation angle is a positive value, the motor on the right side of themobile phone 100 vibrates; if the deviation angle is a negative value, the motor on the left side of themobile phone 100 vibrates.

可以理解,基于检测到的偏离角度确定相应振动强度,进行的振动提醒,可以在用户导航过程中一直持续,偏离角度的大小不同,相应的振动强度也会有明显差异。参考图8所示,基于上述公式(2)可以确定振动强度β随偏离角度的归一化参数α的变化曲线,所呈现的规律是:α在(0,0.5)的数值区间内增加时,β的变化幅度较大,α越接近于0,β的变化幅度越大;α越接近于1,β的变化幅度越小,逐渐趋于一个稳定的振动强度值。如此,手机100可以在检测到超过预设角度范围的偏离角度时,能够以明显的振动强度变化引起用户注意;而当用户继续偏离导航轨迹引导方向时,手机100可以保持较强的振动强度,提醒用户更正行进方向,此时用户也可以操作手机100结束导航、或者修改设置的初始目的地,来解除当前的振动。It can be understood that the corresponding vibration intensity is determined based on the detected deviation angle, and the vibration reminder can be continued during the user's navigation process, and the corresponding vibration intensity will also be significantly different depending on the deviation angle. Referring to Figure 8, based on the above formula (2), the change curve of the normalized parameter α of the vibration intensity β with the deviation angle can be determined. The variation range of β is larger, the closer α is to 0, the larger the variation range of β; the closer α is to 1, the smaller the variation range of β, and gradually tends to a stable vibration intensity value. In this way, when themobile phone 100 detects the deviation angle exceeding the preset angle range, themobile phone 100 can attract the user's attention with an obvious change in the vibration intensity; and when the user continues to deviate from the guidance direction of the navigation track, themobile phone 100 can maintain a strong vibration intensity, The user is reminded to correct the travel direction. At this time, the user can also operate themobile phone 100 to end the navigation, or modify the initial destination set to cancel the current vibration.

405:在预设的距离范围内,识别到预设的目的地、途经地或属于预设的待提示地点的类型的待提示地点。405 : Within a preset distance range, identify a preset destination, a passing place, or a place to be prompted that belongs to the type of the preset place to be prompted.

示例性地,用户手持手机100导航行进的过程中,手机100可以基于实时获取的当前位置定位信息,手机100所安装的地图应用还可以提供标记有各个地点位置信息的地图数据等。手机100可以基于当前位置定位信息以及目的地或属于预设的待提示地点类型的各个待提示地点的位置信息,计算当前位置到目的地或各个待提示地点的距离,以确定目的地或各个待提示地点是否在当前位置的预设距离范围内。在另一些实施例中,手机100也可以基于当前位置定位信息遍历预设距离范围内的各个地点的相关描述信息,例如该地点的标记名称、标记类型等信息,并与用于预设的待提示地点的类型或名称进行比对,从而确定预设距离范围内是否有属于用户指定类型的待提示地点,在此不做限制。其中,预设距离范围例如可以方圆500米范围内,或者方圆100米范围内等,在此不做限制。Exemplarily, during the navigation process of the user holding themobile phone 100, themobile phone 100 may locate information based on the current location acquired in real time, and the map application installed on themobile phone 100 may also provide map data marked with the location information of various locations. Themobile phone 100 can calculate the distance from the current location to the destination or each to-be-reported location based on the current location positioning information and the destination or the location information of each to-be-reported location belonging to the preset to-be-reported location type, so as to determine the destination or each to-be-reported location. Indicates whether the location is within a preset distance from the current location. In other embodiments, themobile phone 100 may also traverse the relevant description information of each place within the preset distance range based on the current location positioning information, such as the tag name, tag type and other information of the place, and compare the information with the preset waiting list. The types or names of the reminder locations are compared to determine whether there is a location to be prompted of the type specified by the user within the preset distance range, which is not limited here. The preset distance range may be, for example, within a radius of 500 meters, or within a radius of 100 meters, etc., which is not limited herein.

例如,预设的需要提醒的待提示地点的类型是公共厕所,则当手机100检测到当前位置的方圆500米距离范围内有公共厕所时,则可以执行下述步骤406,产生对应于该待提示地点的类型对应设置的振动模式下的振动提醒。For example, if the preset type of the place to be reminded is a public toilet, when themobile phone 100 detects that there is a public toilet within a radius of 500 meters from the current location, the followingstep 406 can be executed to generate a corresponding The type of reminder location corresponds to the vibration reminder in the set vibration mode.

可以理解,如果当前位置的预设距离范围内识别到多个待提示地点,并且这些待提示地点均属于用户预设的需要提醒的待提示地点的类型,此时手机100上还可以预设针对识别到的多个待提示地点的选择策略,以从识别到的多个待提示地点中选择一个地点向用户进行振动提醒或语音提醒,而其他待提示地点则仅在手机100屏幕所显示的导航地图上。可以理解,手机100运行地图应用所显示的界面上,可以显示当前位置所在区域或所在城市的地图,该地图上显示地图应用基于用户输入的目的地和/或途经地所确定的导航轨迹,因此,在本申请实施例中,手机100运行地图应用所显示的界面上显示的地图也可以描述为导航地图,该导航地图显示相应导航轨迹的地图。It can be understood that, if multiple locations to be prompted are identified within the preset distance of the current location, and these locations to be prompted belong to the types of places to be prompted that need to be reminded preset by the user, themobile phone 100 can also be preset for The selection strategy of the identified multiple places to be reminded, to select one place from the multiple identified places to be reminded to give a vibration reminder or voice reminder to the user, while other places to be reminded are only displayed on the screen of themobile phone 100 Navigation on the map. It can be understood that, on the interface displayed by themobile phone 100 running the map application, a map of the region or city where the current location is located can be displayed, and the map application based on the destination and/or the route of the route determined by the user input is displayed on the map. Therefore, , in this embodiment of the present application, the map displayed on the interface displayed by themobile phone 100 running the map application may also be described as a navigation map, and the navigation map displays a map of a corresponding navigation track.

作为示例,手机100上的预设选择策略例如可以是就近选择策略,该就近选择策略例如可以从识别到的多个待提示地点中,筛选出与当前位置距离最近的待提示地点进行振动提醒或语音提醒。在另一些实施例中,手机100上的预设选择策略例如也可以是评分选择策略,该评分选择策略例如可以从识别到的多个待提示地点中,筛选出这些待提示地点的历史评分数据中评分最高待提示地点进行振动提醒或语音提醒,在此不做限制。可以理解,上述历史评分数据可以在一定程度上表示用户对相应待提示地点的评价或者推荐程度,评分越高表明评价越高或者推荐程度越高。As an example, the preset selection strategy on themobile phone 100 may be, for example, a nearby selection strategy. For example, the nearby selection strategy may, for example, select a place to be reminded that is closest to the current position from a plurality of identified places to be reminded for vibrating reminder or Voice reminder. In other embodiments, the preset selection strategy on themobile phone 100 may be, for example, a score selection strategy, and the score selection strategy may, for example, filter out the historical score data of the places to be prompted from the identified multiple places to be prompted Vibration reminder or voice reminder for the place with the highest score to be reminded, there is no limit here. It can be understood that the above-mentioned historical score data can represent the user's evaluation or recommendation degree of the corresponding place to be prompted to a certain extent, and the higher the score, the higher the evaluation or the higher the recommendation degree.

406:以预设的振动模式,对所识别到的目的地、途经地或待提示地点进行振动提醒。406 : Perform a vibration reminder for the identified destination, passing place or place to be reminded in a preset vibration mode.

示例性地,手机100在确定预设的距离范围内存在属于预设的待提示地点的类型的待提示地点时,可以产生与该待提示地点对应设置的振动模式的振动,来提醒用户。可以理解,用户在操作手机100预设需要到达或者需要提醒的某个(或某类)待提示地点、以及各个(或各类)待提示地点对应的振动模式时,对于不同(类型)的待提示地点,可以预设不同的振动模式,以便于用户区分。如果用户仅设置一个(或一类)待提示地点,则用户为该类待提示地点选择一种振动模式即可。另外,手机100在确定预设的距离范围内存在预设的目的地时,即接近目的地时,也可以产生特定振动模式的振动,来提醒用户即将到达目的地。Exemplarily, when themobile phone 100 determines that there is a location to be prompted that belongs to the type of the preset location to be prompted within the preset distance range, themobile phone 100 may generate vibration in a vibration mode corresponding to the location to be prompted to remind the user. It can be understood that when the user operates themobile phone 100 to preset a certain (or a certain type) of places to be reminded that needs to be reached or to be reminded, and the vibration modes corresponding to each (or various types of) of places to be reminded, for different (types) of waiting Prompt location, different vibration modes can be preset for users to distinguish. If the user only sets one (or one type) of places to be prompted, the user may select a vibration mode for the type of places to be prompted. In addition, when it is determined that a preset destination exists within the preset distance range, that is, when themobile phone 100 is approaching the destination, it can also generate vibrations in a specific vibration pattern to remind the user that the destination is about to be reached.

可选地,手机100在识别到预设的目的地或待提示地点时,产生振动提醒的同时,还可以通过语音提醒,告知用户目的地或待提示地点位于当前位置的哪个方位、以及当前位置距离目的地或者待提示地点的距离等。Optionally, when themobile phone 100 recognizes the preset destination or the place to be prompted, while generating a vibration reminder, themobile phone 100 can also use a voice reminder to inform the user in which direction of the current location the destination or the place to be prompted is located, and the current location. The distance from the destination or the place to be prompted, etc.

可选地,手机100在识别到预设的目的地或待提示地点时,产生振动提醒的同时,所显示的导航界面还可以自动切换至实景界面,该实景界面上可以突出显示目的地或待提示地点上对应的建筑物等,对应的建筑物上还可以显示波形信号,该波形信号呈现的波动频率可以与手机100此时产生的振动的频率相呼应,从而引导用户准确前往目的地或待提示地点。可以理解,手机100也可以先显示提醒通知,询问是否切换到实景界面,待用户确认后,手机100再显示实景界面,引导用户前往目的地或待提示地点。Optionally, when themobile phone 100 recognizes a preset destination or a place to be prompted, while generating a vibration reminder, the displayed navigation interface can also be automatically switched to a live view interface, on which the destination or the place to be prompted can be highlighted. The corresponding building at the prompt location, etc., the corresponding building can also display a waveform signal, and the wave frequency presented by the waveform signal can echo the frequency of the vibration generated by themobile phone 100 at this time, so as to guide the user to accurately go to the destination or wait. Tip location. It can be understood that themobile phone 100 can also display a reminder notification first, asking whether to switch to the real scene interface, and after the user confirms, themobile phone 100 displays the real scene interface again to guide the user to the destination or the place to be prompted.

可选地,对于目的地或待提示地点,所设置的相应的振动模式,可以相同也可以不同。手机100上可以预设多种振动模式,供用户选择进行设置。Optionally, for the destination or the place to be prompted, the set corresponding vibration modes may be the same or different. A variety of vibration modes can be preset on themobile phone 100 for the user to choose and set.

图9根据本申请实施例示出了手机100上预设的不同振动模式的设置界面示意图。FIG. 9 shows a schematic diagram of a setting interface of different vibration modes preset on themobile phone 100 according to an embodiment of the present application.

如图9所示,手机100所显示的设置界面910上包括四种可以选择振动模式:模式1(弱-弱)、模式2(强-弱)、模式3(弱-强)、模式4(强-强),其中各振动模式下,强、弱的振动变化的持续时长和间隔时长例如均可以设定为1s,或者其他合理的时长,在此不做限制。如果用户为预设的待提示地点的类型设置了“模式1”,则当手机100在预设的距离范围内识别到属于该类型的待提示地点时,手机100可以以“模式1”对应的振动方式发出振动,即一次振动提醒为“弱振动1s-停止振动1s-弱振动1s”,间隔2s后,再重复一次“弱振动1s-停止振动1s-弱振动1s”,如此循环3次,以向用户提醒所识别到的待提示地点。As shown in FIG. 9 , the settinginterface 910 displayed on themobile phone 100 includes four selectable vibration modes: mode 1 (weak-weak), mode 2 (strong-weak), mode 3 (weak-strong), and mode 4 ( Strong-strong), wherein in each vibration mode, the duration and interval of strong and weak vibration changes can be set to, for example, 1s, or other reasonable durations, which are not limited here. If the user has set "Mode 1" for the preset type of the location to be prompted, when themobile phone 100 recognizes the location to be prompted belonging to this type within the preset distance range, themobile phone 100 can use "Mode 1" corresponding to The vibration mode emits vibration, that is, a vibration reminder is "weak vibration 1s-stop vibration 1s-weak vibration 1s", after an interval of 2s, repeat "weak vibration 1s-stop vibration 1s-weak vibration 1s", and so on 3 times, to remind the user of the identified location to be reminded.

可以理解,手机100上可以对各类待提示地点的振动提醒预设有限次数,以避免对识别到的待提示地点进行持续振动提醒,而导致的干扰用户导航过程中在偏离导航轨迹引导方向时对应产生的振动提醒的问题。同时,手机100上可以设置对于识别到的待提示地点的振动提醒的优先级,高于偏离导航轨迹所对应的振动提醒的优先级。值得注意的时,对于待提示地点的振动提醒是按照对应设置的振动模式间断振动的提醒方式,而对于方向偏离的振动提醒,则是在确定偏离角度超过预设角度范围时持续振动的提醒方式。可以理解,对于方向偏离的振动提醒,振动的时长和振动幅度、以及停止振动的间隔时长等,均不是固定的,而是根据偏离角度的大小来决定;而对于待提示地点的振动提醒,则是有规律的,是由对应于各类待提示地点设置的振动模式来决定的。It can be understood that themobile phone 100 can preset a limited number of vibration reminders for various places to be prompted, so as to avoid continuous vibration reminders for the identified places to be prompted, which may interfere with the user's navigation process when deviating from the guidance direction of the navigation track. Corresponds to the generated vibration reminder problem. At the same time, themobile phone 100 may set the priority of the vibration reminder for the identified location to be prompted to be higher than the priority of the vibration reminder corresponding to the deviation from the navigation track. It is worth noting that the vibration reminder for the location to be reminded is a reminder method of intermittent vibration according to the corresponding vibration mode, and the vibration reminder of direction deviation is a reminder method of continuous vibration when the deviation angle is determined to exceed the preset angle range. . It can be understood that for the vibration reminder of direction deviation, the duration and amplitude of vibration, as well as the interval for stopping vibration, etc. are not fixed, but are determined according to the deviation angle; and for the vibration reminder of the place to be prompted, then It is regular and determined by the vibration patterns set corresponding to various locations to be prompted.

例如,可以对识别到的待提示地点,设置重复振动提醒3次,每次间隔2s。识别到待提示地点的同时如果检测到手机100的前端方向偏离了导航轨迹引导方向,则手机100先发出对应于待提示地点设置的振动模式相应的振动提醒,重复3次后,如果手机100确定此时前端方向仍偏离导航轨迹引导方向,则手机100可以发出与相应偏离角度对应的持续振动提醒,来提醒用户转回到导航轨迹引导方向上行进。For example, for the identified location to be reminded, it is possible to set repeated vibration reminders 3 times, with an interval of 2s each time. While identifying the location to be prompted, if it is detected that the front-end direction of themobile phone 100 deviates from the guidance direction of the navigation track, themobile phone 100 first sends out a vibration reminder corresponding to the vibration mode set corresponding to the location to be prompted. After repeating 3 times, if themobile phone 100 determines At this time, the front end direction still deviates from the guidance direction of the navigation track, and themobile phone 100 may issue a continuous vibration reminder corresponding to the corresponding deviation angle to remind the user to turn back to the guidance direction of the navigation track.

可以理解,上述图9所示的各个振动模式中的强、弱振动,可以通过手机100的全部或者部分马达发出振动实现,强、弱仅表示相对振感。也就是说,各个振动模式中的强、弱振动,可以是比偏离导航轨迹所对应的最大振动强度,更大、更小或者相同的振动强度,在此不做限制。It can be understood that the strong and weak vibrations in the respective vibration modes shown in FIG. 9 can be realized by all or part of the motors of themobile phone 100 emitting vibrations, and the strong and weak vibrations only represent relative vibration sensations. That is to say, the strong and weak vibrations in each vibration mode may be larger, smaller or the same vibration intensity than the maximum vibration intensity corresponding to the deviation from the navigation track, which is not limited herein.

可以理解,在另一些实施例中,预设的待提示地点的类型也可以是路口,以使手机100在预设的距离范围内识别到路口时,发出相应振动模式的振动,提醒用户注意安全通过路况较为复杂的路口。在此不做限制。It can be understood that, in other embodiments, the preset type of the location to be prompted can also be an intersection, so that when themobile phone 100 recognizes the intersection within the preset distance range, it emits vibrations in a corresponding vibration mode to remind the user to pay attention to safety. Pass through the intersections with more complicated road conditions. There are no restrictions here.

可选地,在识别到用户预设的某一类型的待提示地点时,手机100可以执行下述步骤407和408,确定用户是否需要临时切换目的地至当前识别到的待提示地点。Optionally, when a certain type of location to be prompted preset by the user is identified, themobile phone 100 may execute the followingsteps 407 and 408 to determine whether the user needs to temporarily switch the destination to the currently identified location to be prompted.

可选地,在识别到用户预设的中途需要到达的途经地时,手机100可以在执行本步骤406引导用户到达该途经地后,提醒用户已到达预设的途经地,或者将预设的途经地作为另一目的地,提醒用户已到达预设的一个目的地,也可以继续导航到预设的导航目的地,直至到达预设的目的地时,执行下述步骤409。Optionally, when recognizing the waypoint preset by the user that needs to be reached on the way, themobile phone 100 may remind the user to have reached the preset waypoint after performing thisstep 406 to guide the user to arrive at the waypoint, or set the preset waypoint. The passing place is used as another destination to remind the user that a preset destination has been reached, and the user can also continue to navigate to the preset navigation destination until the preset destination is reached, and the followingstep 409 is performed.

在另一些实施例中,手机100引导用户到达预设的途经地后,也可以继续导航至预设的目的地,并在执行本步骤406识别到预设的目的地后,提醒用户已到达目的地。在此不做限制。In other embodiments, after themobile phone 100 guides the user to the preset destination, themobile phone 100 may continue to navigate to the preset destination, and after performing thisstep 406 to identify the preset destination, remind the user that the destination has been reached land. There are no restrictions here.

407:检测到切换目的地的用户操作,将导航的目的地临时切换至所提示的待提示地点,并重新确定导航轨迹开始导航。407: Detecting a user operation of switching the destination, temporarily switching the navigation destination to the suggested location to be prompted, and re-determining the navigation track to start navigation.

示例性地,手机100上可以预设一种临时切换导航目的地的操作,该操作例如可以是摇晃手机或者双击手机100上的某个按键,例如双击开关机按钮等。当手机100识别到属于预设的待提示地点的类型的待提示地点并向用户提示该地点后,可以检测用户是否对手机100执行预设的操作。在另一些实施例中,手机100在识别到属于预设类型的待提示地点时,也可以通过语音提示用户可以如何操作将导航目的地临时切换至当前识别到的待提示地点,或者通过语音询问用户是否切换目的地,用户可以通过语音回复切换目的地或者不切换目的地,来控制将导航的目的地临时切换至所识别的待提示地点,在此不做限制。Exemplarily, an operation of temporarily switching the navigation destination may be preset on themobile phone 100, for example, the operation may be shaking the mobile phone or double-clicking a certain key on themobile phone 100, such as double-clicking the power-on/off button. After themobile phone 100 recognizes the location to be prompted that belongs to the type of the preset location to be prompted and prompts the user about the location, it can detect whether the user performs a preset operation on themobile phone 100 . In other embodiments, when themobile phone 100 recognizes the location to be prompted that belongs to a preset type, it can also prompt the user by voice how to temporarily switch the navigation destination to the currently recognized location to be prompted, or ask the user by voice Whether or not the user switches the destination, the user can control the temporary switching of the navigation destination to the identified location to be prompted by replying to switch the destination or not to switch the destination through a voice reply, which is not limited here.

其中,手机100可以在执行上述步骤405时,识别到属于预设的待提示地点的类型的待提示地点,此时手机100可以基于预设选择策略从所识别到的多个待提示地点中选择一个待提示地点,向用户提示。因此,手机100如果检测到用户切换目的地的操作,则可以确定该操作是将导航的目的地临时切换为向用户提示的待提示地点。Wherein, themobile phone 100 may recognize a location to be prompted that belongs to the type of the preset location to be prompted when performing theabove step 405, and at this time, themobile phone 100 may select from the identified multiple locations to be prompted based on a preset selection strategy A place to be prompted to prompt the user. Therefore, if themobile phone 100 detects the user's operation of switching the destination, it can be determined that the operation is to temporarily switch the navigation destination to the location to be prompted to be prompted to the user.

如果手机100在预设的有效时间内,检测到用户将导航的目的地临时切换至当前识别到的待提示地点,则手机100可以重新确定当前位置至该待提示地点的导航轨迹并进行导航。其中,预设的有效时间可以适应用户感知到手机100振动后,进行切换目的地的操作所需的时长设定。可以理解,在导航至该待提示地点的过程中,手机100可以继续执行上述步骤402至404的过程,基于实时检测到的偏离角度,以相应振动强度的持续振动来提醒用户,使用户能够按照导航轨迹准确到达目的地。在此不做赘述。If themobile phone 100 detects that the user temporarily switches the navigation destination to the currently identified location to be prompted within the preset valid time, themobile phone 100 can re-determine the navigation track from the current location to the location to be prompted and perform navigation. The preset valid time can be adapted to the time length setting required for the user to perform the operation of switching the destination after sensing the vibration of themobile phone 100 . It can be understood that in the process of navigating to the place to be prompted, themobile phone 100 can continue to perform the process of theabove steps 402 to 404, based on the deviation angle detected in real time, to remind the user with the continuous vibration of the corresponding vibration intensity, so that the user can follow the The navigation track accurately reaches the destination. I won't go into details here.

408:确定到达所提示的待提示地点,将目的地切回用户设置的初始目的地,并重新确定导航轨迹开始导航。408 : Determine to arrive at the suggested location to be prompted, switch the destination back to the initial destination set by the user, and re-determine the navigation track to start navigation.

示例性地,用户按照手机100重新规划的导航轨迹,行进至所提示的待提示地点后,手机100可以将目的地切回至用户初始设置的目的地,该初始目的地例如是上述步骤401中用户在手机100所显示的地图界面上输入的目的地。切回至初始目的地后,手机100可以重新规划当前位置至初始目的地的导航轨迹并进行导航。Exemplarily, after the user travels to the suggested location to be prompted according to the navigation track re-planned by themobile phone 100, themobile phone 100 can switch the destination back to the destination initially set by the user, for example, the initial destination in theabove step 401. The destination entered by the user on the map interface displayed on themobile phone 100 . After switching back to the original destination, themobile phone 100 can re-plan the navigation track from the current position to the original destination and perform navigation.

可以理解,在重新导航至用户设置的初始目的地的过程中,手机100可以继续执行上述步骤402至404的过程,基于实时检测到的偏离角度,以相应振动强度的振动提醒用户,使用户能够按照导航轨迹准确到达目的地。在此不做赘述。It can be understood that in the process of re-navigating to the initial destination set by the user, themobile phone 100 can continue to perform the process of theabove steps 402 to 404, and based on the deviation angle detected in real time, remind the user with the vibration of the corresponding vibration intensity, so that the user can Accurately reach the destination according to the navigation track. I won't go into details here.

409:到达目的地,导航结束。409: The destination is reached, and the navigation ends.

示例性地,在上述步骤401中用户输入设置的初始目的地,可以作为本次导航的最终目的地。手机100识别到用户设置的初始目的地时,可以停止振动提醒、退出导航界面、以及提醒用户已到达目的地等。即便手机100执行了上述步骤407至408,即检测到用户切换目的地的操作,将目的地临时切换至所提示的待提示地点,然后在识别到已到达该待提示地点之后,手机100还是可以将目的地切回至用户设置的初始目的地继续导航,直至识别到已到达目的地。Exemplarily, the initial destination input by the user in theabove step 401 can be used as the final destination of this navigation. When themobile phone 100 recognizes the initial destination set by the user, it can stop the vibration reminder, exit the navigation interface, and remind the user that the destination has been reached. Even if themobile phone 100 performs theabove steps 407 to 408, that is, it detects the user's operation of switching the destination, and temporarily switches the destination to the prompted location to be prompted, and then after recognizing that the location to be prompted has been reached, themobile phone 100 can still Switch the destination back to the initial destination set by the user and continue navigating until it is recognized that the destination has been reached.

可选地,手机100在识别到当前位置位于目的地的周围某个预设距离范围内时,例如位于目的地的方圆500米范围内时,可以通过振动提醒用户,当前位置已接近目的地。另外,手机100在识别到当前位置位于目的地周围较小距离范围内时,例如位于目的地的方圆10米或者20米等范围内时,可以停止振动,并通过界面或者语音提示已到达目的地。在此不做限制。Optionally, when themobile phone 100 recognizes that the current location is within a preset distance range around the destination, for example, within a radius of 500 meters from the destination, themobile phone 100 may remind the user through vibration that the current location is close to the destination. In addition, when themobile phone 100 recognizes that the current position is within a small distance range around the destination, for example, when it is within a radius of 10 meters or 20 meters from the destination, themobile phone 100 can stop the vibration and notify the destination through the interface or voice. . There are no restrictions here.

可以理解,在手机100执行上述步骤401至408的过程中,如果手机100检测到用户结束导航的操作,例如用户在上述图5所示的导航界面510上点击退出按钮514以结束导时,手机100也可以执行本步骤409,结束本次导航。It can be understood that when themobile phone 100 performs theabove steps 401 to 408, if themobile phone 100 detects the operation of the user to end the navigation, for example, when the user clicks theexit button 514 on thenavigation interface 510 shown in FIG. 100 may also execute thisstep 409 to end this navigation.

可以理解,上述步骤401至409的执行过程,并不限于图4所示各步骤的执行顺序,在另一些实施例中,例如上述步骤402至404,既可以在上述步骤401之后实施,也可以在上述步骤407之后实施,还可以在上述步骤408之后实施,在此不做限制。It can be understood that the execution process of theabove steps 401 to 409 is not limited to the execution order of the steps shown in FIG. 4 . In other embodiments, for example, theabove steps 402 to 404 can be executed after theabove step 401, or can be The implementation is performed after the above-mentionedstep 407, and it can also be implemented after the above-mentionedstep 408, which is not limited here.

图10根据本申请实施例示出了手机100实施导航方法时的一种执行逻辑示意图。可以理解,图10所示的执行逻辑中各步骤执行主体,均为手机100,以下介绍图10所示各步骤时,不再重复描述各步骤的执行主体。FIG. 10 shows a schematic diagram of execution logic when themobile phone 100 implements the navigation method according to an embodiment of the present application. It can be understood that the execution subjects of each step in the execution logic shown in FIG. 10 are all themobile phone 100. When the steps shown in FIG. 10 are described below, the execution subjects of each step will not be described repeatedly.

如图10所示,手机100实施本申请实施例所提供的导航方法的过程中,按照时序所执行的流程包括以下步骤:As shown in FIG. 10 , in the process that themobile phone 100 implements the navigation method provided by the embodiment of the present application, the process executed according to the time sequence includes the following steps:

1001:开始导航。1001: Start navigation.

示例性地,用户可以操作手机100输入目的地、输入待提示地点的类型以及设置识别到该类待提示地点时对应采用的振动模式等,具体可以参考上述步骤401中相关描述,在此不做赘述。Exemplarily, the user can operate themobile phone 100 to input the destination, input the type of the place to be prompted, and set the vibration mode used when identifying the place to be prompted, etc. For details, refer to the relevant description in theabove step 401, which is not described here. Repeat.

1002:判断前端方向偏离角度是否超过预设角度范围。若判断结果为是,则执行步骤1003,判断偏离方向;若判断结果为否,则重复执行本步骤1002,判断下一时刻手机100的前端方向是否超过预设角度范围。1002: Determine whether the deviation angle of the front end direction exceeds a preset angle range. If the determination result is yes,step 1003 is performed to determine the deviation direction; if the determination result is no, thisstep 1002 is repeated to determine whether the front end direction of themobile phone 100 exceeds the preset angle range at the next moment.

示例性地,手机100可以基于传感器检测数据确定前端方向,并将所确定的前端方向与导航轨迹引导方向进行比较,确定二者之间的夹角大小作为偏离角度,再判断该偏离角度是否超过预设角度范围,具体可以参考上述步骤402和403中相关描述,在此不做赘述。Exemplarily, themobile phone 100 may determine the front-end direction based on the sensor detection data, compare the determined front-end direction with the guidance direction of the navigation track, determine the size of the included angle between the two as the deviation angle, and then determine whether the deviation angle exceeds For the preset angle range, reference may be made to the relevant descriptions in the foregoingsteps 402 and 403 for details, which will not be repeated here.

1003:判断前端方向是否向左偏离。若判断结果为是,则执行步骤1004使右侧马达振动;若判断结果为否,则执行步骤1005,继续判断手机100前端方向的偏离方向。1003: Determine whether the front end direction deviates to the left. If the determination result is yes, executestep 1004 to vibrate the right motor; if the determination result is no, executestep 1005 to continue to determine the deviation direction of the front end direction of themobile phone 100 .

示例性地,参考上述步骤402中相关描述,手机100上可以预设前端方向向左偏离时的偏离角度为正,向右偏离时的偏离角度为负。因此,手机100可以根据偏离角度的正负来判断前端方向是否向左偏离。具体可以参考上述步骤402中相关描述,在此不做赘述。Exemplarily, referring to the relevant description in theabove step 402, themobile phone 100 may preset the deviation angle when the front end direction deviates to the left to be positive, and the deviation angle to deviate to the right is negative. Therefore, themobile phone 100 can determine whether the front end direction deviates to the left according to the positive or negative of the deviation angle. For details, reference may be made to the relevant description in the foregoingstep 402, which is not repeated here.

1004:右侧马达以相应的振动强度β振动。1004: The right motor vibrates with the corresponding vibration intensity β.

示例性地,手机100在执行上述步骤1003时确定前端方向向左偏离后,可以控制设置在手机100右侧的马达发出振动提示,以提醒用户可以向右转动,回到导航轨迹引导方向上行进。振动强度β可以基于此时手机100前端方向的偏离角度经归一化转换得到的归一化参数α来确定,具体可以参考上述步骤404中相关描述,在此不做赘述。Exemplarily, after themobile phone 100 determines that the front end direction deviates to the left when performing theabove step 1003, themobile phone 100 can control the motor arranged on the right side of themobile phone 100 to issue a vibration prompt to remind the user that the user can turn to the right and return to the direction of the navigation track. march. The vibration intensity β can be determined based on the normalization parameter α obtained by normalizing the deviation angle of the front end direction of themobile phone 100 at this time. For details, please refer to the relevant description in theabove step 404, which will not be repeated here.

可以理解,上述手机100右侧的马达中的“右侧”,以用户面向手机100的屏幕时,手机100与用户右侧相应的一侧,相应地,手机100左侧则是与用户左侧相对应的一侧。下文中,关于手机100左侧和手机100右侧的描述,与这里的描述意义相同,不再另行说明。It can be understood that the “right side” in the motor on the right side of themobile phone 100 is the side corresponding to the right side of themobile phone 100 when the user faces the screen of themobile phone 100, and correspondingly, the left side of themobile phone 100 corresponds to the left side of the user. the corresponding side. Hereinafter, the descriptions on the left side of themobile phone 100 and the right side of themobile phone 100 have the same meaning as the descriptions here, and will not be further described.

1005:判断前端方向是否向右偏离。若判断结果为是,则执行步骤1006使左侧马达振动;若判断结果为否,则执行步骤1007退出导航。1005: Determine whether the front end direction deviates to the right. If the judgment result is yes, executestep 1006 to vibrate the left motor; if the judgment result is no, executestep 1007 to exit the navigation.

示例性地,参考上述步骤402中相关描述,手机100上可以预设前端方向向左偏离时的偏离角度为正,向右偏离时的偏离角度为负。因此,手机100可以根据偏离角度的正负来判断前端方向是否向右偏离。具体可以参考上述步骤402中相关描述,在此不做赘述。Exemplarily, referring to the relevant description in theabove step 402, themobile phone 100 may preset the deviation angle when the front end direction deviates to the left to be positive, and the deviation angle to deviate to the right is negative. Therefore, themobile phone 100 can determine whether the front end direction deviates to the right according to the positive or negative of the deviation angle. For details, reference may be made to the relevant description in the foregoingstep 402, which is not repeated here.

可以理解,在另一些实施例中,手机100所实施的导航方法的执行逻辑也可以将上述步骤1003和1005的判断过程同步执行,即手机100执行完上述步骤1002之后,可以判断前端方向向左偏离还是向右偏离,如果判断向左偏离,则执行上述步骤1004;如果判断向右偏离,则执行下述步骤1006。在此不做限制。It can be understood that, in other embodiments, the execution logic of the navigation method implemented by themobile phone 100 may also execute the judgment process of theabove steps 1003 and 1005 synchronously, that is, after themobile phone 100 performs theabove step 1002, it can judge that the front-end direction is to the left Whether the deviation is still to the right, if it is judged that it deviates to the left, execute theabove step 1004; if it is judged that it deviates to the right, execute the followingstep 1006. There are no restrictions here.

1006:左侧马达以相应的振动强度β振动。1006: The left motor vibrates with the corresponding vibration intensity β.

示例性地,手机100在执行上述步骤1003时确定前端方向向右偏离后,可以控制设置在手机100左侧的马达发出振动提示,以提醒用户可以向左转动,回到导航轨迹引导方向上行进。振动强度β可以基于此时手机100前端方向的偏离角度经归一化转换得到的归一化参数α来确定,具体可以参考上述步骤404中相关描述,在此不做赘述。Exemplarily, after themobile phone 100 determines that the front end direction deviates to the right when performing theabove step 1003, themobile phone 100 can control the motor disposed on the left side of themobile phone 100 to issue a vibration prompt to remind the user that the user can turn to the left to return to the direction of the navigation track guidance. march. The vibration intensity β can be determined based on the normalization parameter α obtained by normalizing the deviation angle of the front end direction of themobile phone 100 at this time. For details, please refer to the relevant description in theabove step 404, which will not be repeated here.

1007:异常退出导航。1007: Abnormal exit navigation.

示例性地,手机100在检测到前端方向的偏离角度超过预设角度范围之后,如果执行上述步骤1003和1005时判断结果均为否,则表明手机100此时运行的地图应用可能出现了程序异常,或者说手机100执行本申请实施例所提供的导航方法对应的指令时出现了异常,此时手机100可以异常退出导航。手机100也可以显示异常通知,告知用户,在此不做赘述。Exemplarily, after themobile phone 100 detects that the deviation angle of the front end direction exceeds the preset angle range, if the judgment results of theabove steps 1003 and 1005 are both negative, it indicates that the map application running on themobile phone 100 at this time may have a program abnormality. , in other words, an exception occurs when themobile phone 100 executes the instruction corresponding to the navigation method provided in the embodiment of the present application, and themobile phone 100 can exit the navigation abnormally at this time. Themobile phone 100 may also display an abnormal notification to inform the user, which will not be repeated here.

1008:判断当前位置的预设距离范围内是否存在待提示地点。若判断结果为是,则执行步骤1009,发出振动提醒;若判断结果为否,则执行步骤1010,确定是否到达目的地。1008: Determine whether there is a location to be prompted within a preset distance range of the current location. If the judgment result is yes,step 1009 is executed to issue a vibration reminder; if the judgment result is no,step 1010 is executed to determine whether the destination has been reached.

示例性地,手机100在导航过程中,基于实时获取的当前位置的定位信息及属于预设的待提示地点的类型的各个待提示地点的位置信息,可以判断当前位置的预设距离范围内是否存在待提示地点,具体可以参考上述步骤405中相关描述,在此不做赘述。Exemplarily, during the navigation process of themobile phone 100, based on the positioning information of the current position acquired in real time and the position information of each to-be-prompted place belonging to the preset There is a location to be prompted. For details, refer to the relevant description in the foregoingstep 405, which will not be repeated here.

1009:控制马达以预设的振动模式振动预设次数。1009: Control the motor to vibrate a preset number of times in a preset vibration mode.

示例性地,手机100执行上述步骤1008时如果判断当前位置的预设距离范围内存在待提示地点,则可以控制马达发出振动提示,这种振动提示的重复次数可以预设,这种振动提示采用用户设置的振动模式,该振动模式可以是对应于预设的待提示地点的类型设置的振动模式。具体可以参考上述步骤406中相关描述,在此不做赘述。Exemplarily, when themobile phone 100 executes theabove step 1008, if it is determined that there is a place to be prompted within the preset distance range of the current position, the motor can be controlled to issue a vibration prompt, and the number of repetitions of the vibration prompt can be preset. The vibration mode set by the user, the vibration mode may be a vibration mode set corresponding to the type of the preset location to be prompted. For details, reference may be made to the relevant description in the foregoingstep 406, which is not repeated here.

可以理解,手机100以用户设置的振动模式发出振动提示时,如果用户操作手机100将导航目的地临时切换至所提示的待提示地点,则手机100可以响应于用户操作重新规划当前位置至待提示地点的导航轨迹,引导用户前往手机100所提示的待提示地点。具体可以参考上述步骤407至408的相关描述,在此不做赘述。It can be understood that, when themobile phone 100 sends out a vibration prompt in the vibration mode set by the user, if the user operates themobile phone 100 to temporarily switch the navigation destination to the prompt location to be prompted, themobile phone 100 can re-plan the current location to the prompt to be prompted in response to the user operation. The navigation track of the location guides the user to the location to be prompted prompted by themobile phone 100 . For details, reference may be made to the relevant descriptions of theabove steps 407 to 408, which are not repeated here.

1010:判断是否到达目的地。若判断结果为是,则执行步骤1011退出导航;若判断结果为否,则执行步骤1002,继续对检测到的偏离角度的方向进行判断。1010: Determine whether the destination is reached. If the judgment result is yes, executestep 1011 to exit the navigation; if the judgment result is no, executestep 1002 to continue judging the direction of the detected deviation angle.

示例性地,手机100可以基于定位系统所采集的当前位置定位信息以及从相应服务器获取的地图资源,确定是否到达用户输入的初始目的地。Exemplarily, themobile phone 100 may determine whether to reach the initial destination input by the user based on the current location positioning information collected by the positioning system and the map resources obtained from the corresponding server.

1011:正常退出导航。1011: Exit navigation normally.

示例性地,如果手机100确定已到达目的地,则可以结束本次导航,即正常退出导航。如果手机100确定尚未到达目的地,则可以继续获取传感器数据确定前端方向的偏离角度,并执行上述步骤1002。在此不做赘述。Exemplarily, if themobile phone 100 determines that the destination has been reached, the current navigation can be ended, that is, the navigation can be exited normally. If themobile phone 100 determines that the destination has not been reached, it may continue to acquire sensor data to determine the deviation angle of the front end direction, and execute theabove step 1002 . I won't go into details here.

图11根据本申请实施例示出了一种手机100实施导航方法所涉及的系统软件结构示意图。FIG. 11 shows a schematic structural diagram of a system software involved in implementing a navigation method on amobile phone 100 according to an embodiment of the present application.

如图11所示,手机100实施导航方法涉及:应用程序层(APP层)010、应用程序框架层(Framework,FWK层)020、硬件抽象层(Hardware Abstract Layer,HAL层)030、以及内核驱动层(Kernel层)040。As shown in FIG. 11 , the implementation of the navigation method on themobile phone 100 involves: an application layer (APP layer) 010, an application framework layer (Framework, FWK layer) 020, a hardware abstract layer (Hardware Abstract Layer, HAL layer) 030, and a kernel driver Layer (Kernel Layer) 040.

其中,应用程序层010包括地图应用,该地图应用包括UI界面011和逻辑控制015。其中,UI界面011包括:目的地输入框012、待提示地点输入框013和振动模式设置控件014,供用户进行相应输入或设置的操作。The application layer 010 includes a map application, and the map application includes a UI interface 011 and a logic control 015 . The UI interface 011 includes: a destination input box 012, a location to be prompted input box 013, and a vibration mode setting control 014, for the user to perform corresponding input or setting operations.

可以理解,上述目的地输入框012、途经地输入框013和振动模式设置控件014,例如可以分别是上述图3所示的地图界面310上的目的地输入框311、途经地输入框312和振动模式设置按钮313,在此不做赘述。It can be understood that the destination input box 012, the route input box 013 and the vibration mode setting control 014 can be, for example, thedestination input box 311, theroute input box 312 and the vibration mode on themap interface 310 shown in FIG. 3, respectively. Themode setting button 313 is not repeated here.

逻辑控制015包括导航模块016,该导航模块016可以用于确定导航轨迹,例如确定当前位置至用户输入的目的地之间的导航轨迹,或者确定当前位置至识别到的途经地之间的导航轨迹等。在另一些实施例中,导航模块016也可以基于下述应用程序框架层020的网络服务模块024向服务器请求包含相应导航轨迹的地图资源包,在此不做限制。The logic control 015 includes a navigation module 016, which can be used to determine a navigation trajectory, such as determining a navigation trajectory between the current location and a destination entered by the user, or determining the navigation trajectory between the current location and an identified waypoint Wait. In other embodiments, the navigation module 016 may also request a map resource package including a corresponding navigation track from the server based on the network service module 024 of the application framework layer 020 described below, which is not limited herein.

另外,导航模块016可以在地图应用检测到用户操作手机100将目的地切换至待提示地点时,可以将识别到的待提示地点设定为临时目的地,并根据该待提示地点的位置信息和手机100当前位置的定位信息,重新确定导航轨迹。In addition, when the map application detects that the user operates themobile phone 100 to switch the destination to the place to be prompted, the navigation module 016 can set the identified place to be prompted as a temporary destination, and according to the location information and The positioning information of the current position of themobile phone 100 is used to re-determine the navigation track.

应用程序框架层020包括振动服务模块021、传感器服务模块022、位置服务模块022以及网络服务模块024。The application framework layer 020 includes a vibration service module 021 , a sensor service module 022 , a location service module 022 and a network service module 024 .

其中,振动服务模块021可以用于提供相应强度、相应频率或者相应模式的振动服务,供应用程序层010的地图应用调用。该振动的振动强度既可以基于手机100检测到的前端方向偏离角度确定,也可以基于用户对待提示地点对应设置的振动模式来确定。该振动的振动频率可以基于用户对待提示地点对应设置的振动模式来确定。基于手机100检测到的前端方向偏离角度所确定的振动可以以一定频率保持,这种振动的触发和停止,可以基于是否检测到超过预设角度范围的偏离角度来决定。Wherein, the vibration service module 021 can be used to provide a vibration service of a corresponding intensity, a corresponding frequency or a corresponding mode, which can be called by the map application of the application layer 010 . The vibration intensity of the vibration may be determined based on the deviation angle of the front end direction detected by themobile phone 100, or may be determined based on the vibration mode corresponding to the location to be prompted by the user. The vibration frequency of the vibration may be determined based on the vibration mode corresponding to the location to be prompted by the user. The vibration determined based on the deviation angle of the front end direction detected by themobile phone 100 may be maintained at a certain frequency, and the triggering and stopping of the vibration may be determined based on whether the deviation angle exceeding the preset angle range is detected.

传感器服务模块022可以提供手机100的陀螺仪传感器180B或加速度传感器180C等的所采集的角度数据或加速度数据等,以供应用程序层010的地图应用以确定手机前端方向的偏离角度。The sensor service module 022 can provide the angle data or acceleration data collected by the gyro sensor 180B or the acceleration sensor 180C of themobile phone 100 for the map application of the application layer 010 to determine the deviation angle of the front end of the mobile phone.

位置服务模块023可以基于手机100上的GNSS等获取当前位置定位信息。The location service module 023 can obtain the current location positioning information based on the GNSS on themobile phone 100 and the like.

网络服务模块024可以用于向地图应用的服务器侧请求地图资源包,例如手机100所在城市的地图资源包。该网络服务模块024例如可以是上述图2所示的移动通信模块150或无线通信模块160等。The network service module 024 may be configured to request a map resource package from the server side of the map application, for example, a map resource package of the city where themobile phone 100 is located. The network service module 024 may be, for example, themobile communication module 150 or thewireless communication module 160 shown in FIG. 2 above.

地图应用的逻辑控制015则可以根据地图应用运行时获取的地图资源包,确定目的地的位置信息、途经地的位置信息以及属于预设的待提示地点的类型的各个待提示地点的位置信息等,以确定当前位置到目的地、途经地或者识别到的待提示地点的导航轨迹、以及计算当前位置到目的地或者用户设定的途经地或待提示地点之间的距离等。The logic control 015 of the map application can determine the location information of the destination, the location information of the passing place, and the location information of each to-be-prompted place belonging to the preset type of the to-be-prompted place according to the map resource package obtained when the map application is running. , to determine the navigation track from the current position to the destination, the passing place or the identified place to be prompted, and calculate the distance between the current position and the destination or the passing place or the place to be prompted set by the user, etc.

可以理解,安装在手机100的应用程序层010的地图应用,在运行时,可以从通过应用程序框架层020的网络服务模块024,向相应的服务器侧请求地图资源包括,该地图资源可以包括各个地理位置的经纬度数据、地理位置上标记的建筑、道路等分类信息、以及各个建筑或者道路的属性信息等,该属性信息可以用于区别建筑或者道路等的用途、所属信息等,例如厕所、商场、医院等,该属性信息还可以包括名称以及其他识别信息等,在此不做限制。It can be understood that the map application installed in the application layer 010 of themobile phone 100 can request map resources from the corresponding server side from the network service module 024 of the application framework layer 020 when running, and the map resources can include various Longitude and latitude data of geographic location, classification information such as buildings and roads marked on the geographic location, and attribute information of each building or road, etc. This attribute information can be used to distinguish the purpose and belonging information of buildings or roads, such as toilets, shopping malls, etc. , hospitals, etc., the attribute information may also include names and other identification information, etc., which are not limited here.

硬件抽象层030可以用于提供各种导航相关的硬件能力支持,供应用程序框架层020调用。例如,硬件抽象层030可以提供例如陀螺仪传感器180B或加速度传感器180C等传感器的数据采集能力,也可以提供CPU的运算能力以及GPU的图形处理能力等,还可以提供无线通信模块等提供的定位能力和通信能力等以及马达的振动能力等,具体地,手机100所具有的各种硬件能力,可以参考上述图2所示结构及相关描述,在此不做赘述。The hardware abstraction layer 030 can be used to provide various navigation-related hardware capability support, which can be called by the application framework layer 020 . For example, the hardware abstraction layer 030 can provide the data collection capability of sensors such as the gyroscope sensor 180B or the acceleration sensor 180C, the computing capability of the CPU, the graphics processing capability of the GPU, etc., and the positioning capability provided by the wireless communication module, etc. and communication capability, etc., and vibration capability of the motor. Specifically, for various hardware capabilities of themobile phone 100, reference may be made to the structure shown in FIG. 2 and related descriptions above, and details are not described here.

内核驱动层040可以包括传感器驱动、CPU驱动、GPU驱动、显示驱动等,可以为硬件抽象层030调用硬件能力提供驱动支持。The kernel driver layer 040 may include sensor drivers, CPU drivers, GPU drivers, display drivers, etc., and may provide driver support for the hardware abstraction layer 030 to invoke hardware capabilities.

可以理解,手机100响应于用户操作,启动运行应用程序层010的地图应用时,启动指令可以从应用程序层010经应用程序框架层020传到硬件抽象层030,以获取传感器、处理器、天线、通信模块等硬件能力支持,例如手机100所运行的地图应用基于实时的当前位置定位信息以及预设的待提示地点或目的地的位置信息,识别用户设置的某类待提示地点或目的地与当前位置之间的距离在预设距离范围内,此时需要通过预设的振动模式提醒用户,地图应用则可以通过应用程序框架层020的振动服务模块023调用硬件抽象层030提供的马达的振动能力,或者通过硬件抽象层030向内核驱动层040中对应于马达的硬件驱动发送振动指令,以控制马达产生相应振动。It can be understood that when themobile phone 100 starts the map application running the application layer 010 in response to the user operation, the startup instruction can be transmitted from the application layer 010 to the hardware abstraction layer 030 through the application framework layer 020 to obtain the sensor, processor, antenna, etc. , communication modules and other hardware capabilities, for example, the map application running on themobile phone 100 identifies a certain type of to-be-prompted location or destination set by the user based on the real-time current location positioning information and the preset location information of the location or destination to be prompted. The distance between the current positions is within the preset distance range. At this time, the user needs to be reminded through the preset vibration mode. The map application can call the vibration of the motor provided by the hardware abstraction layer 030 through the vibration service module 023 of the application framework layer 020. ability, or send a vibration command to the hardware driver corresponding to the motor in the kernel driver layer 040 through the hardware abstraction layer 030, so as to control the motor to generate corresponding vibration.

类似的,地图应用基于传感器服务模块022提供的传感器数据,在确定手机100的前端方向相对于导航轨迹引导方向存在超过预设角度范围的偏离角度时,可以通过应用程序框架层020的振动服务模块023调用硬件抽象层030提供的马达的振动能力,或者通过硬件抽象层030向内核驱动层040中对应于马达的硬件驱动发送振动指令。Similarly, the map application is based on the sensor data provided by the sensor service module 022. When it is determined that the front-end direction of themobile phone 100 has a deviation angle that exceeds the preset angle range with respect to the guidance direction of the navigation track, the vibration service module of the application framework layer 020 can use the vibration service module of the application framework layer 020. 023 invokes the vibration capability of the motor provided by the hardware abstraction layer 030, or sends a vibration instruction to the hardware driver corresponding to the motor in the kernel driver layer 040 through the hardware abstraction layer 030.

如此,本申请实施例所提供的导航方案,能够使用户无需频繁看手机便可准确到达目的地、途经地以及识别到的待提示地点等,从而提高用户导航行进过程中的安全性。In this way, the navigation solution provided by the embodiments of the present application can enable the user to accurately arrive at the destination, the passing place and the identified place to be prompted without frequently looking at the mobile phone, thereby improving the safety of the user during the navigation process.

基于上述图11所示的系统软件结构,下面结合附图,对本申请实施例所提供的导航方法实施过程中,手机100的各软件结构的交互流程进行具体介绍。Based on the system software structure shown in FIG. 11, the following describes the interaction flow of each software structure of themobile phone 100 in the implementation process of the navigation method provided by the embodiment of the present application with reference to the accompanying drawings.

图12根据本申请实施例示出了一种导航方法的实施过程中所涉及的手机100各软件结构之间的交互流程示意图。可以理解,手机100可以通过运行地图应用,来实施本申请实施例提供的导航方法。FIG. 12 shows a schematic diagram of an interaction flow between various software structures of themobile phone 100 involved in the implementation of a navigation method according to an embodiment of the present application. It can be understood that themobile phone 100 can implement the navigation method provided by the embodiment of the present application by running a map application.

如图12所示,该交互流程包括以下步骤:As shown in Figure 12, the interaction process includes the following steps:

1201:导航模块016检测手机本地不存在当前所在城市地图资源包。1201: The navigation module 016 detects that the current city map resource package does not exist locally on the mobile phone.

示例性地,手机100的应用程序层010运行地图应用时,该地图应用的导航模块016可以检测手机100的本地缓存中是否有当前所在城市的地图资源包。如果没有,则导航模块016可以执行下述步骤1202,获取所在城市的地图资源包。该地图资源包中可以包括用户设定的目的地、用户设置的途经地、属于用户预设的待提示地点的类型的各个待提示地点以及这些地点所属的城市区域内的其他地点(即地理位置的描述点)的名称、分类信息以及位置信息等,该位置信息例如是基于卫星定位数据(例如经纬度数据)确定的用于表示相应地点位置的信息。Exemplarily, when the application layer 010 of themobile phone 100 runs a map application, the navigation module 016 of the map application can detect whether there is a map resource package of the current city in the local cache of themobile phone 100 . If not, the navigation module 016 may execute the following step 1202 to obtain the map resource package of the city where it is located. The map resource package may include a destination set by the user, a route set by the user, various places to be prompted that belong to the type of places to be prompted preset by the user, and other places in the urban area to which these places belong (that is, the geographic location). Description point) name, classification information, and location information, for example, the location information is information that is determined based on satellite positioning data (such as longitude and latitude data) and is used to represent the location of the corresponding location.

1202:导航模块016通过网络服务模块024向服务器下载地图资源包。1202: The navigation module 016 downloads the map resource package to the server through the network service module 024.

示例性地,导航模块016在上述步骤1202中,检测到手机100的本地缓存中没有当前所在城市的地图资源包,则可以调用应用程序框架层020的网络服务模块024向地图应用对应的服务器请求该地图资源包,并下载或缓存到手机100的内存中。其中,该网络服务模块024例如可以是上述图2所示的移动通信模块150或无线通信模块160等,在此不做限制。Exemplarily, in the above step 1202, the navigation module 016 detects that there is no map resource package of the current city in the local cache of themobile phone 100, and can call the network service module 024 of the application framework layer 020 to request the server corresponding to the map application. The map resource package is downloaded or cached in the memory of themobile phone 100 . Wherein, the network service module 024 may be, for example, themobile communication module 150 or thewireless communication module 160 shown in FIG. 2, etc., which is not limited herein.

1203:目的地输入框012接收用户输入的目的地。1203: The destination input box 012 receives the destination input by the user.

示例性地,应用程序层010的UI界面011可以接收用户的输入,例如用户可以通过目的地输入框012输入目的地。目的地输入框012接收用户输入的目的地后,向导航模块016发送输入信息,该输入信息例如用户输入的目的地的名称等。Illustratively, the UI interface 011 of the application layer 010 may receive user input, for example, the user may input a destination through a destination input box 012 . After receiving the destination input by the user, the destination input box 012 sends input information to the navigation module 016, such as the name of the destination input by the user, and the like.

1204:导航模块016基于地图资源包,确定目的地的位置信息,并进行导航初始化操作。1204: The navigation module 016 determines the location information of the destination based on the map resource package, and performs a navigation initialization operation.

示例性地,上述步骤1202中,地图应用的导航模块016可以通过网络服务模块024向该地图应用连接的服务器侧请求获取所在城市的地图资源包,该地图资源包可以包括指定位置的位置信息以及该位置的相关描述信息等,该指定位置例如是用户输入的目的地。Exemplarily, in the above step 1202, the navigation module 016 of the map application may request the server side connected to the map application through the network service module 024 to obtain the map resource package of the city where it is located, and the map resource package may include the location information of the specified location and Relevant description information of the location, etc. The specified location is, for example, the destination input by the user.

应用程序层010的导航模块016基于地图资源包,确定目的地的位置信息时,可以触发进行导航初始化操作,该初始化操作包括向应用程序框架层020的各个服务模块注册监听器,具体可以参考下述步骤1205、1207以及1208中相关描述,在此不做赘述。When the navigation module 016 of the application layer 010 determines the location information of the destination based on the map resource package, it can trigger a navigation initialization operation, and the initialization operation includes registering the listener with each service module of the application framework layer 020. For details, please refer to the following The relevant descriptions in the above steps 1205, 1207 and 1208 will not be repeated here.

1205:导航模块016向位置服务模块023注册位置信息监听器并请求当前位置定位信息。位置服务模块023接收到该请求,向导航模块016返回当前位置的定位信息。1205: The navigation module 016 registers the location information listener with the location service module 023 and requests the current location positioning information. The location service module 023 receives the request, and returns the positioning information of the current location to the navigation module 016 .

示例性地,位置服务模块023可以基于手机100的GNSS等系统定位能力获取当前位置定位信息。该定位信息例如可以是基于GNSS等定位系统检测到的经纬度数据确定,在此不做赘述。Exemplarily, the location service module 023 may obtain the current location positioning information based on the system positioning capability of themobile phone 100 such as GNSS. For example, the positioning information may be determined based on latitude and longitude data detected by a positioning system such as GNSS, which will not be repeated here.

可以理解,在另一些实施例中,用户在地图应用的UI界面上还可以设置出发地,此种情形下,地图应用的导航模块016则可以基于从服务器侧获取的地图资源,来确定用户预设的出发地和目的地的位置信息。It can be understood that, in other embodiments, the user can also set the starting point on the UI interface of the map application. In this case, the navigation module 016 of the map application can determine the user's pre-determined location based on the map resources obtained from the server side. The location information of the designated origin and destination.

1206:导航模块016基于当前位置定位信息和目的地的位置信息,确定导航轨迹进行导航。1206: The navigation module 016 determines a navigation track for navigation based on the current location positioning information and the location information of the destination.

示例性地,地图应用的导航模块016可以基于当前位置和目的地的位置信息初始化导航轨迹这一过程即为位置服务模块023调用导航模块016生成导航轨迹的过程。Exemplarily, the navigation module 016 of the map application may initialize the navigation track based on the current location and the location information of the destination. This process is the process of invoking the navigation module 016 for the location service module 023 to generate the navigation track.

可以理解,导航模块016确定导航轨迹的过程中,可以基于所规划的导航轨迹和已获取的地图资源包,获取该导航轨迹附近的属于用户预设的待提示地点类型的各个待提示地点的位置信息。作为示例,导航模块016可以从所规划的导航轨迹上确定一些预设采集点,并以这些预设采集点为中心分别采集一定距离范围内的属于用户预设的待提示地点类型的各个待提示地点的位置信息。导航模块016在所规划的导航轨迹上,例如可以间隔1000米确定这些预设采集点,并将这些预设采集点的采集距离设定为1000米,如此手机100则可以采集到导航轨迹上任一点附近1000米范围内的待提示地点的位置信息,以供下述步骤1217中识别预设距离范围内的待提示地点时使用。在另一些实施例中,预设采集点的间隔距离以及采集距离的大小等也可以设定为其他合理的值,在此不做限制。It can be understood that in the process of determining the navigation track, the navigation module 016 can obtain the location of each location to be prompted that belongs to the type of location to be prompted preset by the user based on the planned navigation track and the acquired map resource package. information. As an example, the navigation module 016 may determine some preset collection points from the planned navigation track, and take these preset collection points as the center to respectively collect each to-be-prompted belonging to the user-preset location type to be prompted within a certain distance. Location information for the location. The navigation module 016 can determine these preset collection points on the planned navigation track, for example, at intervals of 1000 meters, and set the collection distance of these preset collection points to 1000 meters, so that themobile phone 100 can collect any point on the navigation track. The location information of the nearby places to be prompted within a range of 1000 meters is used for identifying the places to be prompted within the preset distance range in the following step 1217 . In other embodiments, the interval distance between the preset collection points and the size of the collection distance can also be set to other reasonable values, which are not limited herein.

1207:导航模块016向传感器服务模块022注册手机前端方向信息监听器。1207: The navigation module 016 registers the front-end direction information listener of the mobile phone with the sensor service module 022.

示例性地,上述步骤1204中,导航模块016执行的导航初始化操作,可以触发导航模块016向传感器服务模块022注册手机前端方向信息监听器。该监听器可以监听用于确定手机前端方向的传感器数据,所监听的传感器数据可以预设,该传感器数据例如可以是陀螺仪传感器180B采集的角速度数据以及加速度传感器180C采集的加速度数据等。Exemplarily, in the above step 1204, the navigation initialization operation performed by the navigation module 016 may trigger the navigation module 016 to register the front-end direction information listener of the mobile phone with the sensor service module 022. The listener can monitor sensor data used to determine the direction of the front end of the mobile phone, and the monitored sensor data can be preset. For example, the sensor data can be angular velocity data collected by the gyro sensor 180B and acceleration data collected by the acceleration sensor 180C.

1208:导航模块016向传感器服务模块022注册加速度信息监听器。1208: The navigation module 016 registers the acceleration information listener with the sensor service module 022.

示例性地,上述步骤1204中,导航模块016执行的导航初始化操作,可以触发导航模块016向传感器服务模块022注册加速度信息监听器。该监听器可以监听用于超过一定预设值的加速度数据,所监听的加速度数据用于确定用户是否进行了摇晃手机100的操作。可以理解,用户摇晃手机100时,例如加速度数据中的加速度方向会反复变化。可以理解,用户进行摇晃手机100的操作例如是在下述步骤1218中导航模块016调用振动服务模块021向马达发出振动指令,令马达发出振动提醒后,用户所进行的切换目的地的操作,具体可以参考下述步骤1219至1221中相关描述,在此不做赘述。Exemplarily, in the above step 1204, the navigation initialization operation performed by the navigation module 016 may trigger the navigation module 016 to register the acceleration information listener with the sensor service module 022. The monitor can monitor acceleration data for exceeding a certain preset value, and the monitored acceleration data is used to determine whether the user has performed an operation of shaking themobile phone 100 . It can be understood that when the user shakes themobile phone 100, for example, the acceleration direction in the acceleration data will change repeatedly. It can be understood that the operation of the user to shake themobile phone 100 is, for example, in the following step 1218, the navigation module 016 calls the vibration service module 021 to send a vibration command to the motor, and after the motor sends out a vibration reminder, the user performs the operation of switching the destination. Refer to the related descriptions in the following steps 1219 to 1221, which will not be repeated here.

1209:振动模式设置控件014接收用户设置的待提示地点的类型所对应的振动模式。1209: The vibration mode setting control 014 receives the vibration mode corresponding to the type of the location to be prompted set by the user.

示例性地,应用程序层010的UI界面011可以接收用户的输入,例如用户可以通过待提示地点输入框013预设待提示地点的类型,通过振动模式设置控件014设置需要提醒的某一类待提示地点的振动模式。振动模式设置控件014接收用户设置的振动模式后,向导航模块016发送设置信息,该设置信息例如可以包括用户设置的振动模式对应的标记信息等。该标记信息可以用于识别用户对某个待提示地点或某一类待提示地点设置的振动模式。手机100内预设的振动模式可以参考上述图9所示及相关描述,在此不再赘述。Exemplarily, the UI interface 011 of the application layer 010 can receive the user's input, for example, the user can preset the type of the place to be prompted through the input box 013 of the place to be prompted, and set a certain type of waiting to be reminded through the vibration mode setting control 014. Vibration patterns for cue locations. After receiving the vibration mode set by the user, the vibration mode setting control 014 sends setting information to the navigation module 016 , and the setting information may include, for example, tag information corresponding to the vibration mode set by the user. The marking information can be used to identify the vibration pattern set by the user for a certain place to be prompted or a certain type of place to be reminded. For the preset vibration mode in themobile phone 100, reference may be made to the above-mentioned FIG. 9 and related descriptions, and details are not repeated here.

1210:导航模块016基于地图资源包,确定各个待提示地点的位置信息,并保存至待提示地点列表。1210: The navigation module 016 determines the location information of each place to be prompted based on the map resource package, and saves it in the list of places to be prompted.

示例性地,上述步骤1202中,地图应用的导航模块016可以通过网络服务模块024向该地图应用连接的服务器侧请求获取所在城市的地图资源包,该地图资源包可以包括指定位置的位置信息以及该位置的相关描述信息等,该指定位置例如是用户设置的需要提醒的某个或某一类待提示地点。用户可以设置多个待提示地点或者多类待提示地点,导航模块016可以获取并保存用户操作设置的待提示地点的相关信息至预设的待提示地点列表或其他指定列表内,在此不做限制。Exemplarily, in the above step 1202, the navigation module 016 of the map application may request the server side connected to the map application through the network service module 024 to obtain the map resource package of the city where it is located, and the map resource package may include the location information of the specified location and Relevant description information of the location, etc. The specified location is, for example, a certain or a certain type of location to be reminded set by the user and needs to be reminded. The user can set multiple places to be prompted or multiple types of places to be prompted, and the navigation module 016 can acquire and save the relevant information of the places to be prompted set by the user's operation to the preset list of places to be prompted or other designated lists. limit.

1211:传感器服务模块022检测到手机前端方向相关数据改变,通知已注册的监听器。1211: The sensor service module 022 detects the change of the data related to the direction of the front end of the mobile phone, and notifies the registered listener.

示例性地,该手机前端方向相关数据例如可以是陀螺仪传感器180B采集的角速度数据以及加速度传感器180C采集的加速度数据等,手机100上可以标记手机前端方向相关数据,当传感器服务模块022检测到陀螺仪传感器180B采集的角速度数据以及加速度传感器180C采集的加速度数据等发生变化时,则可以通知已注册的监听器。其中,该已注册的监听器可以是上述步骤1207中导航模块016向传感器服务模块022注册的手机前端方向信息监听器。Exemplarily, the front-end direction-related data of the mobile phone may be, for example, the angular velocity data collected by the gyroscope sensor 180B and the acceleration data collected by the acceleration sensor 180C, etc. Themobile phone 100 may mark the front-end direction-related data of the mobile phone. When the angular velocity data collected by the sensor 180B and the acceleration data collected by the acceleration sensor 180C change, the registered listener can be notified. The registered listener may be the mobile phone front-end direction information listener registered with the sensor service module 022 by the navigation module 016 in the above step 1207 .

1212:传感器服务模块022向导航模块016发送采集到的传感器数据。1212: The sensor service module 022 sends the collected sensor data to the navigation module 016.

示例性地,传感器服务模块022包括陀螺仪传感器180B、加速度传感器180C等,传感器服务模块022所采集的传感器数据,可以包括陀螺仪传感器180B采集的角速度数据、以及加速度传感器180C采集的加速度数据等。传感器服务模块022可以基于预设的程序指令向导航模块016发送实时采集到的传感器数据,以用于确定手机100的前端方向。Exemplarily, the sensor service module 022 includes a gyro sensor 180B, an acceleration sensor 180C, and the like, and the sensor data collected by the sensor service module 022 may include angular velocity data collected by the gyro sensor 180B, acceleration data collected by the acceleration sensor 180C, and the like. The sensor service module 022 may send the sensor data collected in real time to the navigation module 016 based on preset program instructions, so as to determine the front end direction of themobile phone 100 .

1213:导航模块016基于传感器数据,确定手机前端方向的偏离角度超过预设角度范围。1213: The navigation module 016 determines, based on the sensor data, that the deviation angle of the front end direction of the mobile phone exceeds the preset angle range.

示例性地,地图应用的导航模块016可以基于传感器服务模块022发来的传感器数据,来确定手机前端方向,进而确定该方向相对于上述步骤1206规划的导航轨迹引导方向的偏离角度大小。Exemplarily, the navigation module 016 of the map application can determine the direction of the front end of the mobile phone based on the sensor data sent by the sensor service module 022, and then determine the deviation angle of the direction relative to the guidance direction of the navigation track planned in the above step 1206.

1214:导航模块016调用振动服务模块021向马达发出振动控制指令。1214: The navigation module 016 calls the vibration service module 021 to send a vibration control command to the motor.

示例性地,地图应用的导航模块016基于传感器数据,如果确定手机前端方向相对于导航轨迹引导方向的偏离角度大小,超过了预设角度范围,则可以通过调用振动服务模块022向马达发出振动控制指令。该调用过程例如可以是通过向振动服务模块022发送第一控制指令,指令振动服务模块022生成用于控制马达振动的第二控制指令,即振动控制指令。该振动控制指令可以包括需要产生的振动的振动频率、振动幅度等影响振动强度的参数、以及控制手机100的哪个位置的马达产生振动的控制数据等。其中振动强度可以基于所确定的偏离角度转换得到的归一化参数来确定,具体可以参考上述步骤404中相关描述,在此不做赘述。Exemplarily, based on the sensor data, the navigation module 016 of the map application determines that the deviation angle of the front-end direction of the mobile phone relative to the guidance direction of the navigation track exceeds the preset angle range, and can send vibration control to the motor by calling the vibration service module 022. instruction. The calling process may be, for example, by sending a first control instruction to the vibration service module 022, instructing the vibration service module 022 to generate a second control instruction for controlling the vibration of the motor, that is, a vibration control instruction. The vibration control instruction may include vibration frequency, vibration amplitude, and other parameters of the vibration to be generated that affect the vibration intensity, and control data for controlling which position of the motor on themobile phone 100 to generate vibration, and the like. The vibration intensity may be determined based on the normalized parameter obtained by converting the determined deviation angle. For details, reference may be made to the relevant description in theabove step 404, which will not be repeated here.

1215:位置服务模块023检测到手机当前位置改变,通知已注册的监听器。1215: The location service module 023 detects that the current location of the mobile phone changes, and notifies the registered listeners.

示例性地,该已注册的监听器可以是上述步骤1205中导航模块016向位置服务模块023注册的位置信息监听器。Exemplarily, the registered listener may be the location information listener registered with the location service module 023 by the navigation module 016 in the above step 1205 .

1216:位置服务模块023向导航模块016更新定位信息。1216: The location service module 023 updates the positioning information to the navigation module 016.

示例性地,位置服务模块023基于手机100的GNSS等定位系统采集实时的当前位置定位信息,以向导航模块016实时更新该定位信息。Exemplarily, the location service module 023 collects real-time current location positioning information based on a positioning system such as GNSS of themobile phone 100 to update the positioning information to the navigation module 016 in real time.

1217:导航模块016基于当前位置定位信息和待提示地点位置信息,识别预设距离范围内的待提示地点。1217: The navigation module 016 identifies the location to be prompted within a preset distance based on the current location positioning information and the location information of the location to be prompted.

示例性地,地图应用的导航模块016可以基于当前位置的定位信息、与待提示地点的位置信息,计算当前位置与各个待提示地点之间的距离,若该距离小于预设距离阈值,则可以确认该待提示地点位于当前位置的预设距离范围内。具体可以参考上述步骤405中相关描述,在此不做赘述。Exemplarily, the navigation module 016 of the map application can calculate the distance between the current location and each location to be prompted based on the positioning information of the current location and the location information of the location to be prompted. If the distance is less than the preset distance threshold, it can be Confirm that the location to be prompted is within the preset distance from the current location. For details, reference may be made to the relevant description in the foregoingstep 405, which is not repeated here.

1218:导航模块016调用振动服务模块021向马达发出振动控制指令。1218: The navigation module 016 calls the vibration service module 021 to issue a vibration control command to the motor.

示例性地,地图应用的导航模块016如果确定预设的待提示地点在当前位置的预设距离范围内,则可以调用振动服务模块021向马达发出振动控制指令。该调用过程例如可以是通过向振动服务模块022发送第一控制指令,指令振动服务模块022生成用于控制马达振动的第二控制指令,即振动控制指令。该振动控制指令可以包括需要产生的振动所采用的振动模式,该振动模式例如可以是上述步骤1209中,振动模式设置控件014接收的用户对预设的待提示地点的类型对应设置的振动模式。用户预设待提示地点的类型以及相应振动模式的过程,具体可以参考上述步骤406中相关描述,在此不再赘述。Exemplarily, if the navigation module 016 of the map application determines that the preset location to be prompted is within a preset distance range of the current position, it can call the vibration service module 021 to send a vibration control instruction to the motor. The calling process may be, for example, by sending a first control instruction to the vibration service module 022, instructing the vibration service module 022 to generate a second control instruction for controlling the vibration of the motor, that is, a vibration control instruction. The vibration control instruction may include the vibration mode adopted by the vibration to be generated. For example, the vibration mode may be the vibration mode set by the user corresponding to the preset type of the location to be prompted and received by the vibration mode setting control 014 in the above step 1209. For the process of presetting the type of the location to be prompted and the corresponding vibration mode by the user, reference may be made to the relevant description in theabove step 406 for details, which will not be repeated here.

1219:传感器服务模块022检测到加速度数据变化,通知已注册的监听器。1219: The sensor service module 022 detects a change in the acceleration data and notifies the registered listener.

示例性地,该已注册的监听器可以是上述步骤1208中导航模块016向传感器服务模块022注册的加速度信息监听器。Exemplarily, the registered listener may be the acceleration information listener registered by the navigation module 016 with the sensor service module 022 in the above step 1208 .

1220:传感器服务模块022向导航模块016发送采集到的加速度数据。1220: The sensor service module 022 sends the collected acceleration data to the navigation module 016.

1221:导航模块016基于加速度数据,识别用户切换目的地的操作,将所提示的待提示地点作为临时目的地。1221: The navigation module 016 recognizes the user's operation of switching destinations based on the acceleration data, and uses the suggested location to be prompted as a temporary destination.

示例性地,用户可以在感知到手机100的马达对识别到的待提示地点的振动提醒后,可以进行预设的目的地切换操作,该切换操作例如可以是摇晃手机100。相应地,上述步骤1219中,传感器服务模块022则可以检测到加速度变化,并通知已注册的监听器。进而,传感器服务模块022执行上述步骤1220,向导航模块016发送采集到的加速度数据。导航模块016则可以根据所接收到的加速度数据,分析该数据特征是否满足手机100摇晃过程中对应的加速度数据特征,如果满足,则导航模块016确定识别到了用户摇晃手机100所进行的切换目的地的操作。具体可以参考上述步骤407中相关描述,在此不再赘述。Exemplarily, the user may perform a preset destination switching operation, such as shaking themobile phone 100 , after sensing the vibration reminder of the identified location to be prompted by the motor of themobile phone 100 . Correspondingly, in the above step 1219, the sensor service module 022 can detect the acceleration change and notify the registered listener. Further, the sensor service module 022 executes the above step 1220 to send the collected acceleration data to the navigation module 016 . The navigation module 016 can analyze whether the data feature satisfies the corresponding acceleration data feature during the shaking process of themobile phone 100 according to the received acceleration data, and if so, the navigation module 016 determines that the switching destination performed by the user shaking themobile phone 100 has been identified. operation. For details, reference may be made to the relevant description in the foregoingstep 407, which will not be repeated here.

1222:导航模块016向位置服务模块023请求当前位置定位信息。位置服务模块023基于请求,向导航模块016返回所请求的定位信息。1222: The navigation module 016 requests the location service module 023 for current location positioning information. The location service module 023 returns the requested positioning information to the navigation module 016 based on the request.

示例性地,导航模块016在上述步骤1221中基于加速度数据识别到用户切换目的地的操作时,可以向位置服务模块023请求手机100当前位置定位信息。Exemplarily, when the navigation module 016 recognizes the user's operation of switching the destination based on the acceleration data in the above step 1221, it may request the location service module 023 for the current location positioning information of themobile phone 100.

1223:导航模块016基于作为临时目的地的待提示地点位置信息和当前位置定位信息,规划导航轨迹进行导航。1223: The navigation module 016 plans a navigation track for navigation based on the location information of the location to be prompted as a temporary destination and the current location positioning information.

示例性地,临时目的地的位置信息即是所识别的待提示地点的位置信息,该位置信息可以在用户设置待提示地点的类型时,导航模块016基于获取的地图资源包中查询确定。地图应用的导航模块016基于位置服务模块023返回的当前位置定位信息以及临时目的地(即识别到的待提示地点)的位置信息,规划出当前位置到临时目的地的导航轨迹。Exemplarily, the location information of the temporary destination is the location information of the identified location to be prompted, and the location information can be determined by the navigation module 016 based on the acquired map resource package when the user sets the type of the location to be prompted. The navigation module 016 of the map application plans a navigation track from the current location to the temporary destination based on the current location positioning information returned by the location service module 023 and the location information of the temporary destination (that is, the identified location to be prompted).

1224:位置服务模块023检测到手机当前位置改变,通知已注册的监听器。1224: The location service module 023 detects that the current location of the mobile phone changes, and notifies the registered listeners.

示例性地,位置服务模块023可以根据实时获取的卫星定位数据确定当前位置的定位信息,该定位信息相对于上一时刻或上一个检测时间点确定的定位信息不同,则可以确定手机当前位置改变了,此时位置服务模块023可以通知已注册的监听器。其中,已注册的监听器可以是上述步骤1205中导航模块016向位置服务模块023注册的位置信息监听器。Exemplarily, the location service module 023 can determine the positioning information of the current position according to the satellite positioning data obtained in real time, and the positioning information is different from the positioning information determined at the last moment or the last detection time point, then it can be determined that the current position of the mobile phone changes. Now, the location service module 023 can notify the registered listeners. The registered listener may be the location information listener registered with the location service module 023 by the navigation module 016 in the above step 1205 .

1225:位置服务模块023向导航模块016更新定位信息。本步骤与上述步骤1216相同,可以参考上述步骤1216中相关描述,在此不做赘述。1225: The location service module 023 updates the positioning information to the navigation module 016. This step is the same as the above-mentioned step 1216, and reference may be made to the relevant description in the above-mentioned step 1216, which is not repeated here.

1226:导航模块016基于更新的定位信息,确定到达临时目的地。1226: The navigation module 016 determines that the temporary destination is reached based on the updated positioning information.

示例性地,地图应用的导航模块016可以基于位置服务模块023更新的当前位置定位信息,与上述步骤1213中用户操作切换的临时目的地(即识别到的待提示地点)的位置信息进行比较,来确定是否到达临时目的地。Exemplarily, the navigation module 016 of the map application may compare the current location positioning information updated by the location service module 023 with the location information of the temporary destination (that is, the identified location to be prompted) switched by the user operation in step 1213 above, to determine if the temporary destination has been reached.

1227:导航模块016基于更新的定位信息,确定到达目的地,导航结束。1227: The navigation module 016 determines that the destination is reached based on the updated positioning information, and the navigation ends.

示例性地,地图应用的导航模块016可以基于位置服务模块023更新的当前位置定位信息,与上述步骤1203中用户输入的目的地的位置信息进行比较,该目的地是本次导航的最终目的地。如果确定当前位置定位信息与该目的地的位置信息相匹配,则导航模块016确认到达目的地,结束本次导航。Exemplarily, the navigation module 016 of the map application can compare the current location positioning information updated by the location service module 023 with the location information of the destination input by the user in the above step 1203, and the destination is the final destination of this navigation. . If it is determined that the current location positioning information matches the location information of the destination, the navigation module 016 confirms that the destination has been reached, and ends this navigation.

可以理解,结束导航时,手机100的界面可以显示结束导航的通知,具体可以参考上述步骤409中相关描述,在此不做赘述。It can be understood that when the navigation is ended, the interface of themobile phone 100 may display a notification of the end of the navigation. For details, reference may be made to the relevant description in theabove step 409, which will not be repeated here.

1228:导航模块016向位置服务模块023注销位置信息监听器。1228: The navigation module 016 deregisters the location information listener from the location service module 023.

1229:导航模块016向传感器服务模块022注销手机前端方向信息监听器和加速度信息监听器。1229: The navigation module 016 deregisters the front-end direction information listener and acceleration information listener of the mobile phone from the sensor service module 022.

示例性地,地图应用的导航模块016在上述步骤1205、1207以及1208中注册的监听器无需使用,因此导航应用016可以执行上述步骤1228至1229注销所注册的监听器。Exemplarily, the listeners registered in the above steps 1205, 1207 and 1208 by the navigation module 016 of the map application do not need to be used, so the navigation application 016 can perform the above steps 1228 to 1229 to deregister the registered listeners.

可以理解,在另一些实施例中,手机100实施本申请实施例所提供的导航方法时,手机100中的软件结构之间的交互也可以采用不同于图12所示的其他流程实现,在此不做限制。It can be understood that, in other embodiments, when themobile phone 100 implements the navigation method provided by the embodiments of the present application, the interaction between the software structures in themobile phone 100 may also be implemented by other processes different from those shown in FIG. 12 . No restrictions.

图13根据本申请实施例示出了一种手机100的系统软件架构示意框图。FIG. 13 shows a schematic block diagram of a system software architecture of amobile phone 100 according to an embodiment of the present application.

手机100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明手机100的软件结构。The software system of themobile phone 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present invention take an Android system with a layered architecture as an example to illustrate the software structure of themobile phone 100 as an example.

分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and system libraries, and a kernel layer.

应用程序层可以包括一系列应用程序包。应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。可以理解,手机100所安装的地图和导航应用程序,所执行的功能,也可以集合在一个应用程序中,例如将地图和导航的相应功能集合在地图应用中,例如具有导航功能的高德™地图、百度™地图以及手机100系统所提供的地图应用等。The application layer can include a series of application packages. Application bundles can include applications such as camera, gallery, calendar, calling, maps, navigation, WLAN, Bluetooth, music, video, SMS, etc. It can be understood that the functions performed by the map and navigation applications installed on themobile phone 100 can also be integrated into one application, for example, the corresponding functions of the map and navigation are integrated into the map application, such as AutoNavi™ with the navigation function. Maps, Baidu™ Maps and map applications provided by themobile phone 100 system, etc.

应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications of the application layer. The application framework layer includes some predefined functions.

如图13所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 13, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.

内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.

视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.

电话管理器用于提供手机100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of themobile phone 100 . For example, the management of call status (including connecting, hanging up, etc.).

资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.

通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.

Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。Android Runtime includes core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.

应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.

系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL) and so on.

表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.

媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如: MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.

内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.

在说明书对“一个实施例”或“实施例”的引用意指结合实施例所描述的具体特征、结构或特性被包括在根据本申请实施例公开的至少一个范例实施方案或技术中。说明书中的各个地方的短语“在一个实施例中”的出现不一定全部指代同一个实施例。Reference in the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one example embodiment or technique disclosed in accordance with the embodiments of this application. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.

本申请实施例的公开还涉及用于执行文本中的操作装置。该装置可以专门处于所要求的目的而构造或者其可以包括被存储在计算机中的计算机程序选择性地激活或者重新配置的通用计算机。这样的计算机程序可以被存储在计算机可读介质中,诸如,但不限于任何类型的盘,包括软盘、光盘、CD-ROM、磁光盘、只读存储器(ROM)、随机存取存储器(RAM)、EPROM、EEPROM、磁或光卡、专用集成电路(ASIC)或者适于存储电子指令的任何类型的介质,并且每个可以被耦合到计算机系统总线。此外,说明书中所提到的计算机可以包括单个处理器或者可以是采用针对增加的计算能力的多个处理器涉及的架构。The disclosure of the embodiments of the present application also relates to a device for performing an operation in a text. This apparatus may be specially constructed for the required purposes or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored on a computer readable medium, such as, but not limited to, any type of disk, including floppy disks, optical disks, CD-ROMs, magneto-optical disks, read only memory (ROM), random access memory (RAM) , EPROM, EEPROM, magnetic or optical cards, application specific integrated circuits (ASICs), or any type of medium suitable for storing electronic instructions, and each may be coupled to a computer system bus. Furthermore, the computers referred to in the specification may include a single processor or may be architectures employing multiple processors for increased computing power.

本文所提出的过程和显示器固有地不涉及任何具体计算机或其他装置。各种通用系统也可以与根据本文中的教导的程序一起使用,或者构造更多专用装置以执行一个或多个方法步骤可以证明是方便的。在一下描述中讨论了用于各种这些系统的结构。另外,可以使用足以实现本申请实施例公开的技术和实施方案的任何具体编程语言。各种编程语言可以被用于实施本公开,如本文所讨论的。The processes and displays presented herein are not inherently related to any specific computer or other apparatus. Various general-purpose systems may also be used with programs in accordance with the teachings herein, or it may prove convenient to construct more specialized apparatus to perform one or more method steps. Architectures for various of these systems are discussed in the following description. In addition, any specific programming language sufficient to implement the techniques and implementations disclosed in the examples herein may be used. Various programming languages may be used to implement the present disclosure, as discussed herein.

另外,在本说明书所使用的语言已经主要被选择用于可读性和指导性的目的并且可能未被选择为描绘或限制所公开的主题。因此,本申请实施例公开旨在说明而非限制本文所讨论的概念的范围。Additionally, the language used in this specification has been principally selected for readability and instructional purposes and may not have been selected to delineate or limit the disclosed subject matter. Accordingly, the present disclosure of embodiments is intended to illustrate, but not to limit, the scope of the concepts discussed herein.

Claims (14)

Translated fromChinese
1.一种导航方法,应用于电子设备,其特征在于,所述方法包括:1. a navigation method, applied to electronic equipment, is characterized in that, described method comprises:接收用户的第一操作,确定第一导航轨迹,并且接收用户的第二操作,确定待提示地点的类型,其中所述第一操作为输入目的地进行导航的操作,所述用户的第二操作包括:输入所述待提示地点的类型和对应不同的待提示地点的类型的不同振动模式,并且所述目的地不属于所述待提示地点的类型;Receive the user's first operation, determine the first navigation track, and receive the user's second operation, determine the type of the location to be prompted, wherein the first operation is an operation of entering a destination for navigation, and the user's second operation Including: inputting the type of the place to be prompted and different vibration modes corresponding to different types of the place to be prompted, and the destination does not belong to the type of the place to be prompted;根据所述待提示地点的类型和所述第一导航轨迹,确定所述待提示地点的位置信息,其中,所述待提示地点的位置信息包括至少一个第一地点的位置信息,所述第一地点属于所述待提示地点的类型;Determine the location information of the location to be presented according to the type of the location to be presented and the first navigation track, wherein the location information of the location to be presented includes location information of at least one first location, the first location The location belongs to the type of the location to be prompted;获取第二位置信息,所述第二位置信息用于表示所述电子设备的当前位置;acquiring second location information, where the second location information is used to represent the current location of the electronic device;若所述第二位置信息与至少一个所述第一地点的位置信息所表示的位置的距离小于或等于第一阈值,则向用户提示至少一个所述第一地点位于附近。If the distance between the second location information and the location indicated by the location information of at least one of the first locations is less than or equal to a first threshold, the user is prompted that at least one of the first locations is nearby.2.根据权利要求1所述的方法,其特征在于,所述根据所述待提示地点的类型和所述第一导航轨迹,确定所述待提示地点的位置信息,包括:2 . The method according to claim 1 , wherein the determining the location information of the place to be prompted according to the type of the place to be prompted and the first navigation track comprises: 2 .确定位于所述第一导航轨迹上的多个预设采集点;determining a plurality of preset collection points located on the first navigation track;根据所述预设采集点的位置信息,从导航地图中选出所述待提示地点的位置信息,其中,所述待提示地点属于所述待提示地点的类型,并且所述待提示地点与至少一个所述预设采集点之间的距离小于或等于第二阈值,其中所述第二阈值大于或等于所述第一阈值。According to the location information of the preset collection point, the location information of the location to be prompted is selected from the navigation map, wherein the location to be prompted belongs to the type of the location to be prompted, and the location to be prompted is at least The distance between one of the preset collection points is less than or equal to a second threshold, wherein the second threshold is greater than or equal to the first threshold.3.根据权利要求1所述的方法,其特征在于,所述待提示地点的位置信息包括多个第一地点的位置信息,并且所述第二位置信息与所述多个第一地点的位置信息所表示的位置的距离小于或等于第一阈值;并且,3 . The method according to claim 1 , wherein the location information of the locations to be prompted comprises location information of multiple first locations, and the second location information is related to the locations of the multiple first locations. 4 . the distance of the location represented by the information is less than or equal to the first threshold; and,若所述第二位置信息与至少一个所述第一地点的位置信息所表示的位置的距离小于或等于第一阈值,则向用户提示至少一个所述第一地点位于附近,包括:If the distance between the second location information and the location indicated by the location information of at least one of the first locations is less than or equal to a first threshold, prompting the user that at least one of the first locations is nearby, including:根据预设选择策略,从多个所述第一地点中选择出第一类第一地点以第一方式进行提示,选择出第二类第一地点以第二方式进行提示。According to a preset selection strategy, a first type of first location is selected from the plurality of first locations for prompting in a first manner, and a second type of first location is selected for prompting in a second manner.4.根据权利要求3所述的方法,其特征在于,所述第一方式包括振动或语音提示中的一种,所述第二方式包括将所述第二类第一地点的位置显示在导航界面上。4 . The method according to claim 3 , wherein the first method comprises one of vibration or voice prompts, and the second method comprises displaying the location of the second type of first location in the navigation system. 5 . on the interface.5.根据权利要求3所述的方法,其特征在于,所述预设选择策略包括:5. The method according to claim 3, wherein the preset selection strategy comprises:确定所述第二位置信息与多个所述第一地点的位置信息所表示的位置的距离中的最小值,并将所述距离的最小值对应的第一地点确定为向用户提示的第一类第一地点;或者,Determine the minimum value among the distances between the second position information and the positions indicated by the position information of the plurality of first locations, and determine the first location corresponding to the minimum value of the distances as the first location to be prompted to the user. Class First Location; or,获取用户对各所述第一地点的历史评分数据,并将所述历史评分数据中的评分最高值对应的第一地点确定为向用户提示的第一类第一地点,其中所述历史评分数据用于描述用户对各个所述第一地点的推荐程度。Obtaining the user's historical rating data for each of the first locations, and determining the first location corresponding to the highest rating value in the historical rating data as the first type of first location prompted to the user, wherein the historical rating data It is used to describe the recommendation degree of the user to each of the first places.6.根据权利要求1所述的方法,其特征在于,所述振动模式的不同包括:振动频率、振动时长、以及振动幅度中的至少一项的不同。6 . The method according to claim 1 , wherein the difference in the vibration modes comprises: a difference in at least one of vibration frequency, vibration duration, and vibration amplitude. 7 .7.根据权利要求1所述的方法,其特征在于,还包括:7. The method of claim 1, further comprising:在第一预设时间内检测到用户修改导航目的地为所述第一地点的第三操作;A third operation of the user modifying the navigation destination to be the first location is detected within the first preset time;响应于用户的第三操作,将导航目的地由第二地点切换为所述第一地点,其中所述第二地点为所述第一导航轨迹的导航目的地。In response to the user's third operation, the navigation destination is switched from the second location to the first location, where the second location is the navigation destination of the first navigation track.8.根据权利要求7所述的方法,其特征在于,还包括:8. The method of claim 7, further comprising:检测到所述电子设备已到达所述第一地点,将导航目的地从所述第一地点改回所述第二地点。It is detected that the electronic device has reached the first location, and the navigation destination is changed from the first location back to the second location.9.根据权利要求1至8中任一项所述的方法,其特征在于,所述电子设备包括应用程序层、应用程序框架层以及硬件抽象层,其中所述应用程序层包括第一应用,所述应用程序框架层包括位置服务模块和振动服务模块;所述方法包括:9. The method according to any one of claims 1 to 8, wherein the electronic device comprises an application layer, an application framework layer and a hardware abstraction layer, wherein the application layer comprises a first application, The application framework layer includes a location service module and a vibration service module; the method includes:所述第一应用运行时响应于用户的第一操作,确定所述第一导航轨迹,并且响应于用户的第二操作,确定待提示地点的类型;When the first application is running, the first navigation track is determined in response to the user's first operation, and the type of the location to be prompted is determined in response to the user's second operation;所述第一应用根据所述待提示地点的类型和所述第一导航轨迹,确定所述待提示地点的位置信息;The first application determines the location information of the place to be prompted according to the type of the place to be prompted and the first navigation track;所述第一应用向所述位置服务模块请求所述第二位置信息;the first application requests the second location information from the location service module;所述第一应用基于所述位置服务模块返回的所述第二位置信息和所述待提示地点中的至少一个第一地点的位置信息,确定所述电子设备的当前位置与至少一个所述第一地点之间的距离小于或等于第一阈值,并生成向所述振动服务模块发送的第一控制指令;The first application determines, based on the second location information returned by the location service module and the location information of at least one first location among the locations to be prompted, the current location of the electronic device and at least one of the first locations. The distance between a location is less than or equal to a first threshold, and generating a first control instruction sent to the vibration service module;所述振动服务模块响应于所述第一控制指令,调用所述电子设备的硬件抽象层的振动能力产生振动,以向用户提示至少一个所述第一地点位于附近。The vibration service module, in response to the first control instruction, invokes the vibration capability of the hardware abstraction layer of the electronic device to generate vibration, so as to prompt the user that at least one of the first locations is nearby.10.根据权利要求9所述的方法,其特征在于,所述电子设备包括马达,所述硬件抽象层的振动能力由所述马达提供;并且,10. The method of claim 9, wherein the electronic device comprises a motor, and the vibration capability of the hardware abstraction layer is provided by the motor; and,所述振动服务模块响应于所述第一控制指令,调用所述硬件抽象层的振动能力产生振动,包括:The vibration service module, in response to the first control instruction, invokes the vibration capability of the hardware abstraction layer to generate vibration, including:所述振动服务模块响应于所述第一控制指令,生成向所述硬件抽象层发送的第二控制指令,所述第二控制指令用于指示所述硬件抽象层控制所述马达产生振动;In response to the first control instruction, the vibration service module generates a second control instruction sent to the hardware abstraction layer, where the second control instruction is used to instruct the hardware abstraction layer to control the motor to generate vibration;所述硬件抽象层响应于所述第二控制指令,通过所述电子设备的内核驱动层驱动所述马达振动。The hardware abstraction layer drives the motor to vibrate through the kernel driver layer of the electronic device in response to the second control instruction.11.根据权利要求10所述的方法,其特征在于,所述用户的第二操作包括:输入所述待提示地点的类型和对应不同的待提示地点的类型的不同振动模式,其中所述振动模式的不同包括:振动频率、振动时长、以及振动幅度中的至少一项的不同,并且,11. The method according to claim 10, wherein the second operation of the user comprises: inputting the type of the place to be prompted and different vibration modes corresponding to different types of the place to be prompted, wherein the vibration The difference in the modes includes a difference in at least one of the vibration frequency, the vibration duration, and the vibration amplitude, and,所述硬件抽象层响应于所述第二控制指令,通过所述电子设备的内核驱动层驱动所述马达产生振动,包括:The hardware abstraction layer drives the motor to generate vibration through the kernel driver layer of the electronic device in response to the second control instruction, including:所述硬件抽象层响应于所述第二控制指令,向所述电子设备的内核驱动层发送驱动指令和为所述待提示地点的类型预设的振动模式对应的振动参数,所述振动参数包括振动频率、振动时长、以及振动幅度中的至少一项;The hardware abstraction layer, in response to the second control instruction, sends a drive instruction and a vibration parameter corresponding to the vibration mode preset for the type of the place to be prompted to the kernel driver layer of the electronic device, and the vibration parameter includes At least one of vibration frequency, vibration duration, and vibration amplitude;所述内核驱动层基于所述振动参数,响应于所述驱动指令,驱动所述马达振动。The core drive layer drives the motor to vibrate in response to the drive command based on the vibration parameter.12.一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;所述一个或多个存储器存储有一个或多个程序,当一个或者多个程序被所述一个或多个处理器执行时,使得所述电子设备执行权利要求1至11中任一项所述的导航方法。12. An electronic device, comprising: one or more processors; one or more memories; the one or more memories stores one or more programs, when the one or more programs are stored by the When executed by one or more processors, the electronic device is caused to execute the navigation method according to any one of claims 1 to 11 .13.一种计算机可读存储介质,其特征在于,所述存储介质上存储有指令,所述指令在计算机上执行时使所述计算机执行权利要求1至11中任一项所述的导航方法。13. A computer-readable storage medium, characterized in that the storage medium has instructions stored thereon, and when the instructions are executed on a computer, the computer executes the navigation method according to any one of claims 1 to 11 .14.一种计算机程序产品,其特征在于,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现权利要求1至11中任一项所述的导航方法。14. A computer program product, characterized in that it comprises a computer program/instruction, when the computer program/instruction is executed by a processor, the navigation method according to any one of claims 1 to 11 is implemented.
CN202210097693.5A2022-01-272022-01-27 Navigation method, electronic device and storage mediumActiveCN114136308B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210097693.5ACN114136308B (en)2022-01-272022-01-27 Navigation method, electronic device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210097693.5ACN114136308B (en)2022-01-272022-01-27 Navigation method, electronic device and storage medium

Publications (2)

Publication NumberPublication Date
CN114136308A CN114136308A (en)2022-03-04
CN114136308Btrue CN114136308B (en)2022-06-07

Family

ID=80382195

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210097693.5AActiveCN114136308B (en)2022-01-272022-01-27 Navigation method, electronic device and storage medium

Country Status (1)

CountryLink
CN (1)CN114136308B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115291716A (en)*2022-07-012022-11-04腾讯科技(深圳)有限公司 Vibration prompting method, device, equipment, storage medium and product
CH721598A1 (en)*2024-02-192025-08-29Nooze Tech GUIDE DEVICE FOR WRISTWATCH

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2551640A1 (en)*2011-01-282013-01-30Rakuten, Inc.Device for providing route information, method for providing route information, program and information recording medium
CN110322067A (en)*2019-07-032019-10-11中山大学Location of mobile users prediction technique based on factor graph model
CN112880703A (en)*2021-02-192021-06-01腾讯科技(深圳)有限公司Navigation voice broadcast data generation method, device, medium and electronic equipment
CN113918837A (en)*2021-10-152022-01-11山东大学 Method and system for generating category representation of urban points of interest

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6587782B1 (en)*2000-03-142003-07-01Navigation Technologies Corp.Method and system for providing reminders about points of interests while traveling
US7565239B2 (en)*2005-05-062009-07-21Alpine Electronics, Inc.Method and apparatus for navigation system for searching selected type of information along route to destination
CN103913175B (en)*2013-01-092018-09-28阿尔派株式会社Navigation system and its interested site reminding method
CN105526944B (en)*2014-10-222019-10-01腾讯科技(深圳)有限公司Information cuing method and device
CN107862856B (en)*2017-09-202020-05-08华为技术有限公司Traffic information processing method and device
CN109900281A (en)*2017-12-082019-06-18北京搜狗科技发展有限公司Air navigation aid, device based on point of interest and the device for navigation
CN110906942A (en)*2018-09-142020-03-24上海擎感智能科技有限公司POI point reminding navigation method, system, storage medium and equipment
CN110595499A (en)*2019-09-262019-12-20北京四维图新科技股份有限公司 Lane change reminder method, device and system
CN112068796A (en)*2020-09-152020-12-11北京深睿博联科技有限责任公司 A kind of prompt method and device based on electronic map
CN113672139A (en)*2021-08-232021-11-19读书郎教育科技有限公司Intelligent watch capable of realizing position reminding and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP2551640A1 (en)*2011-01-282013-01-30Rakuten, Inc.Device for providing route information, method for providing route information, program and information recording medium
CN110322067A (en)*2019-07-032019-10-11中山大学Location of mobile users prediction technique based on factor graph model
CN112880703A (en)*2021-02-192021-06-01腾讯科技(深圳)有限公司Navigation voice broadcast data generation method, device, medium and electronic equipment
CN113918837A (en)*2021-10-152022-01-11山东大学 Method and system for generating category representation of urban points of interest

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"面向LBSN的兴趣点和路线推荐系统";明骞;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20180815(第8期);I138-933*

Also Published As

Publication numberPublication date
CN114136308A (en)2022-03-04

Similar Documents

PublicationPublication DateTitle
TWI410906B (en)Method for guiding route using augmented reality and mobile terminal using the same
CN102238282B (en)Mobile terminal capable of providing multiplayer game and operating method thereof
KR101502013B1 (en)Mobile terminal and method for providing location based service thereof
KR101604843B1 (en)Mobile terminal and operation control method thereof
EP2188715B1 (en)Communications apparatus, system and method of providing a user interface
CN109298904B (en)Information processing method, device, storage medium and calculating equipment
KR101625884B1 (en)Mobile terminal and operation control method thereof
US20130050131A1 (en)Hover based navigation user interface control
CN110274611B (en)Information display method, device, terminal and storage medium
CN111983559A (en) Indoor positioning and navigation method and device
CN114136308B (en) Navigation method, electronic device and storage medium
CN109813331B (en)Information point marking method, device, equipment and computer readable storage medium
CN113469360B (en)Reasoning method and device
CN110377195B (en)Method and device for displaying interaction function
CN111207768A (en)Information prompting method, device, equipment and storage medium for navigation process
CN114466102A (en)Method for displaying application interface, electronic equipment and traffic information display system
CN110991260B (en)Scene marking method, device, equipment and storage medium
CN111126995A (en) A payment method and electronic device
WO2022052928A1 (en)Application access method and related apparatus
CN114090140A (en)Interaction method between devices based on pointing operation and electronic device
CN114519935B (en) Road recognition method and device
WO2022142713A1 (en)Method and apparatus for monitoring vehicle driving information
CN112269939A (en) Scene search method, device, terminal, server and medium for automatic driving
CN111813322B (en)Storage pool creation method, device, equipment and storage medium
US20240308343A1 (en)Map information display method, electronic device, and medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CP03Change of name, title or address
CP03Change of name, title or address

Address after:Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after:Honor Terminal Co.,Ltd.

Country or region after:China

Address before:3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before:Honor Device Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp