Webportal v1

embedded apps

API Reference - Navigation.GetJourneyInfo()

Navigation.GetJourneyInfo()

Type Method
Min Privacy Public
wave 2
wave 3
wave 4

Description Calculates the estimated time of arrival and stores it inside Navigation.JourneyInfo.
Response Boolean True if the value is now correctly stored in Navigation.JourneyInfo, else False if the process failed.
Parameter Void

Fields

Navigation.JourneyInfo is the object where are stored the informations about the next maneuver to be done after a successful call to Navigation.GetJourneyInfo.

  • Navigation.JourneyInfo.estimatedTimeOfarrivalH, Number
  • Navigation.JourneyInfo.estimatedTimeOfarrivalMin, Number

Example

1
2
3
4
5
6
if ( Navigation.GetJourneyInfo() === false ) {
	// GPS error, Navigation.JourneyInfo is empty
} else {
	var JourneyETaHours = Navigation.JourneyInfo.estimatedTimeOfarrivalH;
	var JourneyETaMinutes = Navigation.JourneyInfo.estimatedTimeOfarrivalMin;
}

Remark

Note: Navigation.GetJourneyInfo must always be used before accessing the value stored in Navigation.ManeuverInfo.

Appeared in Software version 40.03.42.30