public static enum Trip.PlanResult extends java.lang.Enum<Trip.PlanResult>
Trip.PlanListener
.Enum Constant and Description |
---|
DESTINATION_NOT_FOUND
Destination (and/or a waypoint) cannot be found.
|
INVALID_CRITERIA
Invalid criteria specified for the trip.
|
INVALID_DESTINATION
The destination has an invalid lat and/or lon.
|
INVALID_TRACK
Invalid
Track data. |
INVALID_WAYPOINT
One of the specified waypoints has an invalid lat and/or lon.
|
NO_TRIP_FOUND
No trip can be found between the specified source and destination locations.
|
NO_TRIP_FOUND_CRITERIA_FAILED
No trip can be found between the specified source and destination locations,
with regards to the specified planning criteria.
|
PLAN_OK
Trip plan succeeded.
|
SOURCE_NOT_FOUND
Source cannot be found.
|
TOO_MANY_WAYPOINTS
Too many waypoints in the trip.
|
TRIP_CANCELLED
Current Trip was cancelled with a
cancelTrip call. |
TRIP_NOT_FOUND
The specified Trip could not be found.
|
TRIP_PLANNING_ABANDONED
Trip planning was abandoned.
|
TRIP_PLANNING_INTERRUPTED
Trip planning was interrupted due to another
planTrip call being made before the first trip-plan finished. |
UNKNOWN_ERROR
Unknown error.
|
Modifier and Type | Method and Description |
---|---|
static Trip.PlanResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Trip.PlanResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Trip.PlanResult PLAN_OK
public static final Trip.PlanResult UNKNOWN_ERROR
public static final Trip.PlanResult SOURCE_NOT_FOUND
public static final Trip.PlanResult DESTINATION_NOT_FOUND
public static final Trip.PlanResult NO_TRIP_FOUND
public static final Trip.PlanResult NO_TRIP_FOUND_CRITERIA_FAILED
public static final Trip.PlanResult TRIP_PLANNING_ABANDONED
public static final Trip.PlanResult TRIP_PLANNING_INTERRUPTED
planTrip
call being made before the first trip-plan finished.public static final Trip.PlanResult TRIP_CANCELLED
cancelTrip
call.public static final Trip.PlanResult TRIP_NOT_FOUND
public static final Trip.PlanResult INVALID_DESTINATION
public static final Trip.PlanResult INVALID_WAYPOINT
public static final Trip.PlanResult TOO_MANY_WAYPOINTS
public static final Trip.PlanResult INVALID_CRITERIA
public static final Trip.PlanResult INVALID_TRACK
Track
data.public static Trip.PlanResult[] values()
for (Trip.PlanResult c : Trip.PlanResult.values()) System.out.println(c);
public static Trip.PlanResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null