public abstract class MapMatchingTracepoint
extends java.lang.Object
implements java.io.Serializable
DirectionsWaypoint
object with two
additional fields.Modifier and Type | Class and Description |
---|---|
static class |
MapMatchingTracepoint.Builder
This builder can be used to set the values describing the
MapMatchingTracepoint . |
Constructor and Description |
---|
MapMatchingTracepoint() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Integer |
alternativesCount()
Number of probable alternative matchings for this trace point.
|
static MapMatchingTracepoint.Builder |
builder()
Create a new instance of this class by using the
MapMatchingTracepoint.Builder class. |
com.mapbox.geojson.Point |
location()
A
Point representing this waypoint location. |
abstract java.lang.Integer |
matchingsIndex()
Index to the match object in matchings the sub-trace was matched to.
|
abstract java.lang.String |
name()
Provides the way name which the waypoint's coordinate is snapped to.
|
abstract MapMatchingTracepoint.Builder |
toBuilder()
Convert the current
MapMatchingTracepoint to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<MapMatchingTracepoint> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Integer |
waypointIndex()
Index of the waypoint inside the matched route.
|
public static MapMatchingTracepoint.Builder builder()
MapMatchingTracepoint.Builder
class.MapMatchingTracepoint.Builder
for creating a new instance@Nullable @SerializedName(value="matchings_index") public abstract java.lang.Integer matchingsIndex()
@Nullable @SerializedName(value="alternatives_count") public abstract java.lang.Integer alternativesCount()
@Nullable @SerializedName(value="waypoint_index") public abstract java.lang.Integer waypointIndex()
@Nullable public com.mapbox.geojson.Point location()
Point
representing this waypoint location.@Nullable public abstract java.lang.String name()
public abstract MapMatchingTracepoint.Builder toBuilder()
MapMatchingTracepoint
to its builder holding the currently assigned
values. This allows you to modify a single variable and then rebuild the object resulting in
an updated and modified MapMatchingTracepoint
.MapMatchingTracepoint.Builder
with the same values set to match the ones
defined in this MapMatchingTracepoint
public static com.google.gson.TypeAdapter<MapMatchingTracepoint> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object