Class: IWSimpleRouteFormatter

IWSimpleRouteFormatter

A class to create simplified description texts from a routing server response

This class is part of the module routing.


new IWSimpleRouteFormatter(map, route)

Creates a new formatter
Parameters:
Name Type Description
map IWMap
route IWRoute

Methods


createRouteDescriptionAsHTML()

Iterates through all the segments and creates the full route description as an HTML string
Returns:
the full route description as an HTML element
Type
Element