public abstract class MapMatchingMatching
extends java.lang.Object
implements java.io.Serializable
DirectionsRoute
object with an
additional confidence field.Modifier and Type | Class and Description |
---|---|
static class |
MapMatchingMatching.Builder
This builder can be used to set the values describing the
MapMatchingResponse . |
Constructor and Description |
---|
MapMatchingMatching() |
Modifier and Type | Method and Description |
---|---|
static MapMatchingMatching.Builder |
builder()
Create a new instance of this class by using the
MapMatchingMatching.Builder class. |
abstract double |
confidence()
A number between 0 (low) and 1 (high) indicating level of confidence in the returned match.
|
abstract double |
distance()
The distance traveled from origin to destination.
|
abstract double |
duration()
The estimated travel time from origin to destination.
|
abstract java.lang.String |
geometry()
Gives the geometry of the route.
|
abstract java.util.List<RouteLeg> |
legs()
A Leg is a route between only two waypoints.
|
abstract RouteOptions |
routeOptions()
Holds onto the parameter information used when making the directions request.
|
abstract MapMatchingMatching.Builder |
toBuilder()
Convert the current
MapMatchingMatching to its builder holding the currently assigned
values. |
DirectionsRoute |
toDirectionRoute()
Map this MapMatchingMatching object to a
DirectionsRoute object. |
static com.google.gson.TypeAdapter<MapMatchingMatching> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.String |
voiceLanguage()
String of the language to be used for voice instructions.
|
abstract double |
weight()
The calculated weight of the route.
|
abstract java.lang.String |
weightName()
The name of the weight profile used while calculating during extraction phase.
|
public static MapMatchingMatching.Builder builder()
MapMatchingMatching.Builder
class.MapMatchingMatching.Builder
for creating a new instancepublic abstract double distance()
public abstract double duration()
@Nullable public abstract java.lang.String geometry()
public abstract double weight()
double
value@SerializedName(value="weight_name") public abstract java.lang.String weightName()
routability
which is duration based, with additional penalties for less desirable
maneuvers.public abstract java.util.List<RouteLeg> legs()
RouteLeg
objectspublic abstract double confidence()
@Nullable public abstract RouteOptions routeOptions()
RouteOptions
s object which holds onto critical information from the request
that cannot be derived directly from the directions route@Nullable @SerializedName(value="voiceLocale") public abstract java.lang.String voiceLanguage()
MapboxMapMatching.language()
is not compatible
with API Voice.public abstract MapMatchingMatching.Builder toBuilder()
MapMatchingMatching
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 MapMatchingMatching
.MapMatchingMatching.Builder
with the same values set to match the ones
defined in this MapMatchingMatching
public DirectionsRoute toDirectionRoute()
DirectionsRoute
object.DirectionsRoute
objectpublic static com.google.gson.TypeAdapter<MapMatchingMatching> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object