public static enum QueryResult.Position extends Enum<QueryResult.Position>
Due to precision differences it is hard to define when something is exactly 90° or "on-node" like TOWER or PILLAR or if it is more "on-edge" (EDGE). The default mechanism is to prefer "on-edge" even if it could be 90°. To prefer "on-node" you could use e.g. GHPoint.equals with a default precision of 1e-6.
Modifier and Type | Method and Description |
---|---|
static QueryResult.Position |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryResult.Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryResult.Position EDGE
public static final QueryResult.Position TOWER
public static final QueryResult.Position PILLAR
public static QueryResult.Position[] values()
for (QueryResult.Position c : QueryResult.Position.values()) System.out.println(c);
public static QueryResult.Position valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2020. All rights reserved.