Last updated 1 year ago
Controls the navigation service route and status.
When triggering plan or start a new route is calculated. When the calculation is finished, the new route is published as the navigation service route.
plan
start
const controlCallback = (value: NavigationCommand , timestamp?: Date) => { console.log(value, timestamp); }; const request: NavigationCommand = { action: "START", destination: { "latitude": 12.345, "longitude": 12.345 } } COBI.navigationService.control.write(request, controlCallback);
const controlCallback = (value, timestamp) => { console.log(value, timestamp); }; const request = { action: "START", destination: { "latitude": 12.345, "longitude": 12.345 } } COBI.navigationService.control.write(request, controlCallback);