public abstract static class VoiceInstructions.Builder
extends java.lang.Object
VoiceInstructions
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract VoiceInstructions.Builder |
announcement(java.lang.String announcement)
Provides the instruction string which was build on the server-side and can sometimes
concatenate instructions together if maneuver instructions are too close to each other.
|
abstract VoiceInstructions |
build()
This uses the provided parameters set using the
VoiceInstructions.Builder and creates a new instance of
VoiceInstructions . |
abstract VoiceInstructions.Builder |
distanceAlongGeometry(java.lang.Double distanceAlongGeometry)
Returns the missing piece in which is needed to announce instructions at accurate
times.
|
abstract VoiceInstructions.Builder |
ssmlAnnouncement(java.lang.String ssmlAnnouncement)
Get the same instruction string you'd get from
VoiceInstructions.announcement() but this one includes
Speech Synthesis Markup Language which helps voice synthesiser read information more
humanely. |
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
public abstract VoiceInstructions.Builder distanceAlongGeometry(java.lang.Double distanceAlongGeometry)
distanceAlongGeometry()
than, the announcement should be called.distanceAlongGeometry
- double value representing the distance to next maneuver in unit
meterspublic abstract VoiceInstructions.Builder announcement(java.lang.String announcement)
announcement
- a string with the readable instructions ready to be read or displayed to
a userpublic abstract VoiceInstructions.Builder ssmlAnnouncement(java.lang.String ssmlAnnouncement)
VoiceInstructions.announcement()
but this one includes
Speech Synthesis Markup Language which helps voice synthesiser read information more
humanely.ssmlAnnouncement
- a string with the SSML instructionspublic abstract VoiceInstructions build()
VoiceInstructions.Builder
and creates a new instance of
VoiceInstructions
.@NonNull public T unrecognizedJsonProperties(@Nullable java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties
- parameters to add to request