public abstract class BannerText extends DirectionsJsonObject
BannerComponents which may or may not
include a image url. To receive this information, your request must have
MapboxDirections.bannerInstructions() set to true.| Modifier and Type | Class and Description |
|---|---|
static class |
BannerText.Builder
This builder can be used to set the values describing the
BannerText. |
| Constructor and Description |
|---|
BannerText() |
| Modifier and Type | Method and Description |
|---|---|
static BannerText.Builder |
builder()
Create a new instance of this class by using the
BannerText.Builder class. |
abstract java.util.List<BannerComponents> |
components()
A part or element of the
BannerInstructions. |
abstract java.lang.Double |
degrees()
The degrees at which you will be exiting a roundabout, assuming `180` indicates
going straight through the roundabout.
|
abstract java.lang.String |
drivingSide()
A string representing which side the of the street people drive on
in that location.
|
static BannerText |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
modifier()
This indicates the mode of the maneuver.
|
abstract java.lang.String |
text()
Plain text with all the
BannerComponents text combined. |
abstract BannerText.Builder |
toBuilder()
Convert the current
BannerText to its builder holding the currently assigned
values. |
abstract java.lang.String |
type()
This indicates the type of maneuver.
|
static com.google.gson.TypeAdapter<BannerText> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJsonpublic static BannerText.Builder builder()
BannerText.Builder class.BannerText.Builder for creating a new instance@Nullable public abstract java.lang.String text()
BannerComponents text combined.BannerComponents text items combined@Nullable public abstract java.util.List<BannerComponents> components()
BannerInstructions.BannerComponents specific to a LegStep@Nullable public abstract java.lang.String type()
StepManeuver.StepManeuverType@Nullable public abstract java.lang.String modifier()
@Nullable public abstract java.lang.Double degrees()
@Nullable @SerializedName(value="driving_side") public abstract java.lang.String drivingSide()
public abstract BannerText.Builder toBuilder()
BannerText to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified BannerText.BannerText.Builder with the same values set to match the ones defined
in this BannerTextpublic static com.google.gson.TypeAdapter<BannerText> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static BannerText fromJson(java.lang.String json)
json - a formatted valid JSON string defining a BannerText