Webportal v1

embedded apps

API Reference - Navigation.RouteCalculationCancelled

Navigation.RouteCalculationCancelled

Type Event
wave 2
wave 4

Event triggered when the calculation of the itinerary was ended abruptly eg: if the user perform SW update during route calculation.

Example

1
2
3
4
5
6
7
8
try{	
	// Navigation
	if ((typeof Navigation !== "undefined") && (typeof Navigation.addEventListener !== "undefined")) {
		Navigation.addEventListener("RouteCalculationCancelled", HandleRouteCancelation());
	}
} catch(e) {
	DealWithNavigationError(e);
}

Note: The Navigation events are triggered only if the Navigation was launched using either LaunchGuidance or LaunchGuidanceWaypoints.

Appeared in Software version 40.03.49.50