public static final class GetTravelBoundaryRequest.Builder extends Object
GetTravelBoundaryRequest object.| Constructor and Description |
|---|
Builder(IPoint point,
double[] costs,
LinearUnit linearUnit)
Creates the GetTravelBoundaryRequest.Builder object for IsoDistance.
|
Builder(IPoint point,
double[] costs,
TimeUnit timeUnit)
Creates the GetTravelBoundaryRequest.Builder object for IsoChrone.
|
| Modifier and Type | Method and Description |
|---|---|
GetTravelBoundaryRequest.Builder |
ambientSpeeds(Map<RoadType,Double> ambientSpeeds)
Sets the RoadType wise ambient speeds to be used while processing the request.
|
GetTravelBoundaryRequest.Builder |
ambientSpeedUnit(VelocityUnit ambientSpeedUnit)
Sets the Ambient Speed Unit for ambient speed for various
RoadTypes. |
GetTravelBoundaryRequest.Builder |
avoidTollRoad(boolean avoidTollRoad)
This method is used set whether toll road should be avoided or not.
|
GetTravelBoundaryRequest.Builder |
bandingStyle(BandingStyle bandingStyle)
Sets the Banding Style to be used while processing this request.
|
GetTravelBoundaryRequest |
build()
Create the
GetTravelBoundaryRequest object. |
GetTravelBoundaryRequest.Builder |
DBResource(String dbResource)
Sets the Database resource to be used while processing this request.
|
GetTravelBoundaryRequest.Builder |
defaultAmbientSpeed(double defaultAmbientSpeed)
Sets the default Ambient Speed to be used for all Road types.
|
GetTravelBoundaryRequest.Builder |
destinationSrs(CoordSys destinationSrs)
Sets the Destination Coordinate System for points in the response.
|
GetTravelBoundaryRequest.Builder |
historicSpeedBucket(HistoricSpeedBucket historicSpeedBucket)
Sets the Historic Traffic time bucket to be used while processing this request.
|
GetTravelBoundaryRequest.Builder |
majorRoads(boolean majorRoads)
Sets whether to calculate the boundary using only major roads or not.
|
GetTravelBoundaryRequest.Builder |
maxOffRoadDistance(double maxOffRoadDistance)
Sets the maximum Off-Road Distance for this request.
|
GetTravelBoundaryRequest.Builder |
maxOffRoadDistanceUnit(LinearUnit maxOffRoadDistanceUnit)
Sets the maximum Off-Road Distance Unit for this request.
|
GetTravelBoundaryRequest.Builder |
propagationFactor(double defaultPropagationFactor)
Sets the propagation factor used for the calculation of the iso.
|
GetTravelBoundaryRequest.Builder |
propagationFactorOverride(Map<RoadType,Double> propagationFactorOverride)
Overrides the propagation factor to be used in the calculation of the iso
for a given
RoadType
Propagation factor applies only to isodistances, i.e. |
GetTravelBoundaryRequest.Builder |
returnHoles(boolean returnHoles)
Sets whether to return holes as part of response while calculating the boundary.
|
GetTravelBoundaryRequest.Builder |
returnIslands(boolean returnIslands)
Sets whether to return islands as part of response while calculating the boundary.
|
GetTravelBoundaryRequest.Builder |
simplificationFactor(double simplificationFactor)
Sets the Simplification Factor.
|
public Builder(IPoint point, double[] costs, LinearUnit linearUnit) throws RoutingException
point - Instance of IPoint containing the coordinates of the point for which you need to
calculate the boundary.costs - double array containing the cost value.linearUnit - LinearUnit instance, unit for the cost values.RoutingException - If something goes wrong while processing the request.public Builder(IPoint point, double[] costs, TimeUnit timeUnit) throws RoutingException
point - Instance of IPoint containing the coordinates of the point for which you need to
calculate the boundary.costs - double array containing the cost value.timeUnit - TimeUnit instance, unit for the cost values.RoutingException - If something goes wrong while processing the request.public GetTravelBoundaryRequest build() throws RoutingException
GetTravelBoundaryRequest object.GetTravelBoundaryRequest object.RoutingException - If something goes wrong while processing the request.public GetTravelBoundaryRequest.Builder maxOffRoadDistance(double maxOffRoadDistance)
maxOffRoadDistance - A double value for maxOffRoadDistance.public GetTravelBoundaryRequest.Builder maxOffRoadDistanceUnit(LinearUnit maxOffRoadDistanceUnit)
maxOffRoadDistanceUnit - LinearUnit used as maxOffRoad distance unit.public GetTravelBoundaryRequest.Builder returnHoles(boolean returnHoles)
returnHoles - A boolean, true if holes are to be returned in response, false otherwise.
Defaults to false.public GetTravelBoundaryRequest.Builder returnIslands(boolean returnIslands)
returnIslands - A boolean, true if islands are to be returned in response, false otherwise.
Defaults to false.public GetTravelBoundaryRequest.Builder simplificationFactor(double simplificationFactor)
simplificationFactor - A double value for simplification factor.
If not specified, default of 0.5 will be used.public GetTravelBoundaryRequest.Builder majorRoads(boolean majorRoads)
majorRoads - A boolean, true value means boundary is calculated using major roads only,
false means minor roads are also considered. Defaults to true.public GetTravelBoundaryRequest.Builder destinationSrs(CoordSys destinationSrs)
destinationSrs - CoordSys, Destination Coordinate System for points in the response.
Default is CoordSysConstants.longLatWGS84.public GetTravelBoundaryRequest.Builder historicSpeedBucket(HistoricSpeedBucket historicSpeedBucket)
historicSpeedBucket - HistoricSpeedBucket, to be used while processing the request.
Default is HistoricSpeedBucket.NONE.public GetTravelBoundaryRequest.Builder bandingStyle(BandingStyle bandingStyle)
bandingStyle - BandingStyle value; Default is BandingStyle.DONUT.public GetTravelBoundaryRequest.Builder ambientSpeeds(Map<RoadType,Double> ambientSpeeds)
RoadType has to be set separately.public GetTravelBoundaryRequest.Builder defaultAmbientSpeed(double defaultAmbientSpeed)
defaultAmbientSpeed - A double value for Default Ambient Speed.public GetTravelBoundaryRequest.Builder ambientSpeedUnit(VelocityUnit ambientSpeedUnit)
RoadTypes.ambientSpeedUnit - VelocityUnit, speed unit to be used for Ambient speeds.public GetTravelBoundaryRequest.Builder DBResource(String dbResource)
dbResource - Name of Database resource to be used while processing this request.public GetTravelBoundaryRequest.Builder propagationFactor(double defaultPropagationFactor)
public GetTravelBoundaryRequest.Builder propagationFactorOverride(Map<RoadType,Double> propagationFactorOverride)
RoadType
Propagation factor applies only to isodistances, i.e. an iso with a
distance unit.propagationFactorOverride - Map
Propagation factor values between 0.0 and 1.0 inclusive are valid.public GetTravelBoundaryRequest.Builder avoidTollRoad(boolean avoidTollRoad)
avoidTollRoad -