Geocoding is the process of converting text to a complete address with a location. To perform geocoding with MapLibre GL JS, use the ArcGIS REST JS library to access the ArcGIS Geocoding service.
- Use the MapLibre ArcGIS plugin to display a map.
- Reference the ArcGIS REST JS
request
andgeocode
packages. - 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.
Search for an address
Learn how to find address candidates with the geocode
method in ArcGIS REST JS.
Autosuggest
Autosuggest can help find address candidates with partial text input when building interactive geocoding controls.
Search with autosuggest
Learn how to use autosuggest candidates to find addresses by with the suggest
and geocode
methods in ArcGIS REST JS.
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.