ManeuverNotificationOptions (API Reference)
Class ManeuverNotificationOptions
A class containing all options to be used when generating maneuver notifications.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA flag that indicates whether notification for destination and/or stopover reached maneuvers should be generated.An option whether direction information should be used when generating notification withManeuverNotificationType.ACTION.booleanDeprecated.Will be removed in v4.27.0.booleanA flag that indicates whether combined maneuver notifications should be generated.booleanA flag that indicates whether highway exit information should be used when generating notification.booleanA flag that indicates whether lane recommendation should be used when generating notifications.booleanA flag that indicates whether phonemes in selected notification format for proper nouns (e.g.booleanA flag that indicates whether notification for roundabout-related maneuvers should be generated.List ofNaturalGuidanceTypeshould be included in the notifications.List ofManeuverNotificationTypefor which notifications should be generated.The language in which the notifications will be generated.A formatting option for the phoneme that is included in the notification.An option whether street name, road number and sign post direction should be used when generating notification.Defines the measurement system used for distances. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this class with default configurations.ManeuverNotificationOptions(LanguageCode language, UnitSystem unitSystem) Deprecated.Will be removed in v4.23.0.ManeuverNotificationOptions(LanguageCode language, UnitSystem unitSystem, List<ManeuverNotificationType> includedNotificationTypes, boolean enableRoundaboutNotification, boolean enableDestinationReachedNotification, boolean enableDoubleNotification, boolean enablePhoneme, boolean enableHighwayExit) Deprecated.Will be removed in v4.23.0.ManeuverNotificationOptions(LanguageCode language, UnitSystem unitSystem, List<ManeuverNotificationType> includedNotificationTypes, boolean enableRoundaboutNotification, boolean enableDestinationReachedNotification, boolean enableDoubleNotification, boolean enablePhoneme, NotificationFormatOption notificationFormatOption, boolean enableHighwayExit) Deprecated.Will be removed in v4.23.0.ManeuverNotificationOptions(LanguageCode language, UnitSystem unitSystem, List<ManeuverNotificationType> includedNotificationTypes, boolean enableRoundaboutNotification, boolean enableDestinationReachedNotification, boolean enableDoubleNotification, boolean enablePhoneme, TextUsageOptions textUsageOptions, boolean enableHighwayExit) Deprecated.Will be removed in v4.23.0. -
Method Summary
-
Field Details
-
language
The language in which the notifications will be generated. When the specified language is not supported, the default language is used, which is English (American).
-
unitSystem
Defines the measurement system used for distances. Defaults to metric.
-
includedNotificationTypes
List of
ManeuverNotificationTypefor which notifications should be generated. Excluding all of them will disable the maneuver notifications completely. By default, all types are included. -
enableRoundaboutNotification
public boolean enableRoundaboutNotificationA flag that indicates whether notification for roundabout-related maneuvers should be generated. Defaults to
true. -
enableDestinationReachedNotification
Deprecated.Will be removed in v4.27.0. Use the
arrivalNotificationOptioninsteadA flag that indicates whether notification for destination/stopover reached maneuvers should be generated. Defaults to
true. -
arrivalNotificationOption
A flag that indicates whether notification for destination and/or stopover reached maneuvers should be generated. Defaults to
ArrivalNotificationOption.BOTH. -
enableDoubleNotification
public boolean enableDoubleNotificationA flag that indicates whether combined maneuver notifications should be generated. Such double notifications can be useful when maneuvers are very close. Example: A combined message: 'After 300 meters turn left and then turn right.'. This way a user can better anticipate the next-next maneuver. Note that setting to
truewill make the notification longer as two maneuvers will be merged into one. When the next-next maneuver action takes place, the notification will be given as usual. Example: 'Now turn left and then then turn right.' will be followed by 'Now turn right.'. Defaults totrue. -
enablePhoneme
public boolean enablePhonemeA flag that indicates whether phonemes in selected notification format for proper nouns (e.g. road names, road numbers, city names) should be used when generating notifications. Direction information comes usually in orthographic form and phoneme (e.g. Wall Street and "wɔːl"striːt). However, when the notification is synthesized by a TTS engine, the pronunciation of the orthographic form solely depends on its capability and phoneme set. The use of our phoneme data in the notification usually makes the pronunciation of direction information sound more natural. Note: For now, this property is functional for road name and road number information only.
Defaults to
false. -
notificationFormatOption
A formatting option for the phoneme that is included in the notification. By default, no phoneme is used and the
NotificationFormatOption.PLAINorthographic form is included in the notification.Note: To use the SSML format for phonemes,
enablePhonemeneeds to be set totrue. -
textUsageOptions
An option whether street name, road number and sign post direction should be used when generating notification. Defaults to each attribute as
LocalizedTextPreference.USE_ALWAYS. -
enableHighwayExit
public boolean enableHighwayExitA flag that indicates whether highway exit information should be used when generating notification. Defaults to
true. -
enableLaneRecommendation
public boolean enableLaneRecommendationA flag that indicates whether lane recommendation should be used when generating notifications. In case the flag is enabled, only the notification for the
ManeuverNotificationType.DISTANCEmaneuver notification type will contain the lane recommendation. The lane recommandation will replace the direction information in the notification. Example: 'After 250 meters use the right two lanes and turn right.'. Defaults tofalse. -
includedNaturalGuidanceTypes
List of
NaturalGuidanceTypeshould be included in the notifications. Excluding all of them will disable natural guidance information in the notifications completely.By default, the list is empty and natural guidance is disabled.
-
directionInformationUsageForActionNotificationOption
@NonNull public DirectionInformationUsageOption directionInformationUsageForActionNotificationOptionAn option whether direction information should be used when generating notification with
ManeuverNotificationType.ACTION. Defaults toDirectionInformationUsageOption.NONE.
-
-
Constructor Details
-
ManeuverNotificationOptions
public ManeuverNotificationOptions()Creates a new instance of this class with default configurations.
-
ManeuverNotificationOptions
@Deprecated public ManeuverNotificationOptions(@NonNull LanguageCode language, @NonNull UnitSystem unitSystem) Deprecated.Will be removed in v4.23.0. Use the default constructor instead.
Creates a new instance of this class with specified language and unit system.
- Parameters:
language-The language in which the notifications will be generated. When the specified language is not supported, the default language is used, which is English (American).
unitSystem-Defines the measurement system used for distances. Defaults to metric.
-
ManeuverNotificationOptions
@Deprecated public ManeuverNotificationOptions(@NonNull LanguageCode language, @NonNull UnitSystem unitSystem, @NonNull List<ManeuverNotificationType> includedNotificationTypes, boolean enableRoundaboutNotification, @Deprecated boolean enableDestinationReachedNotification, boolean enableDoubleNotification, boolean enablePhoneme, @NonNull TextUsageOptions textUsageOptions, boolean enableHighwayExit) Deprecated.Will be removed in v4.23.0. Use the default constructor instead.
Creates a new instance of this class with full specified configurations.
- Parameters:
language-The language in which the notifications will be generated. When the specified language is not supported, the default language is used, which is English (American).
unitSystem-Defines the measurement system used for distances. Defaults to metric.
includedNotificationTypes-List of
ManeuverNotificationTypefor which notifications should be generated. Excluding all of them will disable the maneuver notifications completely. By default, all types are included.enableRoundaboutNotification-A flag that indicates whether notification for roundabout-related maneuvers should be generated. Defaults to
true.enableDestinationReachedNotification-A flag that indicates whether notification for destination/stopover reached maneuvers should be generated. Defaults to
true.enableDoubleNotification-A flag that indicates whether combined maneuver notifications should be generated. Such double notifications can be useful when maneuvers are very close. Example: A combined message: 'After 300 meters turn left and then turn right.'. This way a user can better anticipate the next-next maneuver. Note that setting to
truewill make the notification longer as two maneuvers will be merged into one. When the next-next maneuver action takes place, the notification will be given as usual. Example: 'Now turn left and then then turn right.' will be followed by 'Now turn right.'. Defaults totrue.enablePhoneme-A flag that indicates whether phonemes in selected notification format for proper nouns (e.g. road names, road numbers, city names) should be used when generating notifications. Direction information comes usually in orthographic form and phoneme (e.g. Wall Street and "wɔːl"striːt). However, when the notification is synthesized by a TTS engine, the pronunciation of the orthographic form solely depends on its capability and phoneme set. The use of our phoneme data in the notification usually makes the pronunciation of direction information sound more natural. Note: For now, this property is functional for road name and road number information only.
Defaults to
false.textUsageOptions-An option whether street name, road number and sign post direction should be used when generating notification. Defaults to each attribute as
LocalizedTextPreference.USE_ALWAYS.enableHighwayExit-A flag that indicates whether highway exit information should be used when generating notification. Defaults to
true.
-
ManeuverNotificationOptions
@Deprecated public ManeuverNotificationOptions(@NonNull LanguageCode language, @NonNull UnitSystem unitSystem, @NonNull List<ManeuverNotificationType> includedNotificationTypes, boolean enableRoundaboutNotification, @Deprecated boolean enableDestinationReachedNotification, boolean enableDoubleNotification, boolean enablePhoneme, boolean enableHighwayExit) Deprecated.Will be removed in v4.23.0. Use the default constructor instead.
Creates a new instance of this class with full specified configurations.
- Parameters:
language-The language in which the notifications will be generated. When the specified language is not supported, the default language is used, which is English (American).
unitSystem-Defines the measurement system used for distances. Defaults to metric.
includedNotificationTypes-List of
ManeuverNotificationTypefor which notifications should be generated. Excluding all of them will disable the maneuver notifications completely. By default, all types are included.enableRoundaboutNotification-A flag that indicates whether notification for roundabout-related maneuvers should be generated. Defaults to
true.enableDestinationReachedNotification-A flag that indicates whether notification for destination/stopover reached maneuvers should be generated. Defaults to
true.enableDoubleNotification-A flag that indicates whether combined maneuver notifications should be generated. Such double notifications can be useful when maneuvers are very close. Example: A combined message: 'After 300 meters turn left and then turn right.'. This way a user can better anticipate the next-next maneuver. Note that setting to
truewill make the notification longer as two maneuvers will be merged into one. When the next-next maneuver action takes place, the notification will be given as usual. Example: 'Now turn left and then then turn right.' will be followed by 'Now turn right.'. Defaults totrue.enablePhoneme-A flag that indicates whether phonemes in selected notification format for proper nouns (e.g. road names, road numbers, city names) should be used when generating notifications. Direction information comes usually in orthographic form and phoneme (e.g. Wall Street and "wɔːl"striːt). However, when the notification is synthesized by a TTS engine, the pronunciation of the orthographic form solely depends on its capability and phoneme set. The use of our phoneme data in the notification usually makes the pronunciation of direction information sound more natural. Note: For now, this property is functional for road name and road number information only.
Defaults to
false.enableHighwayExit-A flag that indicates whether highway exit information should be used when generating notification. Defaults to
true.
-
-
Method Details