Class TrafficFlowSegmentOptions

java.lang.Object
com.azure.maps.traffic.models.TrafficFlowSegmentOptions

public final class TrafficFlowSegmentOptions extends Object
TrafficFlowSegmentOptions class
  • 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

      public TrafficFlowSegmentStyle 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

      public TrafficFlowSegmentOptions setZoom(int zoom)
      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

      public TrafficFlowSegmentOptions setCoordinates(com.azure.core.models.GeoPosition coordinates)
      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

      public SpeedUnit getUnit()
      gets unit
      Returns:
      SpeedUnit
    • setUnit

      public TrafficFlowSegmentOptions setUnit(SpeedUnit unit)
      sets unit
      Parameters:
      unit - Unit of speed in KMPH or MPH
      Returns:
      TrafficFlowSegmentOptions
    • getThickness

      public Integer getThickness()
      gets thickness
      Returns:
      integer
    • setThickness

      public TrafficFlowSegmentOptions setThickness(Integer thickness)
      sets thickness
      Parameters:
      thickness - The value of the width of the line representing traffic.
      Returns:
      TrafficFlowSegmentOptions
    • getOpenLr

      public Boolean getOpenLr()
      gets openLr
      Returns:
      boolean
    • setOpenLr

      public TrafficFlowSegmentOptions setOpenLr(Boolean openLr)
      sets openLr
      Parameters:
      openLr - Boolean on whether the response should include OpenLR code
      Returns:
      TrafficFlowSegmentOptions