public abstract class RouteLegRefresh extends DirectionsRefreshJsonObject
DirectionsWaypoint.| Modifier and Type | Class and Description |
|---|---|
static class |
RouteLegRefresh.Builder
This builder can be used to set the values describing the
RouteLegRefresh. |
| Constructor and Description |
|---|
RouteLegRefresh() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.mapbox.api.directions.v5.models.LegAnnotation |
annotation()
A
LegAnnotation that contains additional details about each line segment along the
route geometry. |
static RouteLegRefresh.Builder |
builder()
Create a new instance of this class by using the
RouteLegRefresh.Builder class. |
static RouteLegRefresh |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract RouteLegRefresh.Builder |
toBuilder()
Convert the current
RouteLegRefresh to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<RouteLegRefresh> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJsonpublic static RouteLegRefresh.Builder builder()
RouteLegRefresh.Builder class.RouteLegRefresh.Builder for creating a new instance@Nullable public abstract com.mapbox.api.directions.v5.models.LegAnnotation annotation()
LegAnnotation that contains additional details about each line segment along the
route geometry. If you'd like to receiving this, you must request it inside your Directions
request before executing the call.LegAnnotation objectpublic abstract RouteLegRefresh.Builder toBuilder()
RouteLegRefresh 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 RouteLegRefresh.RouteLegRefresh.Builder with the same values set to match the ones defined
in this RouteLegRefreshpublic static com.google.gson.TypeAdapter<RouteLegRefresh> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static RouteLegRefresh fromJson(java.lang.String json)
json - a formatted valid JSON string defining a RouteLeg