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
- Use the Esri Leaflet plugin to display a map.
- Reference the
esri-leaflet-geocoderpackage. - Perform a geocoding operation.
- 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. method in Esri Leaflet plugin.
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. from the Esri Leaflet plugin.
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.