The application provides a navigation app control method and related products. The method comprises the following steps: receiving the destination address input by the user, obtaining the first coordinate of the current location, generating the first path of the first coordinate and the destination address; extracting the user's alpha historical path, and comparing the alpha historical path with the first path one by one to determine the overlapping alpha overlapping subpath; and determining the alpha overlapping subpath; The same sub-paths in the overlapping sub-paths are divided into sub-path groups to get beta sub-path groups. From the beta sub-path groups, the gamma sub-path groups whose number of sub-paths is greater than the number threshold are selected. From the gamma sub-path groups, the first sub-path group with the longest distance between sub-paths is selected, and the first link corresponding to the end coordinates of the first sub-path contained in the first sub-path group is extracted to control the navigation ap. P closes between the first coordinate and the first link, and opens the navigation app between the first link and the destination address. The technical scheme provided in this application has the advantage of high user experience.
【技术实现步骤摘要】
导航app控制方法及相关产品
本申请涉及终端设备以及交通领域,具体涉及一种导航app控制方法及相关产品。
技术介绍
现有技术中,终端已经是用户使用最频繁的电子装置,例如,手机、车载终端、平板电脑等等设备。路径导航已经成为人们日常生活中最常用的功能,尤其对于驾驶员来说,其处于很多目的,均需要进行导航。现有的导航app无法通过自动识别线路来控制导航app,所以现有的导航app用户操作也不方便,影响用户体验度。申请内容本申请实施例提供了一种导航app控制方法及相关产品,可以实现终端对交通路况的自动分享,提高用户体验度。第一方面,本申请实施例提供一种导航app控制方法,所述方法包括如下步骤:接收用户输入的目的地址,获取当前位置的第一坐标,生成第一坐标与目的地址的第一路径;提取用户的α条历史路径,将α条历史路径与该第一路径逐一比对确定重叠的α个重叠子路径;所述α为大于等于2的整数;将α个重叠子路径中相同的子路径划分成子路径组得到β个子路径组,从β个子路径组中选取子路径数量大于数量阈值的γ个子路径组,从γ个子路径组中选取子路径距离最长的第一子路径组,提取第一子路径组中包含的第 ...
【技术保护点】
1.一种导航app控制方法,其特征在于,所述方法包括如下步骤:接收用户输入的目的地址,获取当前位置的第一坐标,生成第一坐标与目的地址的第一路径;提取用户的α条历史路径,将α条历史路径与该第一路径逐一比对确定重叠的α个重叠子路径;所述α为大于等于2的整数;将α个重叠子路径中相同的子路径划分成子路径组得到β个子路径组,从β个子路径组中选取子路径数量大于数量阈值的γ个子路径组,从γ个子路径组中选取子路径距离最长的第一子路径组,提取第一子路径组中包含的第一子路径的终点坐标对应的第一链路,β、γ均为大于等于1的整数,且α≥β≥γ;控制导航app在第一坐标到第一链路之间关闭,在第一链路 ...
【技术特征摘要】
1.一种导航app控制方法,其特征在于,所述方法包括如下步骤:接收用户输入的目的地址,获取当前位置的第一坐标,生成第一坐标与目的地址的第一路径;提取用户的α条历史路径,将α条历史路径与该第一路径逐一比对确定重叠的α个重叠子路径;所述α为大于等于2的整数;将α个重叠子路径中相同的子路径划分成子路径组得到β个子路径组,从β个子路径组中选取子路径数量大于数量阈值的γ个子路径组,从γ个子路径组中选取子路径距离最长的第一子路径组,提取第一子路径组中包含的第一子路径的终点坐标对应的第一链路,β、γ均为大于等于1的整数,且α≥β≥γ;控制导航app在第一坐标到第一链路之间关闭,在第一链路到目的地址之间开启导航app。2.根据权利要求1所述的方法,其特征在于,所述将α条历史路径与该第一路径逐一比对确定重叠的α个重叠子路径具体包括:提取α条历史路径中一条历史路径,将该一条历史路径与第一路径同时显示在导航地图中,获取导航地图中一条历史线路与第一路径重叠的线路,确定该线路为一条历史路径的一条重叠子路径,遍历α条历史路径得到α条重叠子路径。3.根据权利要求1所述的方法,其特征在于,所述提取用户的α条历史路径具体包括:识别用户的第一身份,提取与第一身份匹配的α条历史路径。4.根据权利要求1所述的方法,其特征在于,所述方法还包括:建立重叠子路径列表,将该第一子路径保存至该重叠子路径列表内。5.一种电子装置,其特征在于,所述电子装置包括:输入单元,用于接收用户输入的目的地址;定位单元,用于获取当前位置的第一...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。