public class DirectionsWaypoint
extends java.lang.Object
| Constructor and Description |
|---|
DirectionsWaypoint()
Empty constructor
|
| Modifier and Type | Method and Description |
|---|---|
com.mapbox.services.commons.models.Position |
asPosition()
Converts double array
getLocation() to a Position. |
double[] |
getLocation()
an array with two double values representing the maneuver locations coordinate.
|
java.lang.String |
getName()
Provides the way name which the waypoint's coordinate is snapped to.
|
void |
setLocation(double[] location)
Sets double array of [longitude, latitude] for the snapped coordinate.
|
void |
setName(java.lang.String name)
Provide a way name which the waypoint's coordinate is snapped to.
|
public java.lang.String getName()
public void setName(java.lang.String name)
name - a String with the name of the way the coordinate snapped to.public double[] getLocation()
public void setLocation(double[] location)
location - array with the order [longitude, latitude].public com.mapbox.services.commons.models.Position asPosition()
getLocation() to a Position. You'll typically want to
use this format instead of getLocation() as it's easier to work with.Position.