Click or drag to resize

IAddressFormatter Interface

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Contains methods that use IAddressData objects to format address data by culture.

Namespace:  Telogis.GeoBase.Addresses
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public interface IAddressFormatter

The IAddressFormatter type exposes the following members.

Methods
  NameDescription
Public methodGetCountryString
Converts the given Country into a well-formatted string for the given culture.
Public methodGetLabelNames
Returns a dictionary of LabelNames mapping to the label name in the given culture.
Public methodGetLines
Gets the lines format of the given IAddressData with the given culture.
Public methodGetLinesWithCountry
Gets the lines format with the country of the given IAddressData with the given culture.
Public methodGetLocalizedUnitString(AddressUnit, String)
Converts the given AddressUnit array into a well-formatted string for the given culture.
Public methodGetLocalizedUnitString(AddressUnit, Country)
Converts the given AddressUnit array into a well-formatted string for the given country.
Public methodGetLongLineForm
Gets the long line format of the given IAddressData with the given culture.
Public methodGetLongLineFormWithCountry
Gets the long line format with the country name of the given IAddressData with the given culture.
Public methodGetOrderedComponents
Returns the order of the properties that represent parts of an address, as a user in the given culture might expect to enter them.
Public methodGetShortLineForm
Gets the short line format of the given IAddressData with the given culture.
Public methodGetShortLineFormWithCity
Gets the short line format with the City of the given IAddressData with the given culture.
Top
Examples
C#
GeocodeAddress[] address = GeoCoder.GeoCode("5537 Pine Crest Dr, Happy Jack, Coconina, Arizona, 86024", Country.USA);
IGeocodeResult result = address[0].ToGeocodeResult();
string shortFormAddress = AddressFormatter.Default.GetShortLineForm(result.FoundAddress, "US");
See Also