Class: IWAddressLocationInputHandler

IWAddressLocationInputHandler

An input handler for addresses.

new IWAddressLocationInputHandler(options)

Creates a new handler. Available options are:
  • country: An ISO-3166-1 alpha-3 country code to limits results to this country, or * for all available countries (*)
  • maxHits: The maximum number of hits to show
Parameters:
Name Type Description
options object the options to use

Extends

Methods


canHandle(input)

Implement this to determine if your handler is able to handle the input string.
Parameters:
Name Type Description
input string the input string
Inherited From:
Overrides:
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
Inherited From:
Overrides:
Returns:
Type
void

triggerError()

Call this function with an error message.
Inherited From:

triggerLocationFound()

Call this function with the result.
Inherited From: