Skip to content

Confusing onFasterRoute API #4233

Closed
@yunikkk

Description

@yunikkk

Currently faster route logic will fetch faster route every 5 minutes (customizable, but not less then 2 minutes), and determine that route is faster, if it's at least 10% (not customizable) faster than the current one.
Then, after 5 minutes when faster route is requested, there are two possible situations:

Couple of questions / notes regarding this:

  1. If user would like to still make use of it, even if we don't say new route is faster, they'll need to filter current route in some way (also, maybe compare it with the current RouteProgress), facing with the same complexities that we've dealt in Compare routes using step names #3301.
    What I would expect is that alternatives list should not contain the current route at all. Suppose we could filter it out from the alternatives.

  2. By the way why the minimum 2 minutes limit was introduced? It's a bit weird that setting this value less that 2 minutes will just crash the application in runtime without any prior warnings.

  3. Could we customize 10% limit when calculating logic of faster route? We've ended up implementing similar logic on our side since had a requirement to show any faster route, even 1 second faster than current.

cc @mapbox/navigation-android; @kmadsen since you've implemented #3301

Metadata

Metadata

Assignees

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