The Geocoder API is a JavaScript library for creating webpage search boxes that find places in the United States and U.S. Territories.
An auto-complete menu shows suggested locations as text is typed, and you define what action to take when a location is selected.
Here's the JavaScript used to create the search box in the live demo map:
The motivation behind developing this API was to create a location search tool that:
Additional features include:
The primary data source is a dedicated database created for the API containing over 1.1 million location records from a variety of sources. The geocoder control can be configured to include or exclude each of these sources as required for your particular application. When no match is found using the API database, the ESRI ArcGIS Online Geocoding Service is used as a fallback.