Smoothex / cloud-based-traffic-light-assistant

0 stars 0 forks source link

Follow user along a route #13

Closed Smoothex closed 3 weeks ago

Smoothex commented 3 weeks ago

A "Start route" button is introduced. It only appears after there is an origin and destination (i.e., a route is selected). When clicked, it redirects the user back to the his location (i.e., the origin coordinates) and subscribes to location updates from the device (using Location.watchPositionAsync(options: Location.LocationOptions, callback: Location.LocationCallback)).\

The isNavigationActive state var is currently not used, perhaps we can use it for something later on.

This PR additionally adds some comments.