Click or drag to resize

AddressToGeocodeResult Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Returns the raw address used for a geocoding operation as a GeocodeResult.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.98.0.0
Syntax
public IGeocodeResult ToGeocodeResult()

Return Value

Type: IGeocodeResult
A GeocodeResult.
Remarks
The structured address data is stored in FoundAddress.
Examples
C#
Address addr = Telogis.GeoBase.GeoCoder.ReverseGeoCode(new LatLon(33.584108, -117.731183));
// Or...
// GeocodeAddress addr = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, California", Country.USA)[0];
IGeocodeResult result = addr.ToGeocodeResult();
string shortAddress = AddressFormatter.Default.GetShortLineForm(result.FoundAddress, "en-US");
// "Address found at '20 Enterprise' in USA"
Console.WriteLine("Address found at '{0}' in {1}", shortAddress, result.FoundAddress.Country.ToString());
See Also