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. |
abstract java.util.List<com.mapbox.api.directions.v5.models.Closure> |
closures()
A list of closures that occur on this leg.
|
static RouteLegRefresh |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.util.List<com.mapbox.api.directions.v5.models.Incident> |
incidents()
A list of incidents that occur on this leg.
|
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.
|
getUnrecognizedJsonProperties, toJson
public static RouteLegRefresh.Builder builder()
RouteLegRefresh.Builder
class.RouteLegRefresh.Builder
for creating a new instance@Nullable public abstract java.util.List<com.mapbox.api.directions.v5.models.Incident> incidents()
Incident
@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
object@Nullable public abstract java.util.List<com.mapbox.api.directions.v5.models.Closure> closures()
Closure
public 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 RouteLegRefresh
public 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