public class OptimizationWaypoint extends DirectionsWaypoint
Constructor and Description |
---|
OptimizationWaypoint()
Empty constructor
|
OptimizationWaypoint(int waypointIndex,
int tripsIndex)
Construct an OptimizationWaypoint object.
|
Modifier and Type | Method and Description |
---|---|
int |
getTripsIndex()
Index to the trip object in the trips array that contains this waypoint.
|
int |
getWaypointIndex()
Index of the waypoint inside the optimization route.
|
void |
setTripsIndex(int tripsIndex)
Index to the trip object in the trips array that contains this waypoint.
|
void |
setWaypointIndex(int waypointIndex)
Index value
|
asPosition, getLocation, getName, setLocation, setName
public OptimizationWaypoint()
public OptimizationWaypoint(int waypointIndex, int tripsIndex)
waypointIndex
- index of position of the waypoint within the triptripsIndex
- index to the trip object in the trips array that contains this waypointpublic int getWaypointIndex()
public void setWaypointIndex(int waypointIndex)
waypointIndex
- valuepublic int getTripsIndex()
public void setTripsIndex(int tripsIndex)
tripsIndex
- index value© 2015–2016 Mapbox. All rights reserved.