GeoExt.form.field.GeocoderComboBox

This example shows how to add a geolocation search to the map's top toolbar. The GeocoderComboBox can be configured to use different geocoding services. By default (and in this example) it uses OpenStreetMap Nominatim.

The js is not minified so it is readable. See geocoder.js.