Class: ReverseGeocoder

alk.geocode.ReverseGeocoder

An instance of this class provides access to the ALK Reverse Geocoding/Locations Service

new alk.geocode.ReverseGeocoder(opt_options)

This constructor creates an API object for accesing the ALK Reverse Geocoding/Locations service.

Option Type Description
locationsReverseServiceOptions alkx.LocationsReverseServiceOptions

This option contains the options for the creation of the underling alk.service.LocationsReverseServiceOptions object.

Methods

reverseGeocode(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 ReverseGeocoder object.

Option Type Description
lonLat Array.<number> | string | undefined

This option specifies the coordinates in the search.

dataset alk.val.Dataset | undefined

This option specifies to the service where to get the data. Depending on the coordinates or search criteria the search may be restricted to certain datasets.

region alk.val.Region | undefined

This option specifies the region in which to search.