public static class GetSegmentDataRequest.Builder extends Object
GetSegmentDataRequest object.| Constructor and Description |
|---|
Builder(IPoint point)
Creates Builder object for
GetSegmentDataRequest. |
Builder(String segmentId)
Creates Builder object for
GetSegmentDataRequest. |
| Modifier and Type | Method and Description |
|---|---|
GetSegmentDataRequest.Builder |
angularUnit(AngularUnit angularUnit)
Sets the angular unit for this builder.
|
GetSegmentDataRequest |
build()
Creates the
GetSegmentDataRequest object. |
GetSegmentDataRequest.Builder |
dbResource(String dbResource)
Sets the dbresource to be used for this builder.
|
GetSegmentDataRequest.Builder |
destinationCoordSys(CoordSys destinationSrs)
Sets the destination coordsys for this builder.
|
GetSegmentDataRequest.Builder |
distanceUnit(LinearUnit distanceUnit)
Sets the distance unit for this builder.
|
GetSegmentDataRequest.Builder |
segmentGeometryStyle(SegmentGeometryStyle geometryStyle)
Sets the segment geomewtry style for this builder.
|
GetSegmentDataRequest.Builder |
timeUnit(TimeUnit timeUnit)
Sets the time unit for this builder.
|
GetSegmentDataRequest.Builder |
velocityUnit(VelocityUnit velocityUnit)
Sets the velocity unit for this builder.
|
public Builder(IPoint point)
GetSegmentDataRequest.point - - The point for which segment information is to be fetched.public Builder(String segmentId)
GetSegmentDataRequest.segmentId - - The segmentId for which segment information is to be fetched.public GetSegmentDataRequest build() throws RoutingException
GetSegmentDataRequest object.GetSegmentDataRequest to be used with IGRAInstanceRoutingException - - If somethign goes wrong while creating GetSegmentDataRequestpublic GetSegmentDataRequest.Builder timeUnit(TimeUnit timeUnit)
timeUnit - - TimeUnitpublic GetSegmentDataRequest.Builder distanceUnit(LinearUnit distanceUnit)
distanceUnit - - LinearUnitpublic GetSegmentDataRequest.Builder velocityUnit(VelocityUnit velocityUnit)
velocityUnit - - VelocityUnitpublic GetSegmentDataRequest.Builder angularUnit(AngularUnit angularUnit)
angularUnit - - AngularUnitpublic GetSegmentDataRequest.Builder dbResource(String dbResource)
dbResource - - database resource to query for information.public GetSegmentDataRequest.Builder destinationCoordSys(CoordSys destinationSrs)
destinationSrs - - CoordSyspublic GetSegmentDataRequest.Builder segmentGeometryStyle(SegmentGeometryStyle geometryStyle)
geometryStyle - - SegmentGeometryStyle