Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ext {
mapboxMapSdk : '6.5.0',
mapboxSdkServices : '4.0.0',
mapboxEvents : '3.2.0',
mapboxNavigator : '3.0.1',
mapboxNavigator : '3.1.1',
locationLayerPlugin: '0.8.1',
autoValue : '1.5.4',
autoValueParcel : '0.2.5',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ synchronized void updateRoute(String routeJson) {
}

synchronized NavigationStatus retrieveStatus(Date date) {
// We ask for a point slightly in the future to account for lag in location services
date.setTime(date.getTime() + 1500);
Copy link
Contributor

Choose a reason for hiding this comment

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

What about passing the lag as a parameter of retrieveStatus so it can be custom? And then we can add a new option in MapboxNavigationOptions with its corresponding default values (constant in NavigationConstants).

return navigator.getStatus(date);
}

Expand Down