Reputation: 438
Is there a way with HERE SDK for Flutter to get information about the motorway exit? I read the documentation but I can't find anything.
I would like to show the name of the next motorway exit the driver should follow.
Upvotes: 0
Views: 158
Reputation: 2190
For navigation you register at the RouteProgressListener (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgressListener-class.html) for progress updates.
In this callback (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgressListener/onRouteProgressUpdated.html) your get the route progress object (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/RouteProgress/RouteProgress.html).
With this you know the index for the next maneuver and you query the Navigator for the concrete maneuver object via getManeuver (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/navigation/NavigatorInterface/getManeuver.html)
In this maneuver object (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/routing/Maneuver-class.html) you can get the exist sign text (https://developer.here.com/documentation/flutter-sdk-navigate/4.8.3.0/api_reference/routing/Maneuver/exitSignTexts.html) if available (in most cases only for highways of course).
Upvotes: 2