在此处使用iOS SDK高级版-有没有一种方法可以防止“路线点" /是否宣布中途停留? [英] HERE iOS SDK premium - Is there a way to prevent "waypoints" / Stopovers from being announced?

查看:74
本文介绍了在此处使用iOS SDK高级版-有没有一种方法可以防止“路线点" /是否宣布中途停留?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个iOS Premium应用程序,为用户加载的路线有很多航路点,每个回合都被添加为一个航路点,以确保特定的路线完全按照保存的方式进行. 这会掩盖语音提示,而不是宣布下一轮语音提示,即宣布……之后您将到达中途停留" 我希望它像通常一样说……后左转",好像没有路标一样.这可能吗?在哪里可以配置语音指导?

I am making an iOS Premium application, the routes that are loaded for the user have lots of waypoints, each turn is added as a waypoint to ensure the specific route is followed exactly as it was saved. This mucks up the voice guidance, rather than announcing the next turn the guidance announces "After ... you will reach your stopover" I would prefer it to say "After ... turn left" like normal, as if there were no waypoints. Is this possible? Where can I configure the voice guidance?

推荐答案

您的选择很少.

第一:

启用/禁用某些操作的语音提示.

Enables/disables voice prompts for certain maneuver.

@interface NMANavigationManager : NSObject
.....
- (BOOL)setVoiceEnabled:(BOOL)enabled forManeuverAction:(NMAManeuverAction)action
.....



NMAManeuver.h
/**

* Defines types of actions for a NMAManeuver.

*/

typedef NS_ENUM(NSInteger, NMAManeuverAction) {

    /** An undefined action. */

    NMAManeuverActionUndefined = 0,             // 0

    /** An indication there is no action associated with the maneuver. */

    NMAManeuverActionNone,                      // 1

    /** An action that indicates the end of a route. */

    NMAManeuverActionEnd,                       // 2

    /** An action that indicates a stopover. */

    NMAManeuverActionStopover,                  // 3

    /** An action that indicates a junction. */

    NMAManeuverActionJunction,                  // 4

    /** An action that indicates a roundabout. */

    NMAManeuverActionRoundabout,                // 5

    /** An action that indicates a u-turn. */

    NMAManeuverActionUTurn,                     // 6

    /** An action that indicates entering a highway from the right. */

    NMAManeuverActionEnterHighwayFromRight,     // 7

    /** An action that indicates entering a highway from the left. */

    NMAManeuverActionEnterHighwayFromLeft,      // 8

    /** An action that indicates entering a highway. */

    NMAManeuverActionEnterHighway,              // 9

    /** An action that indicates leaving a highway. */

    NMAManeuverActionLeaveHighway,              // 10

    /** An action that indicates changing from one highway to another. */

    NMAManeuverActionChangeHighway,             // 11

    /** An action that indicates continuing along a highway. */

    NMAManeuverActionContinueHighway,           // 12

    /** An action that indicates boarding a ferry. */

    NMAManeuverActionFerry,                     // 13

    /** An action that indicates passing a junction. */

    NMAManeuverActionPassJunction,              // 14

    /** An action that indicates heading after leaving public transit station. */

    NMAManeuverActionHeadTo,                    // 15

    /** An action that indicates passing a station. */

    NMAManeuverActionPassStation,               // 16

    /** An action that indicates transit line change. */

    NMAManeuverActionChangeLine,                // 17



    /** An invalid action. */

    NMAManeuverActionInvalid = -1

};

第二: 您可以使用委托方法.只需返回NO,您就不会听到任何语音反馈.

SECOND: You may use delegate method. Just return NO and you won't hear any voice feedback.

@protocol NMANavigationManagerDelegate<NSObject>
@optional
......
-(BOOL)navigationManager:(NMANavigationManager *)navigationManager shouldPlayVoiceFeedbackWithText:(NSString *)text
.....

但是在那种情况下,您将必须解析反馈文本"以了解您是否要播放反馈.

But in that case you would have to parse "feedback text" to understand whether you went to play a feedback.

这篇关于在此处使用iOS SDK高级版-有没有一种方法可以防止“路线点" /是否宣布中途停留?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆