[This is preliminary documentation and subject to change.]
http://www.johnsample.com/misc/geo2/TIGERInstall.05.zip
See this post for an additional necessary update to the .05 installer until a new installer is released.
Check www.johnsample.com for updates and patches.
Latest DLL version: .03
Welcome to the Geocode API!
To get started you will need to use the latest installer. The installer handles
downloading, pre-parsing, and setup of the census data.
Once you have downloaded the census zip files please keep them handy as
changes/additions to the database will take less time.
Quick Start
The GeoUtils class handles most of the heavy lifting.
If your address strings are well formed (see the ParseAddress documentation) you can geocode with one call:
Dim gr as GeoResult
gr = GeoUtils.Geocode("1600 Pennsylvania Ave NW, 20502")
If gr.HasLocations Then
'Longitude = gr.Locations(0).Longitude
'Latitude = gr.Locations(0).Latitude
End If
| Class | Description |
|---|---|
| Address | Information about a geocode search. If the API parsed the Address, .Parsed = true |
| AddressCollection | |
| GeoPoint | A Longitude/Latitude pair. Points are rounded to a precision of 6 (XX.XXXXXX) |
| GeoPointCollection | |
| GeoResult | The return type of a forward geocode call. |
| GeoUtils | Contains the methods used to forward and reverse geocode. |
| Location | |
| LocationCollection |
| Enumeration | Description |
|---|---|
| DB_TYPE | Indicates the database platform. |
| GEO_OPTIONS | Changes the default behavior of the geocoding functions. Multiple options can be passed by ORing them together. |
| SEARCH_TYPE | Indicates how a Location or Address object was found. |