public final class GetRouteRequest extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
GetRouteRequest.Builder
Builder class to create
GetRouteRequest object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDBResource()
Returns the name of Database resource used with this request.
|
CoordSys |
getDestinationSrs()
Returns the Destination Coordinate System associated with request.
|
LinearUnit |
getDistanceUnit()
Returns the
LinearUnit for route request. |
IPoint |
getEndPoint()
Returns the End Point for which this request was created.
|
HistoricSpeedBucket |
getHistoricSpeedBucket()
Returns the Historic traffic time bucket used with this request.
|
List<IPoint> |
getIntermediatePoints()
Returns the list of Intermediate Points via which route is to be
calculated.
|
Language |
getLanguage()
Returns the language in which turn by turn directions for route are to be
returned.
|
int |
getLocalRoadsLoadFactor()
Returns the localRoadLoadFactor used for this request.
|
OptimizeBy |
getOptimizeBy()
Returns whether the fastest or shortest route is to be calculated.
|
Map<RoadType,RoadTypePriority> |
getRoadTypePreferences()
|
IPoint |
getStartPoint()
Returns the Start Point for which this request was created.
|
TimeUnit |
getTimeUnit()
Returns the
TimeUnit for route request. |
List<Update> |
getUpdates()
|
VehicleAttributes |
getVehicleAttr()
Returns the Commercial Vehicle Restriction value used with this request.
|
boolean |
isAvoidTollRoad()
Returns whether the route is calculated using avoid toll roads only or
not.
|
boolean |
isMajorRoads()
Returns whether the route is calculated using major roads only or not.
|
boolean |
isOptimizeIntermediatePoints()
Returns whether to optimize the sequence of intermediate points for route
calculation if multiple intermediate points are specified.
|
boolean |
isReturnDirectionGeometry()
Returns whether to return direction geometry with
RouteInstruction or not in route response. |
boolean |
isReturnDirections()
Returns whether to return turn by turn directions or not in route
response.
|
boolean |
isReturnSegmentGeometry()
Returns whether to return route geometry or not in route response.
|
public LinearUnit getDistanceUnit()
LinearUnit for route request.LinearUnitpublic IPoint getStartPoint()
IPoint, the origin for which this request was created.public IPoint getEndPoint()
IPoint, the destination for which this request was
created.public List<IPoint> getIntermediatePoints()
public OptimizeBy getOptimizeBy()
OptimizeBy.TIME means fastest and OptimizeBy.DISTANCE
means shortest.OptimizeBy value.public Language getLanguage()
Language in which turn by turn directions for route are
to be returned.public boolean isReturnDirections()
public boolean isReturnSegmentGeometry()
public boolean isOptimizeIntermediatePoints()
public Map<RoadType,RoadTypePriority> getRoadTypePreferences()
Map of RoadType and their
RoadTypePriority. Used to force usage or avoid certain type of
roads while route calculation.Map of RoadType and their
RoadTypePriority.public boolean isMajorRoads()
public boolean isAvoidTollRoad()
public CoordSys getDestinationSrs()
CoordSys, Destination Coordinate System for response.public HistoricSpeedBucket getHistoricSpeedBucket()
HistoricSpeedBucket to be used while processing the
request.public String getDBResource()
public boolean isReturnDirectionGeometry()
RouteInstruction or not in route response.RouteInstruction for route, false otherwise.public VehicleAttributes getVehicleAttr()
VehicleAttributes to be used while processing the
request.public int getLocalRoadsLoadFactor()