Class IWRouteOptions

Extends ARouteOptions.

This class encapsulates important attributes for justifying the routing algorithm.

Author: JAN

Field 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
 int getCitySpeed()
           Returns the average driving speed in cities.
 int getCountryRoadSpeed()
           Returns the average driving speed on country roads.
 int getHighwaySpeed()
           Returns the average driving speed on highways.
 String getType()
           Returns the current routing type.
 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 setType(type)
           Sets the routing mode to calculate the route.

  • IWRouteOptions.TYPE_SPEED - fastest route
  • IWRouteOptions.TYPE_LENGTH - shortest route
  • IWRouteOptions.TYPE_ECONOMY - most economic route

The default value is set to IWRouteOptions.TYPE_SPEED.

 String toString()
           Returns a string representation for this object.
 
Methods inherited from class ARouteOptions
setShapeEnabled(shapeEnabled)
isShapeEnabled()


Field Detail

TYPE_ECONOMY

String TYPE_ECONOMY

TYPE_LENGTH

String TYPE_LENGTH

TYPE_SPEED

String TYPE_SPEED

Constructor Detail

IWRouteOptions

IWRouteOptions()

Method Detail

getCitySpeed

int getCitySpeed()

getCountryRoadSpeed

int getCountryRoadSpeed()

getHighwaySpeed

int getHighwaySpeed()

getType

String getType()

setCitySpeed

void setCitySpeed(citySpeed)

setCountryRoadSpeed

void setCountryRoadSpeed(countryRoadSpeed)

setHighwaySpeed

void setHighwaySpeed(highwaySpeed)

setType

void setType(type)

toString

String toString()

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:52 GMT+0100 (MEZ)