L.esri.Geocoding.GeocodeService

A basic wrapper for speaking to ArcGIS Online and ArcGIS Server geocoding services. Used internally by L.esri.Geocoding.geosearch. You can find more information and the source code for this plugin here.

Constructor

Constructor Description
L.esri.Geocoding.geocodeService(<Object> options) Creates a new Geocoding service. You can pass in the url of a custom geocoding endpoint in the options if you do not want to use the ArcGIS Online World Geocoding service.

Options

Accepts all options you can pass to L.esri.Service. Url will refer to the ArcGIS World Geocoder by default but a custom geocoding service can also be used.

Events

Fires all L.esri.Service events.

Methods

Method Returns Description
geocode() L.esri.Geocoding.geocode Returns a new Geocode task bound to this server.
suggest() L.esri.Geocoding.suggest Returns a new Suggest task bound to this server.
reverse() L.esri.Geocoding.reverseGeocode Returns a new ReverseGeocode task bound to this server.

Edit this page on GitHub