public class DirectionsRoute extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
DirectionsRoute.ArrayProperty |
Constructor and Description |
---|
DirectionsRoute()
Creates new DirectionsRoute object.
|
DirectionsRoute(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
LatLngBounds |
getBounds()
Returns value of bounds property.
|
java.lang.String |
getCopyrights()
Returns value of copyrights property.
|
DirectionsLeg[] |
getLegs()
Returns value of legs property.
|
LatLng[] |
getOverviewPath()
Returns value of overviewPath property.
|
java.lang.String |
getOverviewPolyline()
Returns value of overviewPolyline property.
|
java.lang.String[] |
getWarnings()
Returns value of warnings property.
|
double[] |
getWaypointOrder()
Returns value of waypointOrder property.
|
void |
setBounds(LatLngBounds value)
Sets new value for bounds property.
|
void |
setCopyrights(java.lang.String value)
Sets new value for copyrights property.
|
void |
setLegs(DirectionsLeg[] legs)
Sets new value for legs property.
|
void |
setOverviewPath(LatLng[] latlngs)
Sets new value for overviewPath property.
|
void |
setOverviewPolyline(java.lang.String value)
Sets new value for overviewPolyline property.
|
void |
setWarnings(java.lang.String[] warnings)
Sets new value for warnings property.
|
void |
setWaypointOrder(double[] order)
Sets new value for waypointOrder property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public DirectionsRoute()
@Deprecated public DirectionsRoute(Map map)
map
- owner Map objectpublic LatLngBounds getBounds()
Represents the bounds for this route.
setBounds(com.teamdev.jxmaps.LatLngBounds)
public void setBounds(LatLngBounds value)
value
- new property valuegetBounds()
public java.lang.String getCopyrights()
Represents the copyrights text to be displayed for this route.
setCopyrights(java.lang.String)
public void setCopyrights(java.lang.String value)
value
- new property valuegetCopyrights()
public DirectionsLeg[] getLegs()
Collection of DirectionsLegs, each of which contains information about the steps of which it is composed. There will be one leg for each waypoint or destination specified. So a route with no waypoints will contain one DirectionsLeg and a route with one waypoint will contain two.
setLegs(com.teamdev.jxmaps.DirectionsLeg[])
public void setLegs(DirectionsLeg[] legs)
legs
- new property valuegetLegs()
public LatLng[] getOverviewPath()
Collection of LatLngs representing the entire course of this route. The path is simplified in order to make it suitable in contexts where a small number of vertices is required (such as Static Maps API URLs).
setOverviewPath(com.teamdev.jxmaps.LatLng[])
public void setOverviewPath(LatLng[] latlngs)
latlngs
- new property valuegetOverviewPath()
public java.lang.String getOverviewPolyline()
Represents an encoded polyline representation of the route in overview_path. This polyline is an approximate (smoothed) path of the resulting directions.
setOverviewPolyline(java.lang.String)
public void setOverviewPolyline(java.lang.String value)
value
- new property valuegetOverviewPolyline()
public java.lang.String[] getWarnings()
Collection of string, each of which contains warnings to be displayed when showing these directions.
setWarnings(java.lang.String[])
public void setWarnings(java.lang.String[] warnings)
warnings
- new property valuegetWarnings()
public double[] getWaypointOrder()
If optimizeWaypoints was set to true, this field will contain the re-ordered permutation of the input waypoints.
setWaypointOrder(double[])
public void setWaypointOrder(double[] order)
order
- new property valuegetWaypointOrder()