public static class SpeedLimitManager.GetSpeedLimitOptions extends Object
Constructor and Description |
---|
GetSpeedLimitOptions(GeoPoint point,
int heading)
Initialize a new instance of
SpeedLimitManager.GetSpeedLimitOptions . |
Modifier and Type | Method and Description |
---|---|
SpeedLimitManager.GetSpeedLimitOptions |
setHeading(int heading)
Sets the heading at the point in order to determine the direction of travel and help
identify the road segment to get the speed limit of.
|
SpeedLimitManager.GetSpeedLimitOptions |
setOutputFields(int outputFields)
Sets the output fields that should be returned.
|
SpeedLimitManager.GetSpeedLimitOptions |
setPoint(GeoPoint point)
Set the
GeoPoint to determine the speed limit at. |
SpeedLimitManager.GetSpeedLimitOptions |
setUnits(UserPreferences.Unit units)
Sets the preferred units.
|
String |
toString() |
public GetSpeedLimitOptions(GeoPoint point, int heading)
SpeedLimitManager.GetSpeedLimitOptions
.point
- The point to get the speed limit at.heading
- The heading at the point to help determine the road based on direction of
travel.SpeedLimitManager.SpeedLimitManagerException
- when the input is invalid.SpeedLimitManager.GetSpeedLimitOptions.setPoint(GeoPoint)
,
SpeedLimitManager.GetSpeedLimitOptions.setHeading(int)
public SpeedLimitManager.GetSpeedLimitOptions setPoint(@NonNull GeoPoint point)
GeoPoint
to determine the speed limit at.point
- The point.SpeedLimitManager.SpeedLimitManagerException
- When the input is invalid.public SpeedLimitManager.GetSpeedLimitOptions setHeading(int heading)
heading
- The heading value in degrees. Accepted range is
to , where 0 degrees is North.SpeedLimitManager.SpeedLimitManagerException
- When the heading is out of range.public SpeedLimitManager.GetSpeedLimitOptions setOutputFields(int outputFields)
outputFields
- Output field. Can be any combination of the following:
public SpeedLimitManager.GetSpeedLimitOptions setUnits(UserPreferences.Unit units)
units
- The preferred units.SpeedLimitManager.SpeedLimitManagerException
- When units
is null
.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.