new IWRoutingClient()
Creates a new routing client object.
Methods
-
getRouteOptions()
-
Returns the routing options.
Returns:
the route options- Type
- IWRouteOptions
-
route(start, destination, interstations)
-
Calculates the route between the start and destination coordinates. If the optional parameter interstations is set, the interstation coordinates will be considered during route calculation.
Parameters:
Name Type Description start
IWAddress the start address with a geocoded coordinate destination
IWAddress the destination address with a geocoded coordinate interstations
Array.<IWAddress> addresses between the start and destination address (optional) Returns:
- Type
- void
-
setRouteOptions(routeOptions)
-
Sets the routing options.
Parameters:
Name Type Description routeOptions
IWRouteOptions Returns:
- Type
- void
-
toString()
-
Returns a string representation of this object.
Returns:
- Type
- String