| | 1 | | namespace Itinero.Instructions.Types; |
| | 2 | |
|
| | 3 | | public class FollowBendInstruction : BaseInstruction |
| | 4 | | { |
| | 5 | | /// <summary> |
| | 6 | | /// A bend in the road is there if: |
| | 7 | | /// - Within the first 100m, the road turns at least 25° |
| | 8 | | /// - The road feels continuous: |
| | 9 | | /// * All the branches are on the non-turning side (e.g. the turn direction is left, but there are no branches |
| | 10 | | /// left) |
| | 11 | | /// * OR the branches on the turn-to side are all service roads or tracks and the current one isn't that too |
| | 12 | | /// - There are no major bends in the other direction (thus: every individual bend is at least 0°) |
| | 13 | | /// </summary> |
| 5 | 14 | | public FollowBendInstruction(IndexedRoute route, int shapeIndex, int shapeIndexEnd, int turnDegrees) : base( |
| 5 | 15 | | route, shapeIndex, shapeIndexEnd, turnDegrees) |
| 5 | 16 | | { |
| 5 | 17 | | } |
| | 18 | | } |