mapbox / mapbox/mapbox-navigation-ios
[Bug]: LocationMatching return delay, time uncertain
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 918
- Forks
- 326
- Avg merge
- 1h 16m
- Merged PRs (30d)
- 3
Description
Mapbox Navigation SDK version
The version of Mapbox I am using is Map: 11.25.0, Navigation: 3.25.0, Search: 2.25.0
Steps to reproduce
The version of Mapbox I am using is Map: 11.25.0, Navigation: 3.25.0, Search: 2.25.0. After initiating real navigation, I found that self. mapboxNavigation? .navigation().routeProgress
.sink { status in
let matching = self.mapboxNavigation? .navigation().currentLocationMatching
print("routeProgress: (status != nil), locationMatching: (matching != nil)")
// . ..
}The callback surface of. store (in:&cancellable) will show that after real navigation is enabled, locationMatching is nil. After a period of time (time is not fixed, a few seconds for fast navigation and a few minutes for slow navigation), it returns a value. Is this related to GPS positioning? Or is it related to the internet? Is there any way to deal with this return delay?
Expected behavior
The version of Mapbox I am using is Map: 11.25.0, Navigation: 3.25.0, Search: 2.25.0. After initiating real navigation, I found that self. mapboxNavigation? .navigation().routeProgress
.sink { status in
let matching = self.mapboxNavigation? .navigation().currentLocationMatching
print("routeProgress: (status != nil), locationMatching: (matching != nil)")
// . ..
}The callback surface of. store (in:&cancellable) will show that after real navigation is enabled, locationMatching is nil. After a period of time (time is not fixed, a few seconds for fast navigation and a few minutes for slow navigation), it returns a value. Is this related to GPS positioning? Or is it related to the internet? Is there any way to deal with this return delay?
Actual behavior
The version of Mapbox I am using is Map: 11.25.0, Navigation: 3.25.0, Search: 2.25.0. After initiating real navigation, I found that self. mapboxNavigation? .navigation().routeProgress
.sink { status in
let matching = self.mapboxNavigation? .navigation().currentLocationMatching
print("routeProgress: (status != nil), locationMatching: (matching != nil)")
// . ..
}The callback surface of. store (in:&cancellable) will show that after real navigation is enabled, locationMatching is nil. After a period of time (time is not fixed, a few seconds for fast navigation and a few minutes for slow navigation), it returns a value. Is this related to GPS positioning? Or is it related to the internet? Is there any way to deal with this return delay?
Is this a one-time issue or a repeatable issue?
one-time
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the routeProgress Combine subscription and currentLocationMatching in the navigation API, using the reported Mapbox Map 11.25.0, Navigation 3.25.0, and Search 2.25.0 versions. Reproduce the delay during real navigation while checking whether GPS positioning or internet connectivity affects it. Done means the cause and expected behavior are established, with a documented or verified way to handle the initial nil value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100