Class: IWRoutingClient

IWRoutingClient

A class to handle communication with the server backend. This is obsolete and should no longer be used. If you want a simple control for address input, route options and to display the directions you can use IWRoutingControl. For more complex tasks use IWRoutingManager (see tutorial).

This class is part of the module routing.


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