public class LegStep extends Object
StepManeuver
object and travel to the following LegStep
.Constructor and Description |
---|
LegStep()
Empty constructor
|
LegStep(List<StepIntersection> intersections)
Constructor taking in a list of
StepIntersection s. |
LegStep(String name,
String rotaryName,
StepManeuver maneuver)
|
Modifier and Type | Method and Description |
---|---|
String |
getDestinations()
String with the destinations of the way along which the travel proceeds.
|
double |
getDistance()
The distance traveled from the maneuver to the next
LegStep . |
double |
getDuration()
The estimated travel time from the maneuver to the next
LegStep . |
String |
getGeometry()
Gives the geometry of the leg step.
|
List<StepIntersection> |
getIntersections()
Provides a list of all the intersections connected to the current way the user is traveling along.
|
StepManeuver |
getManeuver()
A
StepManeuver object that typically represents the first coordinate making up the
getGeometry() . |
String |
getMode()
indicates the mode of transportation in the step.
|
String |
getName()
String with the name of the way along which the travel proceeds.
|
String |
getPronunciation()
The pronunciation hint of the way name.
|
String |
getRef()
String with reference number or code of the way along which the travel proceeds.
|
String |
getRotaryName()
An optional string indicating the name of the rotary.
|
String |
getRotaryPronunciation()
An optional string indicating the pronunciation of the name of the rotary.
|
double |
getWeight()
Specifies a decimal precision of edge weights, default value 1.
|
void |
setDestinations(String destinations)
String with the destinations of the way along which the travel proceeds.
|
void |
setDistance(double distance)
The distance traveled from the maneuver to the next
LegStep . |
void |
setDuration(double duration)
The estimated travel time from the maneuver to the next
LegStep . |
void |
setGeometry(String geometry)
Sets the geometry of the leg step.
|
void |
setIntersections(List<StepIntersection> intersections)
Provide a
List of objects representing all intersections along the step. |
void |
setManeuver(StepManeuver maneuver)
Provide a
StepManeuver object that typically represents the first coordinate making up the
getGeometry() . |
void |
setMode(String mode)
indicates the mode of transportation in the step.
|
void |
setName(String name)
Sets String with the name of the way along which the travel proceeds.
|
void |
setPronunciation(String pronunciation)
The pronunciation hint of the way name.
|
void |
setRef(String ref)
Sets String with reference number or code of the way along which the travel proceeds.
|
void |
setRotaryName(String rotaryName)
An optional string indicating the name of the rotary.
|
void |
setRotaryPronunciation(String rotaryPronunciation)
An optional string indicating the pronunciation of the name of the rotary.
|
void |
setWeight(double weight)
Specifies a decimal precision of edge weights, default value 1.
|
public LegStep()
public LegStep(List<StepIntersection> intersections)
StepIntersection
s.intersections
- StepIntersection
public LegStep(String name, String rotaryName, StepManeuver maneuver)
name
- String with the name of the way along which the travel proceeds.rotaryName
- String indicating the name of the rotary.maneuver
- one StepManeuver
object.public double getWeight()
public void setWeight(double weight)
weight
- double value representing the edge weight.public double getDistance()
LegStep
.public void setDistance(double distance)
LegStep
.distance
- a double number with unit meters.public double getDuration()
LegStep
.public void setDuration(double duration)
LegStep
.duration
- a double number with unit seconds.public String getGeometry()
public void setGeometry(String geometry)
geometry
- an encoded polyline string.public String getName()
String
representing the way along which the travel proceeds.public void setName(String name)
name
- a String
representing the way along which the travel proceeds.public String getRef()
public void setRef(String ref)
ref
- a String representing the reference number or code of the way along which the travel proceeds.public String getDestinations()
public void setDestinations(String destinations)
destinations
- a String with the destinations of the way along which the travel proceeds.
Optionally included, if data is available.public String getMode()
public void setMode(String mode)
mode
- a String indicating the mode of transportation.public StepManeuver getManeuver()
StepManeuver
object that typically represents the first coordinate making up the
getGeometry()
.StepManeuver
object.public void setManeuver(StepManeuver maneuver)
StepManeuver
object that typically represents the first coordinate making up the
getGeometry()
.maneuver
- a StepManeuver
for the given step.public List<StepIntersection> getIntersections()
StepIntersection
representing all intersections along the step.public void setIntersections(List<StepIntersection> intersections)
List
of objects representing all intersections along the step.intersections
- List of StepIntersection
representing all intersections along the step.public String getRotaryName()
public void setRotaryName(String rotaryName)
rotaryName
- a String with the rotary name.public String getRotaryPronunciation()
public void setRotaryPronunciation(String rotaryPronunciation)
rotaryPronunciation
- String in IPA with the rotary name's pronunciation.public String getPronunciation()
public void setPronunciation(String pronunciation)
pronunciation
- provide a String with the pronunciation of the way name.© 2015–2016 Mapbox. All rights reserved.