StreetMap Address Inspector

Created:01/08/2001
Description:

The StreetMap Address Inspector tool displays the address at a point on the map. This tool demonstrates how to open and retrieve data from a StreetMap data source. Some of the functionality used by this tool is contained in the Geocoding Tools Library.

How to use:
  1. Open the GeocodingToolsLib.vbp project and compile the DLL. Alternatively, you can register the GeocodingToolsLib.dll that is located in the same folder.
  2. In ArcMap, browse to and select StreetMapAddressInspector.dll using the 'Add From File' button in the Customize dialog box.
  3. From the 'Developer Samples' commands category, add the 'StreetMap Address Inspector' tool to a toolbar.
  4. Add a StreetMap USA geocoding service and its reference data to the ArcMap document. You can use the Reference Data Loader Tool to do this.
  5. Set the ArcMap document's current geocoding service by selecting the geocoding service in the Find dialog box. You can also use the Current Locator Control to do this.
  6. Click the StreetMap Address Inspector tool, then click on the map to display the address at that point.

Application:
ArcMap

Requires: A StreetMap geocoding service and its associated reference data.

Difficulty: Intermediate


Visual Basic
File Description
frmMapTipContainer.frm Form used as a map tip to display the address.
clsMapTip.cls Class file that defines the behaviour of the map tip.
clsStreetMapAddressInspector.cls Class file that implements ICommand and ITool to create the StreetMap Address Inspector Tool.
ILocatorStreetMapData.cls Class file that defines the ILocatorStreetMapData interface.
StreetMapLocatorInspector.cls Class file that provides information about a StreetMap locator's style and reference data. Implements the ILocatorInspector, ILocatorStreetMapData, and IReverseGeocoder interfaces.
GeocodingDeveloperSamples.res Resource file for geocoding developer samples.
StreetMapAddressInspector.vbp The project file for the tool.
StreetMapAddressInspector.dll The compiled project.


Key CoClasses: ESRILicenseInfo, LocatorExtension, StreetMapAddressLocator, StreetMapWorkspaceFactory
Key Interfaces: IESRILicenseInfo, IExtensionConfig, ILocatorExtension, IReferenceDataFile
Key Members: IESRILicenseInfo::IsLicensed, IExtensionConfig::State, ILocatorExtension::CurrentLocator, IReferenceDataFile::PathName