Skip to content

Geocoding is the process of converting text to a complete address with a location.

To perform geocoding with Leaflet, use the Esri Leaflet Geocoder package to access the ArcGIS Geocoding service.

Steps
  1. Use the Esri Leaflet plugin to display a map.
  2. Reference the esri-leaflet-geocoder package.
  3. Perform a geocoding operation.
  4. Display the results in the map.

Address geocoding

Address geocoding, also known as forward geocoding, allows you to search for addresses or places. In ArcGIS, this is referred to as finding address candidates.

Find place addresses

Learn how to find address candidates with the L.esri.Geocoding.geocode method in Esri Leaflet plugin.

Go to tutorial

Autosuggest

Autosuggest can help find address candidates with partial text input when building interactive geocoding controls.

Search for an address

Learn how to add an autosuggest-enabled search control in a map using L.esri.Geocoding.geosearch from the Esri Leaflet plugin.

Go to tutorial

Reverse geocoding

Reverse geocoding allows you to convert a location into a complete address. You can also use it to find the nearest address to your current location or show the closest address when you tap the map.

Reverse geocode

Learn how to reverse geocode with the reverseGeocode method in Esri Leaflet.

Go to tutorial

More resources

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.