Route
The calculated navigation route.
Drawn on the map during a ride and used for turn-by-turn advices. The route is not updated while riding — live information is available via the navigation service eta and distance to destination.
To request a route to a different destination write to the navigation service control.
const onRouteChange = (value: Route, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.navigationService.route.subscribe(onRouteChange);
COBI.navigationService.route.unsubscribe(onRouteChange);
Last updated