public static class TPLRouteConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(boolean reRoute,
java.util.ArrayList<Place> endPoints,
int heading) |
Builder(Place source,
Place destination,
boolean reRoute,
int heading)
To configure/set route parameters, you generated from the console, by registering your application
|
Builder(TPLRouteConfig.Builder builder) |
Modifier and Type | Method and Description |
---|---|
TPLRouteConfig |
build()
Builds
TPLRouteConfig.Builder object by taking required values from builder method of Object
Instantiation |
TPLRouteConfig.Builder |
endPoints(java.util.ArrayList<Place> endPoints)
To set source & destinations location for the route.
|
TPLRouteConfig.Builder |
heading(int heading)
Set the value if you're calculating the route by seeking heading
zero from north in clockwise direction
|
TPLRouteConfig.Builder |
reRoute(boolean reRoute)
Set the value true if you're recalculating the route.
|
public Builder()
public Builder(TPLRouteConfig.Builder builder)
public Builder(boolean reRoute, java.util.ArrayList<Place> endPoints, int heading)
public TPLRouteConfig.Builder reRoute(boolean reRoute)
reRoute
- booleanpublic TPLRouteConfig.Builder heading(int heading)
heading
- intpublic TPLRouteConfig.Builder endPoints(java.util.ArrayList<Place> endPoints)
endPoints
- Place
List of source/destination locations by the sequencepublic TPLRouteConfig build()
TPLRouteConfig.Builder
object by taking required values from builder method of Object
InstantiationTPLRouteConfig.Builder
class object