Skip to content

[Bug]: LocationMatching return delay, time uncertain #4844

Description

@iOSQiaoBusi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions