我的问题很简单,我计算了一条主要路线并将其添加到Sygic MapView中。我定义了startWay点和结束点。它运作完美。但是,当我开始导航时尝试更改为替代路线时,它无法完美地重新计算新路线。我用
remote: GitLab: You are not allowed to push code to protected branches on this project.
To https://gitlab.com/xyz/api_xyz.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/xyz/api_xyz.git'
检测我的位置变化并每次计算路线,但我认为这不是最佳选择:
func navigation(_ navigation: SYNavigation, didUpdate positionInfo: SYPositionInfo?) {