Skip to content

Improve turn-by-turn navigation segment distance/time accuracy #21

@chrisduerr

Description

@chrisduerr

Currently when using turn-by-turn navigation the remaining time/distance displayed for the current segment is based on the percentage of nodes traveled. Since nodes in corners are far more dense than on straight lines, this is a very inaccurate approximation.

To improve the distance, we could in theory calculate the distance traveled in each node ourselves based on the distance between nodes. However the remaining travel time would still be incorrect since a single segment could have different speed limits.

One simple solution would be to keep the current approximation and just re-route every once in a while to update it, but it's probably a good idea to look at how other applications generally do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions