SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class encapsulates important attributes to configure the routing calculation.
This class is part of the module routing.
Author: JANField Summary | |
String
|
TYPE_ECONOMY
Most economic route. |
String
|
TYPE_LENGTH
Shortest route. |
String
|
TYPE_SPEED
Fastest route. |
Constructor Summary | |
IWRouteOptions()
Creates a new router option object. |
Method Summary | |
number
|
getCitySpeed()
Returns the average driving speed in cities. |
number
|
getCountryRoadSpeed()
Returns the average driving speed on country roads. |
number
|
getHighwaySpeed()
Returns the average driving speed on highways. |
|
getMaxInterstations()
undocumented |
|
getMobilityProfile()
Gets the mobility profile (e.g. |
|
getProfile()
Gets the routing profile |
|
getTrafficProfiles()
Gets the traffic profiles (e.g. |
String
|
getType()
Returns the current routing type. |
|
getUserDefinedProfiles()
Gets the user defined profiles |
|
isInternationalRoutingAllowed()
return {boolean} |
|
isShapeEnabled()
return {boolean} |
void
|
setCitySpeed(citySpeed)
Sets the average driving speed in cities. |
void
|
setCountryRoadSpeed(countryRoadSpeed)
Sets the average driving speed on country roads. |
void
|
setHighwaySpeed(highwaySpeed)
Sets the average driving speed on highways. |
void
|
setInternationalRoutingAllowed(international)
Should routing beyond German borders be allowed |
|
setMaxInterstations(maxInterstations)
|
|
setMobilityProfile(profile)
Sets the mobility profile (e.g. |
|
setProfile(profile)
Sets the routing profile |
void
|
setShapeEnabled(shapeEnabled)
|
|
setTrafficProfiles(profiles)
Sets the traffic profiles (e.g. |
void
|
setType(type)
Sets the routing mode to calculate the route.
The default value is set to IWRouteOptions.TYPE_SPEED. |
|
setUserDefinedProfiles(profiles)
Sets the user defined profiles |
String
|
toString()
Returns a string representation for this object. |
Field Detail |
String TYPE_ECONOMY
String TYPE_LENGTH
String TYPE_SPEED
Constructor Detail |
IWRouteOptions()
Method Detail |
number getCitySpeed()
number
the average driving speed in cities.
number getCountryRoadSpeed()
number
the average driving speed on country roads
number getHighwaySpeed()
number
the average driving speed on highways
getMaxInterstations()
getMobilityProfile()
getProfile()
getTrafficProfiles()
String getType()
String
the current routing type
getUserDefinedProfiles()
isInternationalRoutingAllowed()
isShapeEnabled()
void setCitySpeed(citySpeed)
number citySpeed
- the average driving speed in cities
void
Throws
an exception if the speed value is not greater than zero.
void setCountryRoadSpeed(countryRoadSpeed)
number countryRoadSpeed
void
Throws an exception if the speed value is not greater than zero.
void setHighwaySpeed(highwaySpeed)
number highwaySpeed
- the average driving speed on highways
void
Throws an exception if the speed value is not greater than zero.
void setInternationalRoutingAllowed(international)
boolean international
void
setMaxInterstations(maxInterstations)
number maxInterstations
- number of maximal allowed interstations
setMobilityProfile(profile)
profile
- the profile name
setProfile(profile)
profile
void setShapeEnabled(shapeEnabled)
boolean shapeEnabled
void
setTrafficProfiles(profiles)
profiles
- an array of profile names
void setType(type)
The default value is set to IWRouteOptions.TYPE_SPEED.
String type
- the new routing mode
void
setUserDefinedProfiles(profiles)
profiles
- an array of profile names
String toString()
String