Class Router

Start the routing and adapt the linked data after routing

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

Constructor

new Router ( )

The constructor

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

Public methods

startRouting ( )

This method start the routing for the edited route.

Source : file core/lib/Router.js at line 197

Private properties

#routingRequestStarted : Boolean

A guard to avoid that the router is called when already busy.

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

#zoomToRouteAfterRouting : Boolean

A flag indicating when a zoom to the route must be performed at the end of the routing

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

Private methods

#computeRouteDistances ( route )

This method compute the route, itineraryPoints and maneuvers distances

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

Parameters

Name Type Description
route Route

The route for witch the distances are computed

#onRoutingError ( err )

Error handler for the startRouting method

Source : file core/lib/Router.js at line 108

Parameters

Name Type Description
err null or Error

The error to handle

#onRoutingOk ( )

Success handler for the startRouting method

Source : file core/lib/Router.js at line 123