Class ProfileSmoothingIron

Smooth a route profile

Source : file core/lib/ProfileSmoothingIron.js at line 35

Constructor

new ProfileSmoothingIron ( )

The constructor

Source : file core/lib/ProfileSmoothingIron.js at line 248

Public methods

smooth ( route )

Smooth a route profile.

Source : file core/lib/ProfileSmoothingIron.js at line 257

Parameters

Name Type Description
route Route

The route to smooth

Private properties

#route : Route

The route for witch the profile will be smoothed

Source : file core/lib/ProfileSmoothingIron.js at line 42

#smoothDistance : Number

The distance between smooth points

Source : file core/lib/ProfileSmoothingIron.js at line 49

#smoothPoints : Array of Object

An array with point used to smooth the elevation

Source : file core/lib/ProfileSmoothingIron.js at line 56

Private getters and setters

readonly get #smoothPointsNumber : Number

The number of points used to compute the smooth elevation. Alias for theConfig.route.elev.smoothPoints.

Source : file core/lib/ProfileSmoothingIron.js at line 63

Private methods

#computeSmoothDistance ( )

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.

Source : file core/lib/ProfileSmoothingIron.js at line 189

#computeSmoothElev ( )

Compute the smooth elevation for the points in the array

Source : file core/lib/ProfileSmoothingIron.js at line 133

#createSmoothPoints ( )

Create the array of points with the elevation

Source : file core/lib/ProfileSmoothingIron.js at line 69

#setSmoothElev ( )

Report the smooth elev from the smoothPoints array to the route itinerary

Source : file core/lib/ProfileSmoothingIron.js at line 218