googlemaps / googlemaps/flutter-navigation-sdk

[Feature request]: expose alternative-route data + programmatic route selection (Android Auto / CarPlay can't select alternatives)

Open
#717 2 comments 0 reactions 1 assignee Claimed by @jokerttu View on GitHub
type: feature request
Dominant language
Dart
Stars
75
Forks
54
Avg merge
4d 2h
Merged PRs (30d)
5

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Use case

When `RoutingOptions.alternateRoutesStrategy` is `all`, the native `NavigationView` draws the alternative routes and lets the user tap one to switch the active route (firing setOnRouteChangedListener). However, the SDK exposes no way for an app to (a) read the computed alternatives, or (b) select one programmatically. This makes alternative-route selection impossible on any surface where the built-in `NavigationView` tap isn't available — most importantly, Android Auto (and CarPlay), whose map surface is render-only.

### Proposal

Implement an API to select an alternative route on the auto screen.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.