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

Use most recent raw Location when building snapped Location #1522

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

danesfeder
Copy link
Contributor

Fixes #1518

We can use the most recent raw Location update to build the snapped Location. With the current creation of the snapped location, we omit a lot of data that a developer may be looking for in the snapped location provided by the ProgressChangeListener.

Eventually, this can be provided by the NavigationStatus, but we can use this approach until that is added upstream.

cc @kevinkreiser

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

I've left a minor comment, not blocking the PR though :shipit:

@Override
public Location getSnappedLocation(Location location, RouteProgress routeProgress) {
// No impl
return location;
}

public Location getSnappedLocationWith(NavigationStatus status) {
return buildSnappedLocation(status);
public Location getSnappedLocationWith(NavigationStatus status, Location rawLocation) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be marked as SemVer.

@danesfeder danesfeder added the backwards incompatible Requires a SEMVER major version change. label Nov 12, 2018
@danesfeder danesfeder merged commit 8b018a0 into master Nov 12, 2018
@danesfeder danesfeder deleted the dan-snap-location-fix branch November 12, 2018 16:17
@Guardiola31337 Guardiola31337 mentioned this pull request Nov 30, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards incompatible Requires a SEMVER major version change. bug Defect to be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants