public class DirectionsWaypoint extends 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.
|
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(String name)
Provide a way name which the waypoint's coordinate is snapped to.
|
public String getName()
public void setName(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
.© 2015–2016 Mapbox. All rights reserved.