Package com.azure.maps.traffic.models
Class TrafficFlowSegmentOptions
java.lang.Object
com.azure.maps.traffic.models.TrafficFlowSegmentOptions
TrafficFlowSegmentOptions class
-
Constructor Summary
ConstructorDescriptionConstructor for TrafficFlowSegmentOptionsTrafficFlowSegmentOptions
(TrafficFlowSegmentStyle style, int zoom, com.azure.core.models.GeoPosition coordinates) Constructor for TrafficFlowSegmentOptions -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.models.GeoPosition
get coordinatesgets openLrgets thicknessget TrafficFlowSegmentStylegetUnit()
gets unitint
getZoom()
get zoomsetCoordinates
(com.azure.core.models.GeoPosition coordinates) sets coordinatessets openLrsetThickness
(Integer thickness) sets thicknesssetTrafficFlowSegmentStyle
(TrafficFlowSegmentStyle trafficFlowSegmentStyle) Sets TrafficFlowTileStylesets unitsetZoom
(int zoom) sets zoom
-
Constructor Details
-
TrafficFlowSegmentOptions
public TrafficFlowSegmentOptions()Constructor for TrafficFlowSegmentOptions -
TrafficFlowSegmentOptions
public TrafficFlowSegmentOptions(TrafficFlowSegmentStyle style, int zoom, com.azure.core.models.GeoPosition coordinates) Constructor for TrafficFlowSegmentOptions- Parameters:
style
- The style to be used to render the tile.zoom
- Zoom level for the desired tile.coordinates
- Coordinates of the point close to the road segment. This parameter is a list of four coordinates, containing two coordinate pairs (lat, long, lat, long), and calculated using EPSG4326 projection.
-
-
Method Details
-
getTrafficFlowSegmentStyle
get TrafficFlowSegmentStyle- Returns:
- TrafficFlowSegmentStyle
-
setTrafficFlowSegmentStyle
public TrafficFlowSegmentOptions setTrafficFlowSegmentStyle(TrafficFlowSegmentStyle trafficFlowSegmentStyle) Sets TrafficFlowTileStyle- Parameters:
trafficFlowSegmentStyle
- The style to be used to render the tile.- Returns:
- TrafficFlowSegmentOptions
-
getZoom
public int getZoom()get zoom- Returns:
- int
-
setZoom
sets zoom- Parameters:
zoom
- Zoom level for the desired tile.- Returns:
- TrafficFlowSegmentOptions
-
getCoordinates
public com.azure.core.models.GeoPosition getCoordinates()get coordinates- Returns:
- GeoPosition
-
setCoordinates
sets coordinates- Parameters:
coordinates
- Coordinates of the point close to the road segment. This parameter is a list of four coordinates, containing two coordinate pairs (lat, long, lat, long), and calculated using EPSG4326 projection.- Returns:
- TrafficFlowSegmentOptions
-
getUnit
gets unit- Returns:
- SpeedUnit
-
setUnit
sets unit- Parameters:
unit
- Unit of speed in KMPH or MPH- Returns:
- TrafficFlowSegmentOptions
-
getThickness
gets thickness- Returns:
- integer
-
setThickness
sets thickness- Parameters:
thickness
- The value of the width of the line representing traffic.- Returns:
- TrafficFlowSegmentOptions
-
getOpenLr
gets openLr- Returns:
- boolean
-
setOpenLr
sets openLr- Parameters:
openLr
- Boolean on whether the response should include OpenLR code- Returns:
- TrafficFlowSegmentOptions
-