public abstract class SilentWaypoint extends DirectionsJsonObject
RouteLeg.viaWaypoints()
for more details.Modifier and Type | Class and Description |
---|---|
static class |
SilentWaypoint.Builder
This builder can be used to set the values describing the
SilentWaypoint . |
Constructor and Description |
---|
SilentWaypoint() |
Modifier and Type | Method and Description |
---|---|
static SilentWaypoint.Builder |
builder()
Create a new instance of this class by using the
SilentWaypoint.Builder class. |
abstract double |
distanceFromStart()
The calculated distance, in meters, from the leg origin.
|
abstract int |
geometryIndex()
The associated leg shape index of the via waypoint location.
|
static com.google.gson.TypeAdapter<SilentWaypoint> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract int |
waypointIndex()
The associated waypoint index, excluding the origin (index 0) and destination.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson
@NonNull public static SilentWaypoint.Builder builder()
SilentWaypoint.Builder
class.SilentWaypoint.Builder
for creating a new instance@SerializedName(value="waypoint_index") public abstract int waypointIndex()
@SerializedName(value="distance_from_start") public abstract double distanceFromStart()
@SerializedName(value="geometry_index") public abstract int geometryIndex()
@NonNull public static com.google.gson.TypeAdapter<SilentWaypoint> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object