L.esri.Geocoding.ReverseGeocode
Extends L.esri.Task
L.esri.Geocoding.Reverse
is an abstraction for submitting requests for address candidates associated with a particular location. You can find more information and the source code for this plugin here.
Constructor
Constructor | Description |
---|---|
L.esri.Geocoding.reverseGeocode(<Object>options) | Creates a new `ReverseGeocode` task. |
You can pass any options you can pass to L.esri.Task. The url
will be the ArcGIS World Geocoder by default but a custom geocoding service can also be used.
Methods
Method | Returns | Description |
---|---|---|
latlng(<L.LatLng>latlng) | this | The `L.LatLng` object for which an associated address will be queried. |
distance(<Integer>distance) | this | The distance (in meters) around the point for which addresses will be queried. The default value is `100`. |
language(<String>language) | this | The language to use when returning address candidates. |
intersection(<Boolean>returnIntersection ) | this | Set this value to `true` if you'd like the nearest intersection to be returned (Default value is `false`). |
run(<Function>callback, <Object>context) | XMLHttpRequest | Executes the request chain and accepts the response callback. |