SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class representing a router client.
Author: JANConstructor Summary | |
IWRoutingClient()
Creates a new router client object. |
Method Summary | |
IWRouteOptions
|
getRouteOptions()
Returns the routing options. |
void
|
route(start, destination, interstations)
Calculates the route between the start and destination coordinates. set, the interstation coordinates will be consider during route calculation. |
void
|
setRouteOptions(routeOptions)
Sets the routing options. |
String
|
toString()
Returns a string representation of this object. |
Event Summary | |
void
|
triggerOnRoute(event)
The onRoute event is fired when the route has been calculated.
Register an event listener with
IWEventManager.addListener(theRouterClient, 'onroute', yourHandlerMethod(event)); to receive the
|
Methods inherited from class ARoutingClient |
getRouteType() |
getLogger() |
Constructor Detail |
IWRoutingClient()
Method Detail |
IWRouteOptions getRouteOptions()
IWRouteOptions
the route options
void route(start, destination, interstations)
IWAddress start
- the start address with a geocoded coordinate
IWAddress destination
- the destinate address with a geocoded coordinate
IWAddress[] interstations
- addresses between the start and destination address (optional)
void
void setRouteOptions(routeOptions)
IWRouteOptions routeOptions
void
String toString()
String
Event Detail |
void triggerOnRoute(event)
Register an event listener with
IWEventManager.addListener(theRouterClient, 'onroute', yourHandlerMethod(event)); to receive the
IWRoutingEvent
.
IWRoutingEvent event
- the routing event
void