Class: IWLocationInputHandler

IWLocationInputHandler

An abstract base class for input handlers. Implement this to add new input types to IWLocationSearchControl.

new IWLocationInputHandler()

Creates a new handler.

Methods


canHandle(input)

Implement this method to determine if your handler is able to handle the input string.
Parameters:
Name Type Description
input string the input string
Returns:
Type
boolean

handle(input)

Implement this to handle an input string by calling triggerLocationFound with the result.
Parameters:
Name Type Description
input string the input string
Returns:
Type
void

triggerError()

Call this function with an error message.

triggerLocationFound()

Call this function with the result.