API Reference - Navigation.GetManeuverInfo()
Navigation.GetManeuverInfo()
Navigation.GetManeuverInfo()
Description | Retrieves the position of the next maneuver to be done and stores it inside Navigation.ManeuverInfo . |
Response | Boolean True if the value is now correctly stored in Navigation.ManeuverInfo , else False if the process failed. |
Parameter | Void |
Fields
Navigation.ManeuverInfo
is the object where are stored the informations about the next maneuver to be done after a successful call to Navigation.GetManeuverInfo
.
Navigation.ManeuverInfo.Latitude
, Number in WGS84 Signed Decimal DegreesNavigation.ManeuverInfo.Longitude
, Number in WGS84 Signed Decimal DegreesNavigation.ManeuverInfo.nextStreetName
, StringNavigation.ManeuverInfo.Town
, StringNavigation.ManeuverInfo.City
, StringNavigation.ManeuverInfo.Province
, StringNavigation.ManeuverInfo.Country
, String
Example
1
2
3
4
5
6
7
8
9
10
11
if ( Navigation.GetManeuverInfo() === false ) {
// GPS error, Navigation.ManeuverInfo is empty
} else {
var ManeuverLatitude = Navigation.ManeuverInfo.Latitude;
var ManeuverLongitude = Navigation.ManeuverInfo.Longitude;
var ManeuverNextStreetName = Navigation.ManeuverInfo.nextStreetName;
var ManeuverTown = Navigation.ManeuverInfo.Town;
var ManeuverCity = Navigation.ManeuverInfo.City;
var ManeuverProvince = Navigation.ManeuverInfo.Province;
var ManeuverCountry = Navigation.ManeuverInfo.Country;
}
Remark
Note 2: Some fields like
Province
are not used in some countries so its value will stay empty in such a case.
Note:
Navigation.GetManeuverInfo
must always be used before accessing the value stored inNavigation.ManeuverInfo
.
Appeared in Software version 40.03.42.30