The terms geocoder and geocoding are used in several contexts. This discussion sorts out these contexts, so that the terms' meanings can be clear each time you come across the terms. The discussion defines geocoder and geocoding, describes the modes in which a geocoder operates, describes a larger activity to which geocoding belongs, and summarizes users' tasks that pertain to geocoding.
In DB2® Spatial Extender, a geocoder is a scalar function that translates existing data (the function's input) into data that you can understand in spatial terms (the function's output). Typically, the existing data is relational data that describes or names a location. DB2 Spatial Extender can support vendor-supplied and user-supplied geocoders.
One vendor-supplied geocoder might translate addresses into coordinates that DB2 does not store, but rather writes to a file. Another might be able to translate the number of an office in a commercial building into coordinates that define office's location in the building, or to translate the identifier of a shelf in a warehouse into coordinates that define the shelf's location in the warehouse.
In other cases, the existing data that a geocoder translates might be spatial data. For example, a user-supplied geocoder might translate X and Y coordinates into data that conforms to one of DB2 Spatial Extender's data types.
In DB2 Spatial Extender, geocoding is simply the operation in which a geocoder translates its input into output-translating addresses into coordinates, for example.
Geocoding is one of several operations by which the contents of a spatial column in a DB2 table are derived from other data. This discussion refers to these operations collectively as a geocoding process. Geocoding processes can vary from geocoder to geocoder. A geocoder may search files of known addresses to determine whether each address it receives as input matches a known address to a given degree. Because the known addresses are like reference material that people look up when they do research, these addresses are collectively called reference data. Other geocoders might not need reference data; they might verify their input in other ways.