public class WalkStep extends Object
Turn onto Broadway from W 57th St (coming from 7th Ave):
distance = 100 (say)
walkDirection = RIGHT
streetName = Broadway
everything else null/false
Now, turn from Broadway onto Central Park S via Columbus Circle
distance = 200 (say)
walkDirection = CIRCLE_COUNTERCLOCKWISE
streetName = Central Park S
exit = 1 (first exit)
immediately everything else false
Instead, go through the circle to continue on Broadway
distance = 100 (say)
walkDirection = CIRCLE_COUNTERCLOCKWISE
streetName = Broadway
exit = 3
stayOn = true
everything else false
Modifier and Type | Field and Description |
---|---|
AbsoluteDirection |
absoluteDirection
The absolute direction of this step.
|
List<LocalizedAlert> |
alerts |
double |
angle |
Boolean |
area
This step is on an open area, such as a plaza or train platform, and thus the directions should say something like "cross"
|
BikeRentalStationInfo |
bikeRentalOffStation
The bike rental on/off station info.
|
BikeRentalStationInfo |
bikeRentalOnStation
The bike rental on/off station info.
|
Boolean |
bogusName
The name of this street was generated by the system, so we should only display it once, and generally just display right/left directions
|
double |
distance
The distance in meters that this step takes.
|
List<Edge> |
edges
The street edges that make up this walkStep.
|
List<P2<Double>> |
elevation
The elevation profile as a comma-separated list of x,y values.
|
String |
exit
When exiting a highway or traffic circle, the exit name/number.
|
double |
lat
The latitude of start of the step
|
double |
lon
The longitude of start of the step
|
String |
newMode
The walkStep's mode; only populated if this is the first step of that mode in the leg.
|
RelativeDirection |
relativeDirection
The relative direction of this step.
|
Boolean |
stayOn
Indicates whether or not a street changes direction at an intersection.
|
String |
streetName
The name of the street.
|
Constructor and Description |
---|
WalkStep() |
Modifier and Type | Method and Description |
---|---|
void |
addAlerts(Collection<Alert> newAlerts,
Locale locale) |
List<P2<Double>> |
getElevation() |
static RelativeDirection |
getRelativeDirection(double lastAngle,
double thisAngle,
boolean roundabout) |
void |
setAbsoluteDirection(double thisAngle) |
void |
setDirections(double lastAngle,
double thisAngle,
boolean roundabout) |
String |
streetNameNoParens() |
String |
toString() |
public double distance
public RelativeDirection relativeDirection
public String streetName
public AbsoluteDirection absoluteDirection
public String exit
public Boolean stayOn
public Boolean area
public Boolean bogusName
public double lon
public double lat
public List<P2<Double>> elevation
public List<LocalizedAlert> alerts
public transient double angle
public transient String newMode
public transient List<Edge> edges
public transient BikeRentalStationInfo bikeRentalOnStation
public transient BikeRentalStationInfo bikeRentalOffStation
public void setDirections(double lastAngle, double thisAngle, boolean roundabout)
public static RelativeDirection getRelativeDirection(double lastAngle, double thisAngle, boolean roundabout)
public void setAbsoluteDirection(double thisAngle)
public void addAlerts(Collection<Alert> newAlerts, Locale locale)
public String streetNameNoParens()
Copyright © 2019. All rights reserved.