public abstract static class OptimizationWaypoint.Builder
extends java.lang.Object
OptimizationWaypoint
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract OptimizationWaypoint |
build()
Build a new
OptimizationResponse object. |
abstract OptimizationWaypoint.Builder |
name(java.lang.String name)
Provides the way name which the waypoint's coordinate is snapped to.
|
abstract OptimizationWaypoint.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array.
|
abstract OptimizationWaypoint.Builder |
tripsIndex(int tripsIndex)
Index to the trip object in the trips array that contains this waypoint.
|
abstract OptimizationWaypoint.Builder |
waypointIndex(int waypointIndex)
Index of the waypoint inside the optimization route.
|
public abstract OptimizationWaypoint.Builder waypointIndex(int waypointIndex)
waypointIndex
- index valuepublic abstract OptimizationWaypoint.Builder tripsIndex(int tripsIndex)
tripsIndex
- index valuepublic abstract OptimizationWaypoint.Builder name(@Nullable java.lang.String name)
name
- string with the name of the way the coordinate snapped topublic abstract OptimizationWaypoint.Builder rawLocation(double[] rawLocation)
OptimizationWaypoint
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 OptimizationWaypoint build()
OptimizationResponse
object.OptimizationResponse
using the provided values in this builder