Class TravelUpdater

This class update a Travel contained in a json object and created with a previous version to the current version

Source : file data/TravelUpdater.js at line 36

Constructor

new TravelUpdater ( )

The constructor

Source : file data/TravelUpdater.js at line 343

Public methods

update ( jsonTravel )

Update the travel

Source : file data/TravelUpdater.js at line 352

Parameters

Name Type Description
jsonTravel JsonObject

The travel to update

Private properties

#jsonTravel : JsonObject

The travel to update

Source : file data/TravelUpdater.js at line 45

Private methods

#updateItineraryPointsV_1_6_0 ( itineraryPoints )

Update the itinerary points when version is v1.6.0

Source : file data/TravelUpdater.js at line 148

Parameters

Name Type Description
itineraryPoints Array of Object

A list with itinerary points to update

#updateItineraryV_1_6_0 ( )

Update the itinerary when version is v1.6.0

Source : file data/TravelUpdater.js at line 160

#updateManeuversV_1_11_0 ( route )

Update the maneuvers when version is v1.11.0

Source : file data/TravelUpdater.js at line 180

Parameters

Name Type Description
route JsonObject

The route containing the maneuvers

#updateNote_V1_13_0 ( note )

Update a note when version is v1.13.0

Source : file data/TravelUpdater.js at line 258

Parameters

Name Type Description
note JsonObject

The note to update

#updateNotesV_1_13_0 ( )

Update the notes when version is v1.13.0

Source : file data/TravelUpdater.js at line 276

#updateRoutesV_1_0_0 ( )

Update the routes when version is v1.0.0

Source : file data/TravelUpdater.js at line 51

#updateRoutesV_1_11_0 ( )

Update the routes when version is v1.11.0

Source : file data/TravelUpdater.js at line 208

#updateRoutesV_1_4_0 ( )

Update the routes when version is v1.4.0

Source : file data/TravelUpdater.js at line 64

#updateRouteV_2_3_0 ( )

Update the routes when version is v2.3.0

Source : file data/TravelUpdater.js at line 225

#UpdateStyleNoteV1_13_0 ( somethingText )

Update a note style when version is v1.13.0

Source : file data/TravelUpdater.js at line 239

Parameters

Name Type Description
somethingText String

A text containing HTML with style attributes

#updateTravel ( )

Update the travel

Source : file data/TravelUpdater.js at line 297

#updateTravelV_1_4_0 ( )

Update the travel when version is v1.4.0

Source : file data/TravelUpdater.js at line 76

#updateTravelV_1_5_0 ( )

Update the travel when version is v1.5.0

Source : file data/TravelUpdater.js at line 113

#updateWayPointsV_1_11_0 ( route )

Update the way points when version is v1.11.0

Source : file data/TravelUpdater.js at line 195

Parameters

Name Type Description
route JsonObject

The route containing the way points