public class LegAnnotation
extends java.lang.Object
| Constructor and Description |
|---|
LegAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getCongestion()
The congestion between each pair of coordinates.
|
double[] |
getDistance()
The distance, in meters, between each pair of coordinates.
|
double[] |
getDuration()
The duration, in seconds, between each pair of coordinates.
|
double[] |
getSpeed()
The speed, in meters per second, between each pair of coordinates.
|
void |
setCongestion(java.lang.String[] congestion)
Set the congestion between each pair of coordinates.
|
void |
setDistance(double[] distance)
Set the duration, in seconds, between each pair of coordinates.
|
void |
setDuration(double[] duration)
Set the duration, in seconds, between each pair of coordinates.
|
void |
setSpeed(double[] speed)
Set the speed, in meters per second, between each pair of coordinates.
|
public double[] getDistance()
public void setDistance(double[] distance)
distance - a double array with each entry being a duration value between two of the routeLeg geometry
coordinates.public double[] getDuration()
public void setDuration(double[] duration)
duration - a double array with each entry being a duration value between two of the routeLeg geometry
coordinates.public double[] getSpeed()
public void setSpeed(double[] speed)
speed - a double array with each entry being a speed value between two of the routeLeg geometry coordinates.public java.lang.String[] getCongestion()
public void setCongestion(java.lang.String[] congestion)
congestion - a String array with each entry being a congestion value between two of the routeLeg geometry
coordinates.