public static class DirectionsRequest.Builder extends MeridianRequest.LocationsAPIBuilder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DirectionsRequest |
build() |
protected EditorKey |
getAppKey() |
protected android.net.Uri.Builder |
getUriBuilder() |
DirectionsRequest.Builder |
setAppKey(EditorKey appKey) |
DirectionsRequest.Builder |
setDestination(DirectionsDestination destination)
Directions to specified destination
|
DirectionsRequest.Builder |
setDestinations(java.util.List<DirectionsDestination> destinations)
Directions to closest specified destination
|
DirectionsRequest.Builder |
setErrorListener(MeridianRequest.ErrorListener errorListener) |
DirectionsRequest.Builder |
setListener(MeridianRequest.Listener<DirectionsResponse> listener) |
DirectionsRequest.Builder |
setSource(DirectionsSource source)
Set the starting point of the directions
|
DirectionsRequest.Builder |
setTransportType(TransportType transportType)
Set if the directions should be handicap accessible
|
public DirectionsRequest.Builder setAppKey(EditorKey appKey)
public DirectionsRequest.Builder setSource(DirectionsSource source)
Set the starting point of the directions
source
- location to start directions frompublic DirectionsRequest.Builder setDestination(DirectionsDestination destination)
Directions to specified destination
destination
- destination to route topublic DirectionsRequest.Builder setDestinations(java.util.List<DirectionsDestination> destinations)
Directions to closest specified destination
destinations
- List of destinations, the closest to the source will be usedpublic DirectionsRequest.Builder setTransportType(TransportType transportType)
Set if the directions should be handicap accessible
transportType
- specify if the directions need to be handicap accessiblepublic DirectionsRequest.Builder setListener(MeridianRequest.Listener<DirectionsResponse> listener)
public DirectionsRequest.Builder setErrorListener(MeridianRequest.ErrorListener errorListener)
protected android.net.Uri.Builder getUriBuilder()
getUriBuilder
in class MeridianRequest.LocationsAPIBuilder
public DirectionsRequest build()
protected final EditorKey getAppKey()