AI-generated Key Takeaways
- 
          
NavigationRoadStretchRenderingDatadefines a road section within a route and its rendering style based on traffic. - 
          
It includes information about the style, offset from the route start, and length of the section.
 - 
          
Developers can use this class to customize the visual representation of different road segments in navigation.
 - 
          
NavigationRoadStretchRenderingData.Styleprovides different rendering styles, andNavigationRoadStretchRenderingData.Builderhelps create instances of the class. 
Defines an individual road stretch within a route polyline, and its rendering style based on traffic conditions.
Nested Class Summary
| class | NavigationRoadStretchRenderingData.Builder | A Builder class for constructing instances of NavigationRoadStretchRenderingData.  | 
        |
| enum | NavigationRoadStretchRenderingData.Style | Names of the rendering styles that can be applied to a road stretch. | |
Public Constructor Summary
| 
               
                NavigationRoadStretchRenderingData(NavigationRoadStretchRenderingData.Style style, int offsetMeters, int lengthMeters)
               
           | 
        
Public Method Summary
| boolean | 
               
                equals(Object o)
                 
          Tests if this  
              NavigationRoadStretchRenderingData is equal to another. | 
        
| int | 
               
                getLengthMeters()
                 
          Returns the length of the road stretch, in meters. 
               | 
        
| int | 
               
                getOffsetMeters()
                 
          Returns the offset of the road stretch relative to the start of the polyline (within which the
 road stretch is defined), in meters. 
               | 
        
| NavigationRoadStretchRenderingData.Style | 
               
                getStyle()
                 
          Returns the rendering style as an indication of the traffic along the road stretch. 
               | 
        
| int | 
               
                hashCode()
               
           | 
        
| String | 
               
                toString()
               
           | 
        
Inherited Method Summary
Public Constructors
public NavigationRoadStretchRenderingData (NavigationRoadStretchRenderingData.Style style, int offsetMeters, int lengthMeters)
Parameters
| style | |
|---|---|
| offsetMeters | |
| lengthMeters | 
Public Methods
public boolean equals (Object o)
Tests if this NavigationRoadStretchRenderingData is equal to another.
 
The NavigationRoadStretchRenderingData objects are considered equal if all attributes set on the NavigationRoadStretchRenderingData are equal.
Parameters
| o | 
|---|
public int getLengthMeters ()
Returns the length of the road stretch, in meters.
public int getOffsetMeters ()
Returns the offset of the road stretch relative to the start of the polyline (within which the road stretch is defined), in meters.
In other words, the offset indicates how far into the polyline this particular road stretch begins.
public NavigationRoadStretchRenderingData.Style getStyle ()
Returns the rendering style as an indication of the traffic along the road stretch. This informs clients how the road stretch should be rendered.
The rendering style should be applied between [offsetMeters, offsetMeters + lengthMeters].