Control

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.

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);

Last updated