Time to practice with the Locator service

In this exercise, you will learn how to use the Locator class to geocode addresses and overlay the results on top of a basemap provided by ArcGIS Online. Open the JavaScript Sandbox at http://developers.arcgis.com/en/javascript/sandbox/sandbox.html and perform the following steps:

  1. In your ArcGISJavaScriptAPI folder, open the file called geocode_begin.html in a text editor. I use Notepad++, but you can use whatever text editor you are most comfortable with. Some of the code for this exercise has already been written for you so that you can focus on the geocoding functionality.
  2. Copy and paste the code in the file so that it completely replaces the code currently in Sandbox.
  3. Add the following references for ...

Get Building Web and Mobile ArcGIS Server Applications with JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.