Geocoding is the process of converting address or place text into a location. The Geocoding service can search for an address or a place and can also perform reverse geocoding.
In this tutorial, you find the location of an address using the Geocoding service.
Prerequisites
You need a free ArcGIS developer account to access your dashboard and API keys. The API key must be scoped to access the services used in this tutorial.
Steps
Create a new pen
If you are using the CDN libraries, to get started.
Make the request
Copy and paste the code below, following the steps to make a request to the Geocoding service.
Reference the ArcGIS REST JS libraries either through CDN, ES Modules, or Node JS.
Set the apiKey with the API key from your dashboard.
Define the parameters needed for the request.
Call the Geocoding service and handle the results.