NavigationRoadStretchRenderingData

public class NavigationRoadStretchRenderingData extends Object

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

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
String

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].

public int hashCode ()

public String toString ()