Skip to content

Make the location switch to map matching faster#6906

Merged
kmadsen merged 2 commits intomainfrom
km-faster-trip-session-switch
Jan 27, 2023
Merged

Make the location switch to map matching faster#6906
kmadsen merged 2 commits intomainfrom
km-faster-trip-session-switch

Conversation

@kmadsen
Copy link
Copy Markdown
Contributor

@kmadsen kmadsen commented Jan 27, 2023

Description

The ReplayRouteSession will resetTripSession when the route is cleared.

The ReplayHistorySession will restTripSession when the history file changes.

But there is no logic that exists when you go from a replay mode, into a regular gps following map matching mode. This pull request adds that, so that it will be faster to switch from replay to device map matching.

@github-actions
Copy link
Copy Markdown

Changelog

Features

Bug fixes and improvements

  • Make the location switch to map matching faster with MapboxTripStarter.enableMapMatching [#changes](https://github.com/mapbox/mapbox-navigation-android/pull/changes)

Known issues ⚠️

Other changes

Android Auto Changelog

Features

  • Added support for Junction Views. [#6849](https://github.com/mapbox/mapbox-navigation-android/pull/6849)

Bug fixes and improvements

  • Optimized SpeedLimitWidget memory usage. [#6859](https://github.com/mapbox/mapbox-navigation-android/pull/6859)

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 27, 2023

Codecov Report

Merging #6906 (020a917) into main (1a53d30) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #6906   +/-   ##
=========================================
  Coverage     72.74%   72.74%           
  Complexity     5614     5614           
=========================================
  Files           785      785           
  Lines         30310    30311    +1     
  Branches       3578     3578           
=========================================
+ Hits          22049    22050    +1     
  Misses         6828     6828           
  Partials       1433     1433           
Impacted Files Coverage Δ
...m/mapbox/navigation/core/trip/MapboxTripStarter.kt 85.71% <100.00%> (+0.15%) ⬆️

@kmadsen kmadsen merged commit b176096 into main Jan 27, 2023
@kmadsen kmadsen deleted the km-faster-trip-session-switch branch January 27, 2023 19:29
replayRouteSession = null
replayHistorySession.onDetached(mapboxNavigation)
mapboxNavigation.startTripSession()
mapboxNavigation.resetTripSession { }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not blocking. Is it expected?

Copy link
Copy Markdown
Contributor Author

@kmadsen kmadsen Jan 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blocking the upstream flow could provide better support for rapid type changes. this change was a quick fix for an issue

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

Successfully merging this pull request may close these issues.

3 participants