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 |
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.
|
public abstract DirectionsWaypoint.Builder name(@Nullable java.lang.String name)
name
- string with the name of the way the coordinate snapped topublic abstract DirectionsWaypoint.Builder rawLocation(@Nullable 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.public abstract DirectionsWaypoint build()
DirectionsWaypoint
object.DirectionsWaypoint
using the provided values in this builder