TrafficFlowSegmentData Class
- java.
lang. Object - com.
azure. maps. traffic. models. TrafficFlowSegmentData
- com.
public final class TrafficFlowSegmentData
This object is returned from a successful Traffic Flow Segment call.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Float |
getConfidence()
Get the confidence property: The confidence is a measure of the quality of the provided travel time and speed. |
|
Traffic |
getCoordinates()
Get the coordinates property: Includes the coordinates describing the shape of the segment. |
| Integer |
getCurrentSpeed()
Get the current |
| Integer |
getCurrentTravelTime()
Get the current |
| Integer |
getFreeFlowSpeed()
Get the free |
| Integer |
getFreeFlowTravelTime()
Get the free |
| String |
getFunctionalRoadClass()
Get the functional |
| String |
getOpenLrCode()
Get the open |
| String |
getVersion()
Get the version property: This indicates the software version that generated the response. |
Methods inherited from java.lang.Object
Method Details
getConfidence
public Float getConfidence()
Get the confidence property: The confidence is a measure of the quality of the provided travel time and speed. A value of 1 means full confidence, that the response contains the highest quality data. Lower values indicate the degree that the response may vary from the actual conditions on the road. Any value greater than 0.6 means the information was based on real-time probe input. A value of 0.5 means the reported speed is based on historical info. A value between 0.5 and 0.6 has a calculated weighted average between historical and live speeds.
Returns:
getCoordinates
public TrafficFlowSegmentDataPropertiesCoordinates getCoordinates()
Get the coordinates property: Includes the coordinates describing the shape of the segment. Coordinates are shifted from the road depending on the zoom level to support high quality visualization in every scale.
Returns:
getCurrentSpeed
public Integer getCurrentSpeed()
Get the currentSpeed property: The current average speed at the selected point, in the units requested. This is calculated from the currentTravelTime and the length of the selected segment.
Returns:
getCurrentTravelTime
public Integer getCurrentTravelTime()
Get the currentTravelTime property: Current travel time in seconds, across this traffic segment, based on fused real-time measurements between the defined locations in the specified direction.
Returns:
getFreeFlowSpeed
public Integer getFreeFlowSpeed()
Get the freeFlowSpeed property: The free flow speed expected under ideal conditions, expressed in the units requested. This is related to the freeFlowTravelTime.
Returns:
getFreeFlowTravelTime
public Integer getFreeFlowTravelTime()
Get the freeFlowTravelTime property: The travel time in seconds, across this traffic segment, which would be expected under ideal free flow conditions.
Returns:
getFunctionalRoadClass
public String getFunctionalRoadClass()
Get the functionalRoadClass property: Functional Road Class. This indicates the road type: 0: Motorway, freeway or other major road. 1: Major road, less important than a motorway. 2: Other major road. 3: Secondary road. 4: Local connecting road. 5: Local road of high importance. 6: Local road.
Returns:
getOpenLrCode
public String getOpenLrCode()
Get the openLrCode property: OpenLR code for segment. See [OpenLR](https://en.wikipedia.org/wiki/OpenLR) for more information on the use of Open LR codes.
Returns:
getVersion
public String getVersion()
Get the version property: This indicates the software version that generated the response.
Returns: