public class DirectionsStep extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
DirectionsStep.ArrayProperty |
Constructor and Description |
---|
DirectionsStep()
Creates new DirectionsStep object.
|
DirectionsStep(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Distance |
getDistance()
Returns value of distance property.
|
Duration |
getDuration()
Returns value of duration property.
|
LatLng |
getEndLocation()
Returns value of endLocation property.
|
java.lang.String |
getInstructions()
Returns value of instructions property.
|
LatLng[] |
getPath()
Returns value of path property.
|
LatLng |
getStartLocation()
Returns value of startLocation property.
|
DirectionsStep[] |
getSteps()
Returns value of steps property.
|
TransitDetails |
getTransit()
Returns value of transit property.
|
TravelMode |
getTravelMode()
Returns value of travelMode property.
|
void |
setDistance(Distance value)
Sets new value for distance property.
|
void |
setDuration(Duration value)
Sets new value for duration property.
|
void |
setEndLocation(LatLng value)
Sets new value for endLocation property.
|
void |
setInstructions(java.lang.String value)
Sets new value for instructions property.
|
void |
setPath(LatLng[] points)
Sets new value for path property.
|
void |
setStartLocation(LatLng value)
Sets new value for startLocation property.
|
void |
setSteps(DirectionsStep[] steps)
Sets new value for steps property.
|
void |
setTransit(TransitDetails value)
Sets new value for transit property.
|
void |
setTravelMode(TravelMode value)
Sets new value for travelMode property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public DirectionsStep()
@Deprecated public DirectionsStep(Map map)
map
- owner Map objectpublic Distance getDistance()
Represents the distance covered by this step. This property may be undefined as the distance may be unknown.
setDistance(com.teamdev.jxmaps.Distance)
public void setDistance(Distance value)
value
- new property valuegetDistance()
public Duration getDuration()
Represents the typical time required to perform this step in seconds and in text form. This property may be undefined as the duration may be unknown.
setDuration(com.teamdev.jxmaps.Duration)
public void setDuration(Duration value)
value
- new property valuegetDuration()
public LatLng getEndLocation()
Represents the ending location of this step.
setEndLocation(com.teamdev.jxmaps.LatLng)
public void setEndLocation(LatLng value)
value
- new property valuegetEndLocation()
public java.lang.String getInstructions()
Represents instructions for this step.
setInstructions(java.lang.String)
public void setInstructions(java.lang.String value)
value
- new property valuegetInstructions()
public LatLng getStartLocation()
Represents the starting location of this step.
setStartLocation(com.teamdev.jxmaps.LatLng)
public void setStartLocation(LatLng value)
value
- new property valuegetStartLocation()
public DirectionsStep[] getSteps()
Represents sub-steps of this step. Specified for non-transit sections of transit routes.
setSteps(com.teamdev.jxmaps.DirectionsStep[])
public void setSteps(DirectionsStep[] steps)
steps
- new property valuegetSteps()
public LatLng[] getPath()
Contains a sequence of LatLngs describing the course of this step.
setPath(com.teamdev.jxmaps.LatLng[])
public void setPath(LatLng[] points)
points
- new property valuegetPath()
public TransitDetails getTransit()
Represents transit-specific details about this step. This property will be undefined unless the travel mode of this step is TRANSIT.
setTransit(com.teamdev.jxmaps.TransitDetails)
public void setTransit(TransitDetails value)
value
- new property valuegetTransit()
public TravelMode getTravelMode()
Represents the mode of travel used in this step.
setTravelMode(com.teamdev.jxmaps.TravelMode)
public void setTravelMode(TravelMode value)
value
- new property valuegetTravelMode()