Smooth a route profile
The constructor
Smooth a route profile.
Name | Type | Description |
---|---|---|
route | Route | The route to smooth |
The route for witch the profile will be smoothed
The distance between smooth points
The number of points used to compute the smooth elevation. Alias for theConfig.route.elev.smoothPoints.
Compute the smooth distance The smooth distance is depending of the toal ascent and descent of the route and of the route distance. Smooth distance must be an integer.
Compute the smooth elevation for the points in the array
Create the array of points with the elevation
Report the smooth elev from the smoothPoints array to the route itinerary