Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Speed for Instruction distance #8

Open
boldtrn opened this issue Aug 31, 2018 · 3 comments
Open

Speed for Instruction distance #8

boldtrn opened this issue Aug 31, 2018 · 3 comments
Labels
question Further information is requested

Comments

@boldtrn
Copy link
Member

boldtrn commented Aug 31, 2018

Currently, the instruction generation is only influenced by the distance of the instruction.

It would be interesting to consider the speed of the edge/instruction to improve timing. Slow roads might not need the 2km instruction (but then they are usually not that long anyway). On motorways or high speed roads, it might be a good idea to move the 2km instruction to 3km to give the user some more time to prepare.

@boldtrn boldtrn added the question Further information is requested label Aug 31, 2018
@devemux86
Copy link

It would be interesting to consider the speed of the edge/instruction to improve timing.

Consider the speed (which exactly?) of the road or the speed of the vehicle?

@boldtrn
Copy link
Member Author

boldtrn commented Aug 31, 2018

Consider the speed (which exactly?) of the road or the speed of the vehicle?

When generating these instructions we only know the distance and time of an instruction. With this we can make a guess about the speed of the instruction and therefore how fast a driver could be. It's pure guessing, so we should not make too much depending on this.

@karussell
Copy link
Member

Interesting question @devemux86. I tested the demo and it works already nicely with re-routing. We could theoretically guess the speed of these consecutive requests if we are able to send some kind of a unique vehicle ID. I also think that the demo needs to request the API from time to time to update the ETA estimate (especially since mapbox offers real time traffic) and so it might be already the case that the API is requested every minute already (?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants