Package com.azure.maps.traffic.models
Class TrafficIncidentDetailOptions
java.lang.Object
com.azure.maps.traffic.models.TrafficIncidentDetailOptions
TrafficIncidentDetailOptions class
-
Constructor Summary
ConstructorDescriptionTrafficIncidentDetailOptions constructorTrafficIncidentDetailOptions
(com.azure.core.models.GeoBoundingBox boundingBox, IncidentDetailStyle style, int boundingZoom, String trafficModelId) TrafficIncidentDetailOptions constructor -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.models.GeoBoundingBox
get bounding boxint
get bounding zoomget expand clusterget incident detail styleget incident geometry typeget languageget original positionget projection standardget traffic model idsetBoundingBox
(com.azure.core.models.GeoBoundingBox boundingbox) sets bounding boxsetBoundingZoom
(int boundingZoom) set bounding zoomsetExpandCluster
(Boolean expandCluster) set expand clustersetIncidentDetailStyle
(IncidentDetailStyle incidentDetailStyle) sets incident detail stylesetIncidentGeometryType
(IncidentGeometryType incidentGeometryType) set incident geometry typesetLanguage
(String language) sets languagesetOriginalPosition
(Boolean originalPosition) set original positionsetProjectionStandard
(ProjectionStandard projectionStandard) set projection standardsetTrafficmodelId
(String trafficmodelid) sets traffic model id
-
Constructor Details
-
TrafficIncidentDetailOptions
public TrafficIncidentDetailOptions()TrafficIncidentDetailOptions constructor -
TrafficIncidentDetailOptions
public TrafficIncidentDetailOptions(com.azure.core.models.GeoBoundingBox boundingBox, IncidentDetailStyle style, int boundingZoom, String trafficModelId) TrafficIncidentDetailOptions constructor- Parameters:
boundingBox
- The boundingbox is represented by two value pairs describing it's corners (first pair for lower left corner and second for upper right).style
- The style that will be used to render the tile in Traffic Incident Tile API.boundingZoom
- Zoom level for desired tile. 0 to 22 for raster tiles, 0 through 22 for vector tilestrafficModelId
- Number referencing traffic model. This can be obtained from the Viewport API.
-
-
Method Details
-
getIncidentDetailStyle
get incident detail style- Returns:
- IncidentDetailStyle
-
setIncidentDetailStyle
sets incident detail style- Parameters:
incidentDetailStyle
- The style that will be used to render the tile in Traffic Incident Tile API.- Returns:
- TrafficIncidentDetailOptions
-
getBoundingBox
public com.azure.core.models.GeoBoundingBox getBoundingBox()get bounding box- Returns:
- GeoBoundingBox
-
setBoundingBox
public TrafficIncidentDetailOptions setBoundingBox(com.azure.core.models.GeoBoundingBox boundingbox) sets bounding box- Parameters:
boundingbox
- The boundingbox is represented by two value pairs describing it's corners (first pair for lower left corner and second for upper right).- Returns:
- TrafficIncidentDetailOptions
-
getBoundingZoom
public int getBoundingZoom()get bounding zoom- Returns:
- int
-
setBoundingZoom
set bounding zoom- Parameters:
boundingZoom
- Zoom level for desired tile. 0 to 22 for raster tiles, 0 through 22 for vector tiles- Returns:
- TrafficIncidentDetailOptions
-
getTrafficIncidentDetailTrafficModelId
get traffic model id- Returns:
- String
-
setTrafficmodelId
sets traffic model id- Parameters:
trafficmodelid
- Number referencing traffic model. This can be obtained from the Viewport API.- Returns:
- TrafficIncidentDetailOptions
-
getLanguage
get language- Returns:
- String
-
setLanguage
sets language- Parameters:
language
- ISO 639-1 code for the output language.- Returns:
- TrafficIncidentDetailOptions
-
getProjectionStandard
get projection standard- Returns:
- ProjectionStandard
-
setProjectionStandard
set projection standard- Parameters:
projectionStandard
- The projection used to specify the coordinates in the request and response.- Returns:
- TrafficIncidentDetailOptions
-
getIncidentGeometryType
get incident geometry type- Returns:
- IncidentGeometryType
-
setIncidentGeometryType
public TrafficIncidentDetailOptions setIncidentGeometryType(IncidentGeometryType incidentGeometryType) set incident geometry type- Parameters:
incidentGeometryType
- The type of vector geometry added to incidents (returned in the element of the response).- Returns:
- TrafficIncidentDetailOptions
-
getExpandCluster
get expand cluster- Returns:
- boolean
-
setExpandCluster
set expand cluster- Parameters:
expandCluster
- Boolean to indicate whether to list all traffic incidents in a cluster separately- Returns:
- TrafficIncidentDetailOptions
-
getOriginalPosition
get original position- Returns:
- boolean
-
setOriginalPosition
set original position- Parameters:
originalPosition
- Boolean on whether to return the original position of the incident as well as the one shifted to the beginning of the traffic tube- Returns:
- TrafficIncidentDetailOptions
-