public class LegAnnotation extends Object
Constructor and Description |
---|
LegAnnotation() |
Modifier and Type | Method and Description |
---|---|
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(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 String[] getCongestion()
public void setCongestion(String[] congestion)
congestion
- a String array with each entry being a congestion value between two of the routeLeg geometry
coordinates.© 2015–2016 Mapbox. All rights reserved.