简体   繁体   中英

How to get Turn By Turn Instruction in HERE SDK

I'm want to display the turn by turn instruction for navigation like the image

在此处输入图片说明

i had try add LaneInfoListener, but nothing is show is this feature include in the HERE SDK or need using the data from getNextManeuver() may i known how can get it?

Follow the documentation of HERE SDK, the first method should your problem.

From there you need to just manipulate the Route variables/problems(Traffic, stop lights, roundabouts, road issues, etc...) to decide the best action needed to be taken.

Take a look at this

public static final enumeration Maneuver.Action

Represents values describing the possible actions of a Maneuver.

From: https://developer.here.com/mobile-sdks/documentation/android/topics_api_nlp/com-here-android-mpa-routing-maneuver.html

The SDK com.here.android.routing.Maneuver class provides all the fragments required to construct the instructions. We do not provide the localization to construct the full sentence as that is application specific logic. The icon is for demo only and not provided. Please create some visual assets to map against the maneuver turn type.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM