类 DirectionsWaypoint
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.DirectionsWaypoint
- 所有已实现的接口:
Serializable
An input coordinate snapped to the roads network.
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static classThis builder can be used to set the values describing theDirectionsWaypoint. -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static DirectionsWaypoint.Builderbuilder()Create a new instance of this class by using theDirectionsWaypoint.Builderclass.static DirectionsWaypointCreate a new instance of this class by passing in a formatted valid JSON String.ai.nextbillion.kits.geojson.Pointlocation()APointrepresenting this waypoint location.abstract Stringname()Provides the way name which the waypoint's coordinate is snapped to.abstract DirectionsWaypoint.BuilderConvert the currentDirectionsWaypointto its builder holding the currently assigned values.static com.google.gson.TypeAdapter<DirectionsWaypoint>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
DirectionsWaypoint
public DirectionsWaypoint()
-
-
方法详细资料
-
builder
Create a new instance of this class by using theDirectionsWaypoint.Builderclass.- 返回:
- this classes
DirectionsWaypoint.Builderfor creating a new instance
-
name
Provides the way name which the waypoint's coordinate is snapped to.- 返回:
- string with the name of the way the coordinate snapped to
-
location
@Nullable public ai.nextbillion.kits.geojson.Point location()APointrepresenting this waypoint location.- 返回:
- GeoJson Point representing this waypoint location
-
toBuilder
Convert the currentDirectionsWaypointto 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 modifiedDirectionsWaypoint.- 返回:
- a
DirectionsWaypoint.Builderwith the same values set to match the ones defined in thisDirectionsWaypoint
-
typeAdapter
public static com.google.gson.TypeAdapter<DirectionsWaypoint> typeAdapter(com.google.gson.Gson gson) 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 a DirectionsWaypoint- 返回:
- a new instance of this class defined by the values passed inside this static factory method
-