This class creates HTMLElements for routes
The constructor
Gives an HTMLElement with the provider and transit mode used for the itinerary creation
Name | Type | Description |
---|---|---|
classPrefix | String | A string that will be added to all the className of the created HTMLElements |
route | Route | The route for witch the HTMLElement will be created |
Gives an HTMLElement with a route name, route distance, route duration ( except for bike), route ascent (if any) and route descent (if any)
Name | Type | Description |
---|---|---|
classPrefix | String | A string that will be added to all the className of the created HTMLElements |
route | Route | The route for witch the HTMLElement will be created |
Gives an HTMLElement with all the notes and maneuvers linked to a route, ordered by distance since the beginning of the route
Name | Type | Description |
---|---|---|
classPrefix | String | A string that will be added to all the className of the created HTMLElements |
route | Route | The route for witch the HTMLElement will be created |
addDataset | Boolean | When true, objId and objType are added to the dataset of the HTMLElement |
Gives an HTMLElement with the SVG profile of a route
Name | Type | Description |
---|---|---|
classPrefix | String | A string that will be added to all the className of the created HTMLElements |
route | Route | The route for witch the HTMLElement will be created |
Gives an HTMLElement with the icon, instruction, distance since the beginning of the travel (if the instruction is linked to a chained route), distance since the beginning of the route and distance till the next maneuver
Name | Type | Description |
---|---|---|
classPrefix | String | A string that will be added to all the className of the created HTMLElements |
routeAndManeuver | Object | An object with the maneuver, the route to witch the maneuver is linked and the distance between the beginning of the route and the maneuver |