public static final class DirectionsRequest.Builder
extends java.lang.Object
DirectionsRequest builder static inner class.| Constructor and Description |
|---|
Builder() |
Builder(DirectionsRequest copy) |
| Modifier and Type | Method and Description |
|---|---|
DirectionsRequest |
build()
Returns a
DirectionsRequest built from the parameters previously set. |
DirectionsRequest.Builder |
from(Location currentLocation)
Sets the current user's position as the starting point of the route.
|
DirectionsRequest.Builder |
from(Point from,
Angle bearingFrom)
Sets the starting point of the route, and the bearing of the user to generate the appropriate instructions.
|
DirectionsRequest.Builder |
isAccessible(boolean isAccessible)
Sets if the route has to be suitable for wheel chairs (true) or not (false)
|
DirectionsRequest.Builder |
to(Point to)
Sets the point
to, where the route should end. |
public Builder()
public Builder(DirectionsRequest copy)
public DirectionsRequest.Builder from(Point from, Angle bearingFrom)
from - Point point inside a building (Point.isIndoor() == true)bearingFrom - Angle user's bearingpublic DirectionsRequest.Builder from(Location currentLocation)
currentLocation - current user's Location, obtained with LocationManagerpublic DirectionsRequest.Builder to(Point to)
to, where the route should end.to - Point point inside a building (Point.isIndoor() == true)public DirectionsRequest.Builder isAccessible(boolean isAccessible)
isAccessible - booleanpublic DirectionsRequest build()
DirectionsRequest built from the parameters previously set.DirectionsRequest built with parameters of this DirectionsRequest.Builder