new alk.geocode.Geocoder(opt_options)
This constructor creates an API object that gives its user the ability to access the ALK Geocoding/Locations service.
| Option | Type | Description |
|---|---|---|
locationsServiceOptions |
alkx.LocationsServiceOptions |
This option contains the options for the creation of the underling
|
Methods
-
geocode(opt_options)
-
This method calls out to the ALK Locations Service to retrieve results from the search parameters and the defaults set at the creation of the Geocoder object.
Option Type Description addressalkx.GeocodeAddress | alkx.NormalizedAddress This option contains the address structure for the
alk.geocode.Geocoder#geocodecall. This option may also contain the 'normalized' address object that is returned in the response object.listSizenumber This option contains the maximum number of results to return in the response list.
successfunction This option contains the callback function that will be called upon a successful return.
failurefunction This option contains the callback function that will be called upon a failure return.