Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The NavigationService information is abnormal (导航服务信息显示异常) #14

Open
cqwanjiahao opened this issue Aug 2, 2023 · 2 comments

Comments

@cqwanjiahao
Copy link

English description:
Enter the start point and end point for simulated navigation, and execute the end navigation service when the simulated navigation reaches the end point.
Enter the same starting point and the same end point again for simulated navigation, simulate the navigation page, and the navigation data returns an exception (remaining distance, remaining time).
Sample code:
For the first simulated navigation, enter the starting point "Hubei University" and the end point "Wuhan Tiandi". At this time, the navigation data navigationService returns to normal, and the system didArrive callback is performed after reaching the end point.
func navigationViewController(_ navigationViewController: NavigationViewController, didArriveAt waypoint: Waypoint) -> Bool {} in the callback execution navigationViewController. NavigationService. Stop ()

Then simulate navigation for the second time, enter the starting point "Hubei University" and the end point "Wuhan Tiandi", and the navigation data navigationService returns an exception. The navigationService navigationService. RouteProgress. CurrentLegProgress. CurrentStepProgress. DistanceRemaining and navigationSer Vice. RouteProgress. DistanceRemaining return values are wrong.

简体中文描述:
输入起始点和终点进行模拟导航,当模拟导航到达终点后执行结束导航服务。
再次输入同样的起始点和同样的终点进行模拟导航,进行模拟导航页,导航数据返回异常(剩余距离、剩余时间)。
示例代码:
第一次模拟导航,输入起始点“湖北大学”,终点“武汉天地”,此时导航数据navigationService返回正常,到达终点后进行系统didArrive回调。
func navigationViewController(_ navigationViewController: NavigationViewController, didArriveAt waypoint: Waypoint) -> Bool {}在回调中执行navigationViewController.navigationService.stop()

然后第二次模拟导航,输入起始点“湖北大学”,终点“武汉天地”,此时导航数据navigationService返回异常,navigationService的navigationService.routeProgress.currentLegProgress.currentStepProgress.distanceRemaining和navigationService.routeProgress.distanceRemaining返回值都是错误的。

@cqwanjiahao
Copy link
Author

MapboxMaps', '10.14.0'
MapboxNavigation', '2.14.0'
MapboxGeocoder.swift'#, '0.14'

@mskurydin
Copy link
Member

This is a technical repo for integrating a native dependency through package managers.
The issue should be sent to https://github.com/mapbox/mapbox-navigation-ios
In any case, also pinged the right team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants