Click or drag to resize

IStreetAddressData Interface

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
An interface which inherits IAddressData. IStreetAddressData represents an address that is structured at the suburb level and above, however the street address (building name, street number, street name, etc) is a single string. Structured forward geocodes will store the RawAddress as an IStreetAddressData IStreetAddressData.

Namespace:  Telogis.GeoBase.Addresses
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public interface IStreetAddressData : IAddressData, 
	IJSONSerializable

The IStreetAddressData type exposes the following members.

Properties
  NameDescription
Public propertyCity
Gets the city name.
Public propertyCountry
Gets the Country country of the address.
(Inherited from IAddressData.)
Public propertyFields
Returns a list of field names that can be accessed on this IAddressData.
(Inherited from IAddressData.)
Public propertyJSONName
Gets the JSONName of the object.
(Inherited from IJSONSerializable.)
Public propertyLocation
Gets the LatLon location of the address.
(Inherited from IAddressData.)
Public propertyPostCode
Gets the postcode.
Public propertyState
Gets the state name.
Public propertyStreetAddress
Gets the street address string.
Top
Methods
  NameDescription
Public methodFromJSON
Initializes an object from its corresponding JSONObject source data.
(Inherited from IJSONSerializable.)
Public methodGetT
Gets the value from the specified fieldName.
(Inherited from IAddressData.)
Public methodToJSON
Gets the JSONObject representation of the object.
(Inherited from IJSONSerializable.)
Top
Examples
C#
GeocodeAddress[] address = GeoCoder.GeoCode("5537 Pine Crest Dr", "Happy Jack", "Arizona", "86024", Country.USA);
IGeocodeResult result = address[0].ToGeocodeResult();

IStreetAddressData rawAddress = result.RawAddress as IStreetAddressData;

string streetAddress = rawAddress.StreetAddress;
string postCode = rawAddress.PostCode;
string state = rawAddress.State;
Country country = rawAddress.Country;

IStructuredAddressData foundAddress = result.FoundAddress;
See Also