public class TransitOptions extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
TransitOptions.Property |
Constructor and Description |
---|
TransitOptions()
Creates new TransitOptions object.
|
TransitOptions(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getArrivalTime()
Returns value of arrivalTime property.
|
java.util.Date |
getDepartureTime()
Returns value of departureTime property.
|
TransitMode[] |
getModes()
Returns value of modes property.
|
TransitRoutePreference |
getRoutingPreference()
Returns value of routingPreference property.
|
void |
setArrivalTime(java.util.Date value)
Sets new value for arrivalTime property.
|
void |
setDepartureTime(java.util.Date value)
Sets new value for departureTime property.
|
void |
setModes(TransitMode[] modes)
Sets new value for modes property.
|
void |
setRoutingPreference(TransitRoutePreference value)
Sets new value for routingPreference property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public TransitOptions()
@Deprecated public TransitOptions(Map map)
map
- owner Map objectpublic java.util.Date getArrivalTime()
Contains the desired arrival time for the route, specified as a Date object. The Date object measures time in milliseconds since 1 January 1970. If arrival time is specified, departure time is ignored.
setArrivalTime(java.util.Date)
public void setArrivalTime(java.util.Date value)
value
- new property valuegetArrivalTime()
public java.util.Date getDepartureTime()
Contains the desired departure time for the route, specified as a Date object. The Date object measures time in milliseconds since 1 January 1970. If neither departure time nor arrival time is specified, the time is assumed to be "now".
setDepartureTime(java.util.Date)
public void setDepartureTime(java.util.Date value)
value
- new property valuegetDepartureTime()
public TransitMode[] getModes()
Contains one or more preferred modes of transit, such as bus or train. If no preference is given, the API returns the default best route.
setModes(com.teamdev.jxmaps.TransitMode[])
public void setModes(TransitMode[] modes)
modes
- new property valuegetModes()
public TransitRoutePreference getRoutingPreference()
Contains a preference that can bias the choice of transit route, such as less walking. If no preference is given, the API returns the default best route.
setRoutingPreference(com.teamdev.jxmaps.TransitRoutePreference)
public void setRoutingPreference(TransitRoutePreference value)
value
- new property valuegetRoutingPreference()