public abstract static class DirectionsWaypoint.Builder
extends java.lang.Object
DirectionsWaypoint.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract DirectionsWaypoint |
build()
Build a new
DirectionsWaypoint object. |
abstract DirectionsWaypoint.Builder |
distance(java.lang.Double distance)
The straight-line distance from the coordinate specified in the query
to the location it was snapped to.
|
abstract DirectionsWaypoint.Builder |
name(java.lang.String name)
Provides the way name which the waypoint's coordinate is snapped to.
|
abstract DirectionsWaypoint.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array representing a location snapped to the road network.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
@NonNull public abstract DirectionsWaypoint.Builder name(@NonNull java.lang.String name)
name - string with the name of the way the coordinate snapped to@NonNull public abstract DirectionsWaypoint.Builder rawLocation(@NonNull double[] rawLocation)
DirectionsWaypoint objects created,
this raw location gets converted into a Point object and is public exposed as such.
The double array should have a length of two, index 0 being the longitude and index 1 being
latitude.rawLocation - a double array with a length of two, index 0 being the longitude and
index 1 being latitude.@NonNull public abstract DirectionsWaypoint.Builder distance(@Nullable java.lang.Double distance)
distance - distance from original requested locationpublic abstract DirectionsWaypoint build()
DirectionsWaypoint object.DirectionsWaypoint using the provided values in this builder@NonNull
public T unrecognizedJsonProperties(@Nullable
java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties - parameters to add to request