类 RestStop
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.RestStop
- 所有已实现的接口:
Serializable
An object containing information about passing rest stops along the route.
Only available on the
DirectionsCriteria.PROFILE_DRIVING profile.- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static RestStop.Builderbuilder()Create a new instance of this class by using theRestStop.Builderclass.static RestStopCreate a new instance of this class by passing in a formatted valid JSON String.abstract RestStop.BuilderConvert the currentRestStopto its builder holding the currently assigned values.abstract Stringtype()The type of rest stop, either `rest_area` (includes parking only) or `service_area` (includes amenities such as gas or restaurants).static com.google.gson.TypeAdapter<RestStop>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
RestStop
public RestStop()
-
-
方法详细资料
-
type
The type of rest stop, either `rest_area` (includes parking only) or `service_area` (includes amenities such as gas or restaurants). Note that adding new possible types is not considered a breaking change. -
builder
Create a new instance of this class by using theRestStop.Builderclass.- 返回:
- this classes
RestStop.Builderfor creating a new instance
-
toBuilder
Convert the currentRestStopto 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 modifiedRestStop.- 返回:
- a
RestStop.Builderwith the same values set to match the ones defined in thisRestStop
-
typeAdapter
Gson type adapter for parsing Gson to this class.- 参数:
gson- the builtGsonobject- 返回:
- the type adapter for this class
-
fromJson
Create a new instance of this class by passing in a formatted valid JSON String.- 参数:
json- a formatted valid JSON string defining an Incident- 返回:
- a new instance of this class defined by the values passed in the method
-